forked from owid/owid-grapher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTagGraphPage.scss
113 lines (109 loc) · 2.69 KB
/
TagGraphPage.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
108
109
110
111
112
113
.TagGraphPage {
.page-header {
display: flex;
justify-content: space-between;
}
.tag-box {
position: relative;
padding: 8px;
padding-right: 0;
background-color: #f0f0f0;
transition: box-shadow 0.2s;
border-radius: 3px;
border: 3px solid transparent;
cursor: default;
&.tag-box--dragging {
z-index: 2;
box-shadow: 4px 4px 8px 8px #bbb;
}
&.tag-box--hovering:not(.tag-box--dragging) {
border: 3px solid orange;
}
// 🤫
& > .tag-box {
background-color: #d0d0d0;
& > .tag-box {
background-color: #f0f0f0;
& > .tag-box {
background-color: #d0d0d0;
& > .tag-box {
background-color: #f0f0f0;
& > .tag-box {
background-color: #d0d0d0;
& > .tag-box {
background-color: #f0f0f0;
}
}
}
}
}
}
margin: 4px;
.grip-button {
position: absolute;
right: 4px;
top: 8px;
width: 32px;
height: 32px;
background-color: transparent;
padding: 0;
border: none;
line-height: 1;
transition: 0.2s;
color: #666;
&:hover {
color: #111;
}
}
}
.root-tag-box {
padding: 24px 0;
cursor: default;
> .grip-button {
display: none;
}
}
.tag-box__controls-container {
margin-bottom: 8px;
}
.tag-box__weight-control {
margin: 0 8px;
label {
margin: 0;
margin-right: 8px;
}
input {
width: 50px;
padding-left: 5px;
padding-right: 4px;
border: none;
background-color: transparent;
padding-top: 4px;
padding-bottom: 5px;
margin-right: 0;
}
}
.add-tag-button {
margin-right: 8px;
background-color: #686868;
border-color: #686868;
&:hover {
background-color: #888;
border-color: #888;
}
}
.add-tag-form {
display: inline-block;
margin-right: 8px;
}
.add-tag-input {
width: 256px;
border-radius: 3px;
}
.TagBadge {
font-size: 1.1em;
font-weight: 500;
background: none;
border: none;
}
}