-
Notifications
You must be signed in to change notification settings - Fork 118
/
Header.scss
107 lines (90 loc) · 1.78 KB
/
Header.scss
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
100
101
102
103
104
105
106
107
.element-editor-header {
display: flex;
align-items: center;
justify-content: space-between;
&__title {
font-size: 15px;
font-weight: 400;
margin: 0 0 0 $spacer-xs;
-webkit-font-smoothing: antialiased;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
&--none {
font-style: italic;
color: lighten($body-color, 20);
}
}
&__info,
&__actions {
align-items: center;
display: flex;
flex-grow: 1;
}
&__info {
max-width: calc(100% - 60px);
.badge {
color: $state-draft;
background-color: $state-modified-bg;
padding: 2px 3px 2px 4px;
margin-left: 0.5rem;
}
}
&__actions {
justify-content: flex-end;
}
&__actions-toggle {
padding-top: 3px;
padding-bottom: 3px;
}
&__icon-container {
margin-left: -2px;
color: $text-muted;
font-size: 2.154rem;
height: 28px;
line-height: 1.5rem;
&--broken {
color: $red;
}
}
&__expand {
font-size: 1.1rem;
margin-left: 3px;
width: unset;
}
// Draft/modified state icons copied from asset-admin - see GalleryItem.scss
&__version-state {
border: 1px solid $state-draft;
border-radius: 100%;
bottom: 6px;
box-shadow: 0 0 1px .5px $white;
display: block;
height: 8px;
left: 22px;
position: relative;
width: 8px;
z-index: 1;
&--draft {
background-color: $state-draft-bg;
}
&--modified {
background-color: $state-modified-bg;
}
}
&__drag-handle {
display: none;
position: absolute;
left: 5px;
cursor: grab;
cursor: -webkit-grab;
}
&--simple &__drag-handle {
display: block;
}
&--simple &__info {
width: 460px;
}
.dropdown-item.active {
cursor: default;
}
}