diff options
Diffstat (limited to 'style.css')
-rw-r--r-- | style.css | 224 |
1 files changed, 224 insertions, 0 deletions
diff --git a/style.css b/style.css new file mode 100644 index 0000000..6be7ed3 --- /dev/null +++ b/style.css | |||
@@ -0,0 +1,224 @@ | |||
1 | |||
2 | |||
3 | :root { | ||
4 | --gray0: hsl(270, 0%, 7%); | ||
5 | --gray1: hsl(270, 0%, 10%); | ||
6 | --gray2: hsl(270, 1%, 16%); | ||
7 | --gray3: hsl(270, 1%, 24%); | ||
8 | --gray4: hsl(270, 1%, 35%); | ||
9 | --gray5: hsl(270, 2%, 54%); | ||
10 | --gray6: hsl(270, 2%, 73%); | ||
11 | --gray7: hsl(270, 2%, 100%); | ||
12 | |||
13 | /* * */ | ||
14 | |||
15 | --bg-hi: var(--gray0); | ||
16 | --bg: var(--gray1); | ||
17 | |||
18 | --obj-hi: var(--gray2); | ||
19 | --obj: var(--gray3); | ||
20 | --obj-lo: var(--gray4); | ||
21 | |||
22 | --fg-hi: var(--gray5); | ||
23 | --fg: var(--gray6); | ||
24 | --fg-lo: var(--gray7); | ||
25 | |||
26 | /* * */ | ||
27 | |||
28 | --color--yellow: hsl(38, 100%, 76%); | ||
29 | } | ||
30 | |||
31 | html { | ||
32 | height: 100%; | ||
33 | } | ||
34 | |||
35 | body { | ||
36 | height: 100%; | ||
37 | margin: 0; | ||
38 | font-family: IBM Plex Sans, -apple-system, system-ui, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif, BlinkMacSystemFont, Helvetica Neue, Arial; | ||
39 | line-height: 1.5; | ||
40 | background-color: var(--bg); | ||
41 | color: var(--fg); | ||
42 | } | ||
43 | |||
44 | a { | ||
45 | text-decoration: none; | ||
46 | } | ||
47 | |||
48 | p { | ||
49 | margin: 0; | ||
50 | } | ||
51 | |||
52 | iframe { | ||
53 | display: block; | ||
54 | width: 100%; | ||
55 | height: 100%; | ||
56 | } | ||
57 | |||
58 | input { | ||
59 | padding: .5em .7em; | ||
60 | background: var(--obj); | ||
61 | color: var(--fg-lo); | ||
62 | border: 2px solid transparent; | ||
63 | border-radius: 3px; | ||
64 | transition: border-color .2s; | ||
65 | } | ||
66 | |||
67 | input:hover, | ||
68 | input:focus { | ||
69 | border-color: var(--color--yellow); | ||
70 | box-shadow: none; | ||
71 | outline: 0; | ||
72 | } | ||
73 | |||
74 | button { | ||
75 | padding: .6em 1.3em; | ||
76 | font: inherit; | ||
77 | font-size: 12px; | ||
78 | font-weight: bold; | ||
79 | text-transform: uppercase; | ||
80 | letter-spacing: .2em; | ||
81 | background: transparent; | ||
82 | color: var(--color--yellow); | ||
83 | border: 2px solid var(--color--yellow); | ||
84 | border-radius: 3px; | ||
85 | transition: background-color .2s, color .2s; | ||
86 | } | ||
87 | |||
88 | button:hover, | ||
89 | button:focus { | ||
90 | background-color: var(--color--yellow); | ||
91 | color: #000; | ||
92 | } | ||
93 | |||
94 | :link, | ||
95 | :visited { | ||
96 | color: #850000; | ||
97 | } | ||
98 | |||
99 | .c-section { | ||
100 | height: 100%; | ||
101 | } | ||
102 | |||
103 | .c-section--main { | ||
104 | display: grid; | ||
105 | grid-template-areas: "video msg" "video chat"; | ||
106 | grid-template-rows: auto 1fr; | ||
107 | grid-template-columns: 1fr 22em; | ||
108 | } | ||
109 | |||
110 | .c-form { | ||
111 | display: block; | ||
112 | padding: 2rem; | ||
113 | margin: 0 auto; | ||
114 | max-width: 600px; | ||
115 | } | ||
116 | |||
117 | .c-form-msg:empty { | ||
118 | display: none; | ||
119 | } | ||
120 | |||
121 | .c-form-field { | ||
122 | display: block; | ||
123 | margin-top: 2rem; | ||
124 | } | ||
125 | |||
126 | .c-form-field__label { | ||
127 | font-size: 15px; | ||
128 | font-weight: bold; | ||
129 | color: var(--fg-lo); | ||
130 | } | ||
131 | |||
132 | .c-form-field__help { | ||
133 | display: block; | ||
134 | margin-top: .5rem; | ||
135 | color: var(--fg-hi); | ||
136 | font-size: 15px; | ||
137 | } | ||
138 | |||
139 | .c-form-field__input { | ||
140 | box-sizing: border-box; | ||
141 | display: block; | ||
142 | width: 100%; | ||
143 | margin-top: .5rem; | ||
144 | } | ||
145 | |||
146 | .c-frame--pt { | ||
147 | grid-area: video; | ||
148 | } | ||
149 | |||
150 | .c-frame--irc { | ||
151 | grid-area: chat; | ||
152 | } | ||
153 | |||
154 | .c-msg { | ||
155 | grid-area: msg; | ||
156 | display: flex; | ||
157 | color: #850000; | ||
158 | background-color: #fcc; | ||
159 | font-size: 14px; | ||
160 | border: 1px solid #ffb8b8; | ||
161 | } | ||
162 | |||
163 | .c-msg__content { | ||
164 | display: block; | ||
165 | width: 100%; | ||
166 | padding: .75rem 1.25rem; | ||
167 | } | ||
168 | |||
169 | .c-close-icon { | ||
170 | width: 1.1em; | ||
171 | height: 2px; | ||
172 | position: relative; | ||
173 | } | ||
174 | |||
175 | .c-close-icon::before, | ||
176 | .c-close-icon::after { | ||
177 | position: absolute; | ||
178 | left: 0; | ||
179 | display: block; | ||
180 | height: 2px; | ||
181 | content: ''; | ||
182 | background-color: currentColor; | ||
183 | transform-origin: 50% 50%; | ||
184 | } | ||
185 | |||
186 | .c-close-icon::before { | ||
187 | top: 0; | ||
188 | width: 100%; | ||
189 | transform: rotate(45deg); | ||
190 | transition: background-color .3s ease; | ||
191 | } | ||
192 | |||
193 | .c-close-icon::after { | ||
194 | bottom: 0; | ||
195 | transform: rotate(-45deg); | ||
196 | width: 100%; | ||
197 | transition: background-color .3s ease; | ||
198 | } | ||
199 | |||
200 | .c-msg__close { | ||
201 | display: block; | ||
202 | padding: .75rem 1.25rem; | ||
203 | margin-left: auto; | ||
204 | background: transparent; | ||
205 | color: currentColor; | ||
206 | border: 0; | ||
207 | } | ||
208 | |||
209 | .c-msg__close:hover { | ||
210 | background: transparent; | ||
211 | color: currentColor; | ||
212 | } | ||
213 | |||
214 | .u-hidden { | ||
215 | display: none; | ||
216 | } | ||
217 | |||
218 | @media (max-width: 1024px) { | ||
219 | .c-section--main { | ||
220 | grid-template-areas: "msg" "video" "chat"; | ||
221 | grid-template-rows: auto 1fr 22em; | ||
222 | grid-template-columns: 1fr; | ||
223 | } | ||
224 | } | ||