-
Notifications
You must be signed in to change notification settings - Fork 1
/
style.css
189 lines (159 loc) · 3.07 KB
/
style.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
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
:root {
--cw-bg-color: rgba(35, 39, 46, 0.95);
--cw-bg-having-color: #0c0f1f;
--cw-border-color-txtarea: #162566;
--cw-text-color: #ddd;
--white: #fff;
--cw-border-color: #171a1f;
--cw-border-color-rgba: rgba(10, 22, 47, 0.5);
--cw-border-hover-color: #66f;
--cw-border-focus-color: #09f;
}
*::before,
*::after {
box-sizing: inherit;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
padding: 0;
color: var(--cw-text-color);
}
#app {
height: 100vh;
font-family: Avenir, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
background-color: var(--cw-bg-color);
display: grid;
grid-template-columns: 0.4fr 10px 1fr;
}
/* split js */
.gutter-col {
grid-area: auto;
position: relative;
cursor: col-resize;
background-color: var(--cw-border-color-rgba);
}
.gutter-col::before {
position: absolute;
content: '';
width: 100%;
height: 50px;
top: 50%;
background-image: url('./public/icons/vertical.png');
background-position: center;
background-repeat: no-repeat;
}
.gutter-row {
grid-area: auto;
position: relative;
cursor: row-resize;
background-color: var(--cw-border-color-rgba);
}
.gutter-row::before {
position: absolute;
content: '';
width: 50px;
height: 100%;
left: 50%;
background-image: url('./public/icons/vertical.png');
background-position: center;
background-repeat: no-repeat;
transform: rotate(90deg);
}
/* styles normal */
.wrapper:nth-child(1) {
display: grid;
grid-template-rows: 1fr 0.1fr 1fr 0.1fr 1fr;
overflow: hidden;
}
.roles {
display: flex;
flex-direction: column;
border-top: 1px solid var(--cw-border-color);
overflow: hidden;
position: relative;
}
.roles label {
font-size: 17px;
font-weight: bold;
padding: 10px;
text-transform: capitalize;
}
/* will remote */
.wrapper iframe {
width: 100%;
height: 100%;
margin: 0;
border: none;
display: block;
background-color: var(--white);
}
#html,
#css,
#javascript {
width: 100%;
height: 100%;
}
/* float icons */
.float {
position: absolute;
bottom: 5px;
right: 5px;
user-select: none;
}
.float img {
opacity: 0.5;
user-select: none;
}
.roles textarea:focus + .float img,
.roles:hover > .float img {
opacity: 1;
}
.float span {
color: var(--cw-border-color);
opacity: 0.6;
user-select: none;
}
/* export code */
.export-code {
position: absolute;
top: 1%;
right: 1%;
}
.button-export {
user-select: none;
cursor: pointer;
padding: 5px 10px;
border: 2px solid #2f2f2f;
color: rgba(10, 22, 47);
border-radius: 5px;
font-weight: bold;
}
.button-export:hover {
color: var(--white);
background-color: var(--cw-border-color);
border-color: transparent;
}
.button-export:disabled {
cursor: not-allowed;
background-color: #f2f2f2;
color: gray;
border-color: #ccc;
}
#is-copied {
display: none;
position: absolute;
bottom: 1%;
left: 50%;
border: 1px solid var(--cw-bg-color);
background-color: var(--cw-bg-color);
border-radius: 5px;
padding: 10px 20px;
}
#is-copied span {
color: var(--cw-text-color);
}