forked from braziljs/newsletter-tool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.css
129 lines (116 loc) · 2.48 KB
/
index.css
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
body {
margin-top: 20px;
}
.header {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 40px;
background: #000;
color: #fff;
display: flex;
justify-content: space-around;
align-items: center;
z-index: 999;
border-bottom: solid 1px #fff;
}
.noselect,
.category-item>em:nth-last-of-type(2) {
-webkit-touch-callout: none; /* iOS Safari */
-webkit-user-select: none; /* Safari */
-khtml-user-select: none; /* Konqueror HTML */
-moz-user-select: none; /* Firefox */
-ms-user-select: none; /* Internet Explorer/Edge */
user-select: none; /* Non-prefixed version, currently
supported by Chrome and Opera */
}
.view-btn {
cursor: pointer;
}
.copy-btn {
cursor: pointer;
}
#html-container {
margin: auto;
width: 600px;
}
.category-item {
position: relative;
}
.category-item .drag-handler,
.category-item .delete-handler {
position: absolute;
display: flex;
justify-content: center;
align-items: center;
outline: solid 1px #000;
text-align: center;
width: 30px;
height: 30px;
}
.category-item:hover {
outline: 1px solid #d0d0d0;
background: #f5f5f5;
}
.category-item:hover .drag-handler,
.category-item:hover .delete-handler {
visibility: visible;
}
.category-item .drag-handler {
right: 40px;
top: -10px;
background-color: #f0f0f0;
cursor: row-resize;
visibility: hidden;
}
.category-item .delete-handler {
right: 5px;
top: -10px;
background-color: #f0f0f0;
color: #f00;
font-weight: bold;
cursor: pointer;
visibility: hidden;
}
.placeholder {
border: 1px solid black;
margin: 0 1em 1em 0;
height: 100px;
background: #f0f0f0;
}
.tooltip {
position: relative;
display: inline-block;
border-bottom: 1px dotted black;
}
.tooltip .tooltiptext {
visibility: hidden;
width: 120px;
background-color: #555;
color: #fff;
text-align: center;
border-radius: 6px;
padding: 5px 0;
position: absolute;
z-index: 1;
bottom: 125%;
left: 50%;
margin-left: -60px;
opacity: 0;
transition: opacity 0.3s;
}
.tooltip .tooltiptext::after {
content: "";
position: absolute;
top: 100%;
left: 50%;
margin-left: -5px;
border-width: 5px;
border-style: solid;
border-color: #555 transparent transparent transparent;
}
.tooltip:hover .tooltiptext {
visibility: visible;
opacity: 1;
}