File tree Expand file tree Collapse file tree 5 files changed +192
-84
lines changed Expand file tree Collapse file tree 5 files changed +192
-84
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,24 @@ main .grid-container.freed-width {
12
12
.switch {
13
13
background : darken ( @global-link-font-color , 3% );
14
14
float : right ;
15
+ overflow : visible ;
16
+
17
+ // Switch balloon tooltip.
18
+ .balloon-a {
19
+ // Custom position relative to the switch.
20
+ position : absolute ;
21
+ top : -40px ;
22
+ right : 50% ;
23
+ margin-right : -15px ;
24
+
25
+ // Customize balloon colors.
26
+ background : #FFEFC1 ;
27
+ border-bottom-color : #DCDCA4 ;
28
+
29
+ & :before {
30
+ border-color : #FFEFC1 transparent transparent transparent ;
31
+ }
32
+ }
15
33
}
16
34
17
35
#toolbar .editors-container {
@@ -103,3 +121,53 @@ div.cke .cke_combo_button {
103
121
opacity : 1 ;
104
122
}
105
123
}
124
+
125
+ // Styles that allow .balloon-a to be absolutely positioned.
126
+ header {
127
+ overflow : visible ;
128
+
129
+ div .grid-container {
130
+ overflow : visible ;
131
+ }
132
+
133
+ .navigation-b {
134
+ overflow : visible ;
135
+
136
+ ul {
137
+ overflow : visible ;
138
+ }
139
+
140
+ a {
141
+ // Tip is relative to the anchor.
142
+ position : relative ;
143
+ }
144
+ }
145
+
146
+ .balloon-a {
147
+ position : absolute ;
148
+ top : 48px ;
149
+
150
+ left : 50% ;
151
+ margin-left : -35px ;
152
+
153
+ // Switch the balloon arrow and position on narrow screen
154
+ // to make it fully visible.
155
+ .global-is-max-width ( 1140px , {
156
+ left : auto ;
157
+ margin-left : auto ;
158
+
159
+ right : 50% ;
160
+ margin-right : -35px ;
161
+
162
+ & :before {
163
+ left : auto ;
164
+ right : 22px ;
165
+ }
166
+ } );
167
+
168
+ // Don't display the balloon on mobile.
169
+ .global-is-mobile ( {
170
+ display : none ;
171
+ } );
172
+ }
173
+ }
Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ <h1 class="header-a-logo grid-width-30">
57
57
< h1 class ="grid-width-60 "> Toolbar configurator</ h1 >
58
58
< div class ="grid-width-40 grid-switch-magic ">
59
59
< div class ="switch ">
60
+ < span class ="balloon-a balloon-a-se "> Select configurator type</ span >
60
61
< input type ="radio " name ="radio " data-num ="1 " id ="radio-basic " />
61
62
< input type ="radio " name ="radio " data-num ="2 " id ="radio-advanced " />
62
63
< label data-for ="1 " for ="radio-basic "> Basic</ label >
Original file line number Diff line number Diff line change 28
28
text : 'Toggle visibility of empty elements' ,
29
29
group : 'edit' ,
30
30
position : 'left' ,
31
+ cssClass : 'button-a-soft' ,
31
32
clickCallback : function ( button ) {
32
33
var className = 'button-a-background' ;
33
34
39
40
text : 'Add row separator' ,
40
41
group : 'edit' ,
41
42
position : 'left' ,
43
+ cssClass : 'button-a-soft' ,
42
44
clickCallback : function ( ) {
43
45
this . _addSeparator ( ) ;
44
46
}
60
62
text : 'Select config' ,
61
63
group : 'config' ,
62
64
position : 'left' ,
65
+ cssClass : 'button-a-soft' ,
63
66
clickCallback : function ( ) {
64
67
this . configContainer . findOne ( 'textarea' ) . $ . select ( ) ;
65
68
}
Original file line number Diff line number Diff line change 68
68
overflow : hidden ;
69
69
70
70
button .button-a {
71
- background-color : @modifier-toolbar-button-color ;
72
-
73
- & :active ,
74
- & :hover {
75
- background-color : darken ( @modifier-toolbar-button-color , 20% );
76
- }
77
-
78
- & .button-a-background {
79
- background-color : @global-link-font-color ;
80
-
81
- & :active ,
82
- & :hover {
83
- background-color : @global-link-font-color-hover ;
84
- }
85
- }
86
-
87
71
& .cke_button {
88
72
cursor : pointer ;
89
73
You can’t perform that action at this time.
0 commit comments