Skip to content

Commit d87674b

Browse files
committed
Organize the existing CSS
1 parent c3efc40 commit d87674b

9 files changed

Lines changed: 446 additions & 307 deletions

File tree

assets/sass/_common.scss

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
/*
2+
* Copyright (C) 2016-2019 Alexander Krivács Schrøder <alexschrod@gmail.com>
3+
*
4+
* This program is free software: you can redistribute it and/or modify
5+
* it under the terms of the GNU General Public License as published by
6+
* the Free Software Foundation, either version 3 of the License, or
7+
* (at your option) any later version.
8+
*
9+
* This program is distributed in the hope that it will be useful,
10+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
* GNU General Public License for more details.
13+
*
14+
* You should have received a copy of the GNU General Public License
15+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
16+
*/
17+
18+
.hidden {
19+
display: none !important;
20+
}
21+
22+
@media screen and (min-width: 1015px) {
23+
// Large screens (wider than the automatically resizing comics)
24+
img[src*="/comics/"] {
25+
margin-left: -15px;
26+
margin-right: 15px;
27+
}
28+
}
29+
30+
.nav, .pagination, .carousel, .panel-title a {
31+
cursor: pointer;
32+
}
33+
34+
.modal {
35+
color: #ebebeb;
36+
text-align: left;
37+
38+
input { width: auto; }
39+
40+
label.disabled, p.disabled {
41+
color: #999;
42+
}
43+
}
44+
45+
input {
46+
margin: 0 !important;
47+
}
48+
49+
a {
50+
cursor: pointer;
51+
}

assets/sass/_variables.scss

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/*
2+
* Copyright (C) 2016-2019 Alexander Krivács Schrøder <alexschrod@gmail.com>
3+
*
4+
* This program is free software: you can redistribute it and/or modify
5+
* it under the terms of the GNU General Public License as published by
6+
* the Free Software Foundation, either version 3 of the License, or
7+
* (at your option) any later version.
8+
*
9+
* This program is distributed in the hope that it will be useful,
10+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
* GNU General Public License for more details.
13+
*
14+
* You should have received a copy of the GNU General Public License
15+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
16+
*/
17+
18+
$link-color: #2ba6cb;

assets/sass/style.scss

Lines changed: 3 additions & 307 deletions
Original file line numberDiff line numberDiff line change
@@ -15,315 +15,11 @@
1515
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1616
*/
1717

18-
$link-color: #2ba6cb;
19-
20-
.hidden {
21-
display: none !important;
22-
}
23-
24-
#qcnav_navbox {
25-
margin: 40px 5px 5px 5px;
26-
text-align: center;
27-
28-
thead, tbody {
29-
border: none;
30-
}
31-
32-
> tbody > tr, > thead > tr {
33-
background-color: #ffffff !important;
34-
}
35-
36-
thead td, thead th {
37-
text-align: center;
38-
}
39-
a.qc {
40-
cursor: pointer;
41-
42-
// START Style bits borrowed from/based on QC's own styles
43-
background: transparent;
44-
padding: 0px 4px;
45-
text-decoration: none;
46-
47-
&, &:link {
48-
color: $link-color;
49-
}
50-
51-
&:visited {
52-
color: #258faf;
53-
}
54-
55-
&:hover {
56-
color: #258faf;
57-
}
58-
// END Style bits borrowed from/based on QC's own styles
59-
}
60-
61-
h1 {
62-
font-size: 15px;
63-
margin-top: 10px;
64-
65-
&.first-header {
66-
margin-top: 0;
67-
}
68-
69-
&.update-header {
70-
margin-top: 0;
71-
margin-bottom: 0;
72-
73-
color: #e43;
74-
font-weight: bold;
75-
}
76-
77-
small {
78-
color: #0a0a0a;
79-
line-height: 1;
80-
}
81-
}
82-
}
83-
84-
@media screen and (min-width: 1015px) {
85-
// Large screens (wider than the automatically resizing comics)
86-
img[src*="/comics/"] {
87-
margin-left: -15px;
88-
margin-right: 15px;
89-
}
90-
91-
#qcnav_navbox {
92-
margin-left: -48px;
93-
width: 200px;
94-
}
95-
}
96-
97-
@media screen and (max-width: 639px) {
98-
// Small screens (mobile)
99-
}
100-
101-
.qcnav_space {
102-
padding: 3px;
103-
}
104-
.qcnav_centered {
105-
text-align: center;
106-
}
107-
.qcnav_vcentered {
108-
vertical-align: middle;
109-
}
110-
.qcnav_navelement {
111-
width: 100%;
112-
font-weight: bold;
113-
margin: 0;
114-
* {
115-
background-color: transparent;
116-
}
117-
a {
118-
text-decoration: none;
119-
}
120-
td {
121-
padding: 3px 1px;
122-
}
123-
.no-nav {
124-
visibility: hidden;
125-
}
126-
}
127-
128-
.qcnav_arrows {
129-
font-weight: bold;
130-
}
131-
.qcnav_name {
132-
width: 100%;
133-
text-align: center;
134-
}
135-
136-
a.qcnav_settings {
137-
font-size: x-small;
138-
text-decoration: none;
139-
}
140-
141-
.nav, .pagination, .carousel, .panel-title a {
142-
cursor: pointer;
143-
}
144-
145-
.modal {
146-
color: #ebebeb;
147-
text-align: left;
148-
149-
input { width: auto; }
150-
151-
label.disabled, p.disabled {
152-
color: #999;
153-
}
154-
}
155-
156-
input {
157-
margin: 0 !important;
158-
}
159-
160-
a {
161-
cursor: pointer;
162-
}
163-
164-
.radial-progress {
165-
border-radius: 50%;
166-
.circle {
167-
.mask, .fill, .inset {
168-
position: absolute;
169-
border-radius: 50%;
170-
}
171-
172-
.mask, .fill {
173-
-webkit-backface-visibility: hidden;
174-
backface-visibility: hidden;
175-
176-
transition: -webkit-transform 1s;
177-
transition: -ms-transform 1s;
178-
transition: transform 1s;
179-
}
180-
}
181-
}
182-
183-
#messageSeat {
184-
position: fixed;
185-
top: 0;
186-
bottom: 0;
187-
left: 0;
188-
right: 0;
189-
pointer-events: none;
190-
z-index: 10000;
191-
192-
& > * {
193-
pointer-events: all;
194-
}
195-
196-
.alert {
197-
margin-bottom: 1px;
198-
font-size: 15px;
199-
}
200-
}
201-
202-
.qcnav_navelement a.qcnav_name_link {
203-
cursor: pointer;
204-
text-decoration: none;
205-
color: $link-color;
206-
}
207-
208-
#qcnav_item_missing_cast, #qcnav_item_missing_location, #qcnav_item_missing_storyline
209-
, #qcnav_item_missing_title, #qcnav_item_missing_tagline {
210-
> table.with_color {
211-
background-color: #5f0000;
212-
213-
a.qcnav_name_link, a:link, a:visited {
214-
color: #ff3030;
215-
}
216-
217-
a:hover, a:focus {
218-
color: #ff9797;
219-
}
220-
}
221-
}
222-
223-
.corner-ribbon {
224-
width: 200px;
225-
background: #e43;
226-
position: absolute;
227-
text-align: center;
228-
line-height: 50px;
229-
letter-spacing: 1px;
230-
color: #f0f0f0;
231-
transform: rotate(-45deg) scale(1) translateY(0px);
232-
transition: transform 2s, opacity 1s;
233-
cursor: pointer;
234-
opacity: 1;
235-
236-
&.sticky {
237-
position: fixed;
238-
}
239-
240-
&.shadow {
241-
box-shadow: 0 3px 3px 0 rgba(0,0,0,0.3);
242-
}
243-
244-
/* Positions */
245-
246-
&.top-left {
247-
top: 25px;
248-
left: -50px;
249-
transform: rotate(-45deg);
250-
}
251-
252-
&.top-right {
253-
top: 25px;
254-
right: -35px;
255-
transform: rotate(45deg) scale(1) translateY(0px);
256-
clip-path: polygon(27.5% -12.5%, -12.5% 150%, 112.5% 150%, 72.5% -12.5%);
257-
258-
@media screen and (max-width: 1014px) {
259-
right: -50px;
260-
}
261-
262-
&.small {
263-
transform: rotate(45deg) scale(0.25) translateY(-220px);
264-
}
265-
266-
&:hover {
267-
opacity: 0.4;
268-
}
269-
}
270-
271-
&.bottom-left {
272-
bottom: 25px;
273-
left: -50px;
274-
transform: rotate(45deg);
275-
}
276-
277-
&.bottom-right {
278-
right: -50px;
279-
bottom: 25px;
280-
transform: rotate(-45deg);
281-
}
282-
283-
/* Colors */
284-
285-
&.white { background: #f0f0f0; color: #555; }
286-
&.black { background: #333; }
287-
&.grey { background: #999; }
288-
&.blue { background: #39d; }
289-
&.green { background: #2c7; }
290-
&.turquoise { background: #1b9; }
291-
&.purple { background: #95b; }
292-
&.red { background: #e43; }
293-
&.orange { background: #e82; }
294-
&.yellow { background: #ec0; }
295-
}
18+
@import "variables";
19+
@import "common";
20+
@import "widgets/widgets";
29621

29722
qc-comic {
29823
display: inline-block;
29924
position: relative;
30025
}
301-
302-
.lds-dual-ring {
303-
display: inline-block;
304-
width: 46px;
305-
height: 64px;
306-
}
307-
.lds-dual-ring:after {
308-
content: " ";
309-
display: block;
310-
width: 46px;
311-
height: 46px;
312-
margin: 1px;
313-
border-radius: 50%;
314-
border: 5px solid #fff;
315-
border-color: #fff transparent #fff transparent;
316-
animation: lds-dual-ring 1.2s linear infinite;
317-
}
318-
.lds-dual-ring.black:after{
319-
border: 5px solid #000;
320-
border-color: #000 transparent #000 transparent;
321-
}
322-
@keyframes lds-dual-ring {
323-
0% {
324-
transform: rotate(0deg);
325-
}
326-
100% {
327-
transform: rotate(360deg);
328-
}
329-
}

0 commit comments

Comments
 (0)