-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.css
113 lines (98 loc) · 1.91 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
* {
padding: 0;
margin: 0;
border: none;
}
html,
body {
background: white;
font-size: 18px;
color: #444;
overflow-x: hidden;
/* overflow: hidden; */
}
.main_layout {
display: grid;
grid-template-columns: 36rem 1fr;
width: 100vw;
height: 100vh;
overflow: hidden;
}
.main_layout > * {
height: 100vh;
}
#htmlContainer {
position: fixed;
top: calc(100% - 72px);
right: 0px;
z-index: 999;
width: 100%;
height: 100%;
overflow: hidden;
transition: all 0.35s ease-in-out;
box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.15);
}
#render {
height: 100%;
overflow-y: auto;
}
#code {
outline: 1px solid red;
height: 100%;
}
.toolbar {
position: fixed;
top: 0;
right: 0;
padding: 1rem;
z-index: 999;
}
.CodeMirror {
width: 100%;
height: 100%;
}
#toggleContainer {
display: flex;
justify-content: center;
align-items: center;
}
input[type=checkbox] {
height: 0;
width: 0;
visibility: hidden;
}
label {
cursor: pointer;
text-indent: -9999px;
width: 48px;
height: 32px;
/* box-shadow: inset 0px 0px 0px 1px rgba(0, 0, 0, 0.15); */
background: moccasin;
display: block;
border-radius: 20px;
position: relative;
margin: 0px;
padding: 0px;
}
label:after {
content: '';
position: absolute;
top: 4px;
left: 4px;
width: 24px;
height: 24px;
background: white;
border-radius: 16px;
transition: 0.2s;
box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.35), 0px 8.71728px 17.2408px rgba(0, 0, 0, 0.0185187), 0px 2.76435px 5.19761px rgba(0, 0, 0, 0.0225848), 0px 1.18477px 2.15882px rgba(0, 0, 0, 0.0264039), 0px 0.409114px 0.780803px rgba(0, 0, 0, 0.04);
}
input:checked+label {
background: #a3be8c;
}
input:checked+label:after {
left: calc(100% - 4px);
transform: translateX(-100%);
}
label:active:after {
width: 32px;
}