-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMMM-ModulePosition.3.4.css
More file actions
227 lines (197 loc) · 4.09 KB
/
MMM-ModulePosition.3.4.css
File metadata and controls
227 lines (197 loc) · 4.09 KB
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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
html {
cursor:auto;
}
body {
margin: 50px;
background-size: 50px 50px;
/*background-image: radial-gradient(circle, white 1px, black 1px);*/
background-image: linear-gradient(to right, grey 1px, transparent 1px), linear-gradient(to bottom, grey 1px, transparent 1px);
}
.resizable {
background: white;
box-sizing: border-box;
}
.resizable .resizers {
width: 100%;
height: 100%;
border: 3px solid #4286f4;
box-sizing: border-box;
}
.resizable .resizer {
width: 10px;
height: 10px;
border-radius: 50%; /*magic to turn square into circle*/
background: white;
border: 3px solid #4286f4;
position:absolute;
}
.resizable .resizer.top-left {
left: -5px;
top: -5px;
cursor: nwse-resize; /*resizer cursor*/
}
.resizable .resizer.top-right {
right: -5px;
top: -5px;
cursor: nesw-resize;
}
.resizable .resizer.bottom-left {
left: -5px;
bottom: -5px;
cursor: nesw-resize;
}
.resizable .resizer.bottom-right {
right: -5px;
bottom: -5px;
cursor: nwse-resize;
}
.drag {
background-color: rgba(255,255,255,.25);
color: white;
font-size: 12px;
font-family: sans-serif;
border-radius: 8px;
padding: 20px;
touch-action: none;
/*width: 120px;*/
/* This makes things *much* easier */
box-sizing: border-box;
border-color: rgba(255,255,255,.5);
border-width: 1px;
border-style: solid;
}
.drag:hover {
border-color: white;
border-width: 1px;
border-style: solid;
}
.currentmodulemeta{
position:absolute;
background-color:rgba(0,0,0,0);
height:12pt;
width:100%;
top:1px;
left:0px;
z-index:1000;
}
/*
div {
border-color: white;
border-width: 1px;
border-style:solid;
}
*/
.glass {
/* background styles */
position: relative;
display: inline-block;
padding: 15px 25px;
background-color: lightgray; /*for compatibility with older browsers*/
background-image: linear-gradient(lightgray,white);
/* text styles */
text-decoration: none;
color: #123;
font-size: 12px;
font-family: sans-serif;
font-weight: 100;
border-radius: 3px;
box-shadow: 0px 1px 4px -2px #333;
text-shadow: 0px -1px #333;
}
.glass:after {
content: '';
position: absolute;
top: 2px;
left: 2px;
width: calc(100% - 4px);
height: 50%;
background: linear-gradient(rgba(255,255,255,0.8), rgba(255,255,255,0.2));
}
.glass:hover {
background: linear-gradient(grey,white);
}
/* the meta grid*/
.metagridname {
grid-area: name;
}
.metagridx {
grid-area: x;
}
.metagridw {
grid-area: w;
}
.metagridy {
grid-area: y;
}
.metagridh {
grid-area: h;
}
.metagrid {
display: grid;
grid-template-areas: 'name name' 'x w' 'y h';
grid-gap: 1px;
background-color: rgba(255,255,255,0.25);
padding: 2px;
left: 110px;
top: 0;
width: 180px;
position: absolute;
}
.metagrid > div {
color: white;
font-size: 14px;
padding: 4px;
background-color: rgba(255,255,255,0.35);
}
.switch {
position: relative;
display: inline-block;
width: 40px;
height: 20px;
}
/* hide the actual switch */
.switch input {
opacity: 0;
width: 0;
height: 0;
}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
-webkit-transition: .4s;
transition: .4s;
}
.slider:before {
position: absolute;
content: "";
height: 16px;
width: 16px;
left: 2px;
bottom: 2px;
background-color: white;
-webkit-transition: .4s;
transition: .4s;
}
input:checked + .slider {
background-color: #2196F3;
}
input:focus + .slider {
box-shadow: 0 0 1px #2196F3;
}
input:checked + .slider:before {
-webkit-transform: translateX(18px);
-ms-transform: translateX(18px);
transform: translateX(18px);
}
/* Rounded sliders */
.slider.round {
border-radius: 20px;
}
.slider.round:before {
border-radius: 50%;
}