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 {
653
653
position : relative;
654
654
left : 1em ;
655
655
padding-top : 0 ;
656
- margin-top : 1 rem ;
656
+ margin-top : 3 rem ;
657
657
border : none;
658
658
width : 30.5em ;
659
659
max-width : 100% ;
@@ -679,6 +679,7 @@ div.reference-subgroup {
679
679
680
680
.example-content .edit_space ul {
681
681
display : flex;
682
+ flex-wrap : wrap-reverse;
682
683
flex-direction : row-reverse;
683
684
position : relative;
684
685
pointer-events : none;
@@ -700,6 +701,12 @@ div.reference-subgroup {
700
701
border-color : rgba (45 , 123 , 182 , 0.25 );
701
702
}
702
703
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
+
703
710
.example-content .edit_space .edit_area {
704
711
position : absolute;
705
712
top : 0.5em ;
@@ -711,7 +718,6 @@ div.reference-subgroup {
711
718
padding : 1.5em 0.5em 0.5em 0.5em ;
712
719
font-size : 15pt ;
713
720
}
714
-
715
721
.display_button {
716
722
margin-bottom : 2em ;
717
723
font-family : 'Montserrat' , sans-serif;
@@ -722,6 +728,17 @@ div.reference-subgroup {
722
728
outline : none;
723
729
}
724
730
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
+
725
742
.example-content .example_container {
726
743
width : 36em ;
727
744
max-width : 100% ;
Original file line number Diff line number Diff line change @@ -85,13 +85,10 @@ var renderCode = function(exampleName) {
85
85
edit_space . appendChild ( edit_area ) ;
86
86
enableTab ( edit_area ) ;
87
87
88
- //add buttons and tab instructions
88
+ //add buttons and instructions
89
89
let button_space = document . createElement ( 'ul' ) ;
90
90
edit_space . appendChild ( button_space ) ;
91
91
92
- let sketch_tab_instructions = button_space . appendChild ( document . createElement ( 'li' ) ) ;
93
- sketch_tab_instructions . innerHTML = 'Press shift + space to insert tab.' ;
94
-
95
92
let copy_button = document . createElement ( 'button' ) ;
96
93
copy_button . value = 'copy' ;
97
94
copy_button . innerHTML = 'copy' ;
@@ -137,6 +134,9 @@ var renderCode = function(exampleName) {
137
134
let edit_li = button_space . appendChild ( document . createElement ( 'li' ) ) ;
138
135
edit_li . appendChild ( edit_button ) ;
139
136
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' ;
140
140
141
141
function setMode ( sketch , m ) {
142
142
if ( m === 'edit' ) {
You can’t perform that action at this time.
0 commit comments