summaryrefslogtreecommitdiffstatshomepage
path: root/core/modules/ckeditor5/css/toolbar.admin.css
blob: 40b04dd951244e04e41468289d5ce8a86f137361 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
.ckeditor5-toolbar-disabled {
  display: flex;
  justify-content: space-between;
}
.ckeditor5-toolbar-available {
  flex: 1;
}

.ckeditor5-toolbar-tray {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  min-height: 40px;
  margin: 0 0 0.5em 0;
  padding: 0;
  list-style: none;
  /* Disallow any user selections in the drag-and-drop toolbar config UI. */
  user-select: none;
}

.ckeditor5-toolbar-active__buttons {
  margin: 5px 0;
  padding: 0.1667em 0.1667em 0.08em;
  border: 1px solid #c4c4c4;
  border-radius: 2px;
  background: #fafafa;
}

.ckeditor5-toolbar-item,
.ckeditor5-toolbar-button {
  display: block;
  min-width: 36px;
  height: 36px;
  cursor: move;
  border-radius: 2px;
}

.ckeditor5-toolbar-item {
  position: relative;
  margin: 5px 8px 5px 0;
}

.ckeditor5-toolbar-disabled .ckeditor5-toolbar-item {
  border: 1px solid #e6e6e6;
}

.ckeditor5-toolbar-button {
  border: none;
  background-color: #eee;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px;
}

.ckeditor5-toolbar-button:focus,
.ckeditor5-toolbar-button:hover {
  color: #000;
  background-color: #e6e6e6;
}

.ckeditor5-toolbar-button:focus,
.ckeditor5-toolbar-button:hover,
.ckeditor5-toolbar-button {
  text-decoration: none;
}
.ckeditor5-toolbar-tooltip {
  position: absolute;
  z-index: 1;
  left: 50%;
  display: block;
  padding: 6px 10px;
  transform: translate(-50%, 2px);
  text-transform: capitalize;
  color: #fff;
  border-radius: 3px;
  background: #333;
  font-size: 12px;
  line-height: 1;
}

.ckeditor5-toolbar-tooltip::before {
  position: absolute;
  top: -10px;
  left: 50%;
  width: 0;
  height: 5px;
  content: "";
  transform: translateX(-50%);
  border-right: solid 5px transparent;
  border-bottom: solid 5px #333;
  border-left: solid 5px transparent;
}

.ckeditor5-toolbar-button + .ckeditor5-toolbar-tooltip {
  visibility: hidden;
}
.ckeditor5-toolbar-button[data-expanded="true"] + .ckeditor5-toolbar-tooltip {
  visibility: visible;
}