File tree Expand file tree Collapse file tree 2 files changed +23
-6
lines changed Expand file tree Collapse file tree 2 files changed +23
-6
lines changed Original file line number Diff line number Diff line change @@ -653,7 +653,7 @@ div.reference-subgroup {
653653 position : relative;
654654 left : 1em ;
655655 padding-top : 0 ;
656- margin-top : 1 rem ;
656+ margin-top : 3 rem ;
657657 border : none;
658658 width : 30.5em ;
659659 max-width : 100% ;
@@ -679,6 +679,7 @@ div.reference-subgroup {
679679
680680.example-content .edit_space ul {
681681 display : flex;
682+ flex-wrap : wrap-reverse;
682683 flex-direction : row-reverse;
683684 position : relative;
684685 pointer-events : none;
@@ -700,6 +701,12 @@ div.reference-subgroup {
700701 border-color : rgba (45 , 123 , 182 , 0.25 );
701702}
702703
704+ .example-content .edit_space ul li button : focus {
705+ color : # 2d7bb6 ;
706+ border : 2px dotted;
707+ border-color : rgba (45 , 123 , 182 , 0.25 );
708+ }
709+
703710.example-content .edit_space .edit_area {
704711 position : absolute;
705712 top : 0.5em ;
@@ -711,7 +718,6 @@ div.reference-subgroup {
711718 padding : 1.5em 0.5em 0.5em 0.5em ;
712719 font-size : 15pt ;
713720}
714-
715721.display_button {
716722 margin-bottom : 2em ;
717723 font-family : 'Montserrat' , sans-serif;
@@ -722,6 +728,17 @@ div.reference-subgroup {
722728 outline : none;
723729}
724730
731+ .sketchTabInstructions {
732+ flex-grow : 1 ;
733+ font-family : 'Montserrat' , sans-serif;
734+ color : # CCC ;
735+ font-size : 1em ;
736+ font-style : italic;
737+ margin-left : 120px ;
738+ margin-right : 1em ;
739+ margin-top : .25em ;
740+ }
741+
725742.example-content .example_container {
726743 width : 36em ;
727744 max-width : 100% ;
Original file line number Diff line number Diff line change @@ -85,13 +85,10 @@ var renderCode = function(exampleName) {
8585 edit_space . appendChild ( edit_area ) ;
8686 enableTab ( edit_area ) ;
8787
88- //add buttons and tab instructions
88+ //add buttons and instructions
8989 let button_space = document . createElement ( 'ul' ) ;
9090 edit_space . appendChild ( button_space ) ;
9191
92- let sketch_tab_instructions = button_space . appendChild ( document . createElement ( 'li' ) ) ;
93- sketch_tab_instructions . innerHTML = 'Press shift + space to insert tab.' ;
94-
9592 let copy_button = document . createElement ( 'button' ) ;
9693 copy_button . value = 'copy' ;
9794 copy_button . innerHTML = 'copy' ;
@@ -137,6 +134,9 @@ var renderCode = function(exampleName) {
137134 let edit_li = button_space . appendChild ( document . createElement ( 'li' ) ) ;
138135 edit_li . appendChild ( edit_button ) ;
139136
137+ let sketch_tab_instructions = button_space . appendChild ( document . createElement ( 'li' ) ) ;
138+ sketch_tab_instructions . innerHTML = 'Press Shift-Space to insert tab.' ;
139+ sketch_tab_instructions . className = 'sketchTabInstructions' ;
140140
141141 function setMode ( sketch , m ) {
142142 if ( m === 'edit' ) {
You can’t perform that action at this time.
0 commit comments