Mercurial > web
annotate css/style.css @ 81:eb3bbc61bc17
Use flexbox for lots more things
this should make stuff actually work on safari. HOPEFULLY.
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Mon, 20 May 2024 04:00:58 -0400 |
parents | 815c0da68384 |
children | b98a84a0afb2 |
rev | line source |
---|---|
75
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
1 /* remove stupid default margin */ |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
2 html, body { |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
3 margin: 0px; |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
4 padding: 0px; |
72 | 5 } |
6 | |
75
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
7 /* body-wide font choice */ |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
8 body { |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
9 color: white; |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
10 font-family: sans-serif; |
69 | 11 } |
72 | 12 |
78
5fdf5f346b92
*: use jekyll for templates, blogging, etc.
Paper <paper@paper.us.eu.org>
parents:
75
diff
changeset
|
13 /* makes links look good site-wide; not a fan of |
5fdf5f346b92
*: use jekyll for templates, blogging, etc.
Paper <paper@paper.us.eu.org>
parents:
75
diff
changeset
|
14 * making them purple after being visited, so disable |
5fdf5f346b92
*: use jekyll for templates, blogging, etc.
Paper <paper@paper.us.eu.org>
parents:
75
diff
changeset
|
15 * it here */ |
75
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
16 a.prettylink:link, a.prettylink:visited { |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
17 color: #3395ff; |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
18 text-decoration: none; |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
19 } |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
20 |
78
5fdf5f346b92
*: use jekyll for templates, blogging, etc.
Paper <paper@paper.us.eu.org>
parents:
75
diff
changeset
|
21 a.prettylink:hover { |
75
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
22 text-decoration: underline; |
72 | 23 } |
24 | |
78
5fdf5f346b92
*: use jekyll for templates, blogging, etc.
Paper <paper@paper.us.eu.org>
parents:
75
diff
changeset
|
25 a.prettylink:active { |
5fdf5f346b92
*: use jekyll for templates, blogging, etc.
Paper <paper@paper.us.eu.org>
parents:
75
diff
changeset
|
26 color: hotpink; |
5fdf5f346b92
*: use jekyll for templates, blogging, etc.
Paper <paper@paper.us.eu.org>
parents:
75
diff
changeset
|
27 } |
5fdf5f346b92
*: use jekyll for templates, blogging, etc.
Paper <paper@paper.us.eu.org>
parents:
75
diff
changeset
|
28 |
75
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
29 /* navbar */ |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
30 .navbar { |
81
eb3bbc61bc17
Use flexbox for lots more things
Paper <paper@paper.us.eu.org>
parents:
79
diff
changeset
|
31 display: flex; |
72 | 32 |
75
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
33 background-color: rgba(0, 0, 0, 0.6); |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
34 color: white; |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
35 |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
36 padding: 5px; |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
37 } |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
38 |
81
eb3bbc61bc17
Use flexbox for lots more things
Paper <paper@paper.us.eu.org>
parents:
79
diff
changeset
|
39 .project-quip, |
eb3bbc61bc17
Use flexbox for lots more things
Paper <paper@paper.us.eu.org>
parents:
79
diff
changeset
|
40 .navbar-right { |
eb3bbc61bc17
Use flexbox for lots more things
Paper <paper@paper.us.eu.org>
parents:
79
diff
changeset
|
41 margin-left: auto; |
eb3bbc61bc17
Use flexbox for lots more things
Paper <paper@paper.us.eu.org>
parents:
79
diff
changeset
|
42 } |
eb3bbc61bc17
Use flexbox for lots more things
Paper <paper@paper.us.eu.org>
parents:
79
diff
changeset
|
43 |
75
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
44 .navbar-item { |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
45 color: gray; |
69 | 46 } |
72 | 47 |
75
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
48 .navbar-item-active { |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
49 color: white; |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
50 } |
72 | 51 |
75
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
52 .navbar-item, |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
53 .navbar-item-active { |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
54 text-decoration: none; |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
55 margin-left: 5px; |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
56 margin-right: 5px; |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
57 } |
72 | 58 |
75
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
59 .navbar-item:hover, |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
60 .navbar-item-active:hover { |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
61 text-decoration: underline; |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
62 color: white; |
69 | 63 } |
72 | 64 |
74
c8ea71d9d102
*: rebuild bootstrap so it works on safari, add some links to html
Paper <mrpapersonic@gmail.com>
parents:
72
diff
changeset
|
65 /* generic drop shadows that I heavily use in... everything, |
72 | 66 * so having them as their own classes is pretty nice :) |
67 */ | |
68 .drop-shadow-text { | |
69 text-shadow: 0.125em 0.125em 0.125em rgba(0, 0, 0, 0.5); | |
69 | 70 } |
72 | 71 |
72 .drop-shadow-box { | |
73 box-shadow: 0.125em 0.125em 0.625em rgba(0, 0, 0, 0.5); | |
69 | 74 } |
75
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
75 |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
76 /* fuck off */ |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
77 h1, h2 { |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
78 margin: 0; |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
79 } |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
80 |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
81 /* creates a box to store text or whatever in */ |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
82 .content { |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
83 background-color: rgba(0, 0, 0, 0.6); |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
84 margin-inline: max(1em, 50% - 46.88em/2); |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
85 |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
86 /* essentially equivalent to `margin: auto;` |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
87 * except it has a minimum value of 1em to make it |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
88 * look nice on mobile |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
89 */ |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
90 padding: 1em; |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
91 } |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
92 |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
93 /* headers */ |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
94 .header { |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
95 display: flex; |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
96 flex-wrap: wrap; /* wrap text, useful on mobile */ |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
97 |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
98 align-items: center; |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
99 |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
100 text-align: center; |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
101 justify-content: center; |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
102 } |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
103 |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
104 /* projects/index.html */ |
81
eb3bbc61bc17
Use flexbox for lots more things
Paper <paper@paper.us.eu.org>
parents:
79
diff
changeset
|
105 .project-title-container { |
eb3bbc61bc17
Use flexbox for lots more things
Paper <paper@paper.us.eu.org>
parents:
79
diff
changeset
|
106 display: flex; |
eb3bbc61bc17
Use flexbox for lots more things
Paper <paper@paper.us.eu.org>
parents:
79
diff
changeset
|
107 } |
eb3bbc61bc17
Use flexbox for lots more things
Paper <paper@paper.us.eu.org>
parents:
79
diff
changeset
|
108 |
75
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
109 .project-title { |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
110 font-weight: bold; |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
111 } |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
112 |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
113 .project-separator { |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
114 margin: 1px 0px; |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
115 } |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
116 |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
117 .index-socials-list, /* woah! */ |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
118 .project-downloads { |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
119 margin: 0px; |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
120 list-style: square; |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
121 } |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
122 |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
123 /* index.html */ |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
124 .title { |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
125 display: inline-block; |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
126 vertical-align: middle; |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
127 |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
128 /* dumb little hack to get this to render properly on mobile */ |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
129 padding: 0 0.75em; |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
130 } |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
131 |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
132 .avatar { |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
133 display: inline-block; |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
134 |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
135 border: 4px solid black; |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
136 width: 200px; |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
137 height: auto; |
d69f3fe99911
*: remove bootstrap, add projects page, use custom navbar
Paper <paper@paper.us.eu.org>
parents:
74
diff
changeset
|
138 } |
78
5fdf5f346b92
*: use jekyll for templates, blogging, etc.
Paper <paper@paper.us.eu.org>
parents:
75
diff
changeset
|
139 |
81
eb3bbc61bc17
Use flexbox for lots more things
Paper <paper@paper.us.eu.org>
parents:
79
diff
changeset
|
140 .project-quip, |
78
5fdf5f346b92
*: use jekyll for templates, blogging, etc.
Paper <paper@paper.us.eu.org>
parents:
75
diff
changeset
|
141 .blog-footer, |
5fdf5f346b92
*: use jekyll for templates, blogging, etc.
Paper <paper@paper.us.eu.org>
parents:
75
diff
changeset
|
142 .blog-date-right { |
5fdf5f346b92
*: use jekyll for templates, blogging, etc.
Paper <paper@paper.us.eu.org>
parents:
75
diff
changeset
|
143 font-size: smaller; |
5fdf5f346b92
*: use jekyll for templates, blogging, etc.
Paper <paper@paper.us.eu.org>
parents:
75
diff
changeset
|
144 } |
5fdf5f346b92
*: use jekyll for templates, blogging, etc.
Paper <paper@paper.us.eu.org>
parents:
75
diff
changeset
|
145 |
5fdf5f346b92
*: use jekyll for templates, blogging, etc.
Paper <paper@paper.us.eu.org>
parents:
75
diff
changeset
|
146 .align-right, |
5fdf5f346b92
*: use jekyll for templates, blogging, etc.
Paper <paper@paper.us.eu.org>
parents:
75
diff
changeset
|
147 .blog-date-right { |
5fdf5f346b92
*: use jekyll for templates, blogging, etc.
Paper <paper@paper.us.eu.org>
parents:
75
diff
changeset
|
148 float: inline-end; |
5fdf5f346b92
*: use jekyll for templates, blogging, etc.
Paper <paper@paper.us.eu.org>
parents:
75
diff
changeset
|
149 } |