This repository was archived by the owner on Jun 26, 2020. It is now read-only.
File tree 6 files changed +47
-27
lines changed
6 files changed +47
-27
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ a.ck-button {
20
20
cursor : default;
21
21
vertical-align : middle;
22
22
padding : var (--ck-spacing-small );
23
+ text-align : center;
23
24
24
25
/* Enable font size inheritance, which allows fluid UI scaling. */
25
26
font-size : inherit;
@@ -29,10 +30,6 @@ a.ck-button {
29
30
@mixin ck-box-shadow var (--ck-focus-outer-shadow );
30
31
}
31
32
32
- @mixin ck-button-icon {
33
- float : left;
34
- }
35
-
36
33
/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/70 */
37
34
& .ck-disabled {
38
35
@mixin ck-button-icon {
@@ -52,10 +49,6 @@ a.ck-button {
52
49
margin-left : calc (-1 * var (--ck-spacing-small ));
53
50
margin-right : var (--ck-spacing-small );
54
51
}
55
-
56
- & .ck-button__label {
57
- display : block;
58
- }
59
52
}
60
53
61
54
/* A style of the button which is currently on, e.g. its feature is active. */
@@ -74,7 +67,6 @@ a.ck-button {
74
67
/* Enable font size inheritance, which allows fluid UI scaling. */
75
68
font-size : inherit;
76
69
77
- float : left;
78
70
height : var (--ck-line-height-base )em;
79
71
line-height : inherit;
80
72
font-weight : inherit;
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3
+ * For licensing, see LICENSE.md.
4
+ */
5
+
6
+ .ck-buttondropdown .ck-toolbar {
7
+ border : 0 ;
8
+ padding : 0 ;
9
+
10
+ & .ck-button {
11
+ border-radius : 0 ;
12
+ border : 0 ;
13
+ margin : 0 ;
14
+ }
15
+ }
Original file line number Diff line number Diff line change 14
14
/* A triangle displayed to indicate this is actually a dropdown. */
15
15
& ::after {
16
16
border-style : solid;
17
- border-width : .4em .4 em 0 .4 em ;
17
+ border-width : .4em .35 em 0 .35 em ;
18
18
border-color : var (--ck-color-dropdown-symbol ) transparent;
19
19
right : var (--ck-spacing-standard );
20
20
}
21
21
22
+ & .ck-disabled ::after {
23
+ border-color : var (--ck-color-dropdown-symbol-disabled ) transparent;
24
+ }
25
+
22
26
& .ck-button .ck-dropdown__button {
23
27
/* A space to accommodate the triangle. */
24
- padding-right : calc (2 * var (--ck-spacing-standard ));
28
+ padding-right : calc (2.5 * var (--ck-spacing-standard ));
25
29
26
30
/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/70 */
27
31
& .ck-disabled .ck-button__label {
46
50
47
51
/* Compensate double border from button and from box when positioned below the button. */
48
52
bottom : 1px ;
53
+
54
+ /* Make sure the panel is at least as wide as the dropdown's button. */
55
+ min-width : 100% ;
49
56
}
Original file line number Diff line number Diff line change 30
30
border-width : 0 ;
31
31
}
32
32
33
- & .ck-button {
33
+ & > .ck-button ,
34
+ & .ck-buttondropdown .ck-dropdown__button {
34
35
& : not (: hover ): not (: focus ): not (.ck-on ),
35
36
& .ck-disabled {
36
37
background : var (--ck-color-editor-toolbar-background );
41
42
}
42
43
}
43
44
44
- & .ck-button .ck-dropdown__button {
45
+ /* Exclude main button dropdown button */
46
+ & .ck-dropdown : not (.ck-buttondropdown ) .ck-dropdown__button {
45
47
border-width : 1px ;
46
48
47
49
& : not (: hover ): not (: focus ): not (.ck-on ) {
Original file line number Diff line number Diff line change 8
8
.ck-toolbar {
9
9
@mixin ck-rounded-corners;
10
10
11
- padding : var (--ck-spacing-small );
11
+ padding : 0 var ( --ck-spacing-small ) var (--ck-spacing-small );
12
12
border : 1px solid var (--ck-color-toolbar-border );
13
13
14
- /* Allow wrapping toolbar items to the new line. */
15
- white-space : initial;
16
-
17
- /* (#11) Separate toolbar items. */
18
14
& > * {
15
+ /* (#11) Separate toolbar items. */
19
16
margin-right : var (--ck-spacing-small );
17
+
18
+ /* Make sure items wrapped to the next line have v-spacing */
19
+ margin-top : var (--ck-spacing-small );
20
+ }
21
+
22
+ & .ck-toolbar_vertical {
23
+ & > * {
24
+ /* Items in a vertical toolbar should have no horizontal margin */
25
+ margin-right : 0 ;
26
+
27
+ /* Items in a vertical toolbar should span the horizontal space */
28
+ width : 100% ;
29
+ }
20
30
}
21
31
22
32
& > * : last-child {
28
38
}
29
39
}
30
40
31
- .ck-toolbar_floating {
32
- /* Disallow wrapping toolbar items to the new line when the toolbar is floating,
33
- resulting in an toolbar shapes when the horizontal space is limited.
34
- https://github.com/ckeditor/ckeditor5-theme-lark/issues/93 */
35
- white-space : nowrap;
36
- }
37
-
38
41
.ck-toolbar__separator {
39
42
width : 1px ;
40
43
height : calc (1em + 2 * var (--ck-spacing-medium ));
43
46
}
44
47
45
48
.ck-toolbar__newline {
46
- height : var ( --ck-spacing-small ) ;
49
+ margin : 0 ;
47
50
}
Original file line number Diff line number Diff line change 58
58
59
59
--ck-color-dropdown-panel-background : var (--ck-color-base-background );
60
60
--ck-color-dropdown-panel-border : var (--ck-color-base-border );
61
- --ck-color-dropdown-symbol : hsl (0 , 0% , 44% );
61
+ --ck-color-dropdown-symbol : hsl (0 , 0% , 30% );
62
+ --ck-color-dropdown-symbol-disabled : hsl (0 , 0% , 50% );
62
63
63
64
/* -- Input --------------------------------------------------------------------------------- */
64
65
You can’t perform that action at this time.
0 commit comments