]> git.0d.be Git - chloro.git/blob - chloro/phyll/static/css/style.scss
27d211cb91a552c2ce8f72b7d15fbad713fe2c43
[chloro.git] / chloro / phyll / static / css / style.scss
1 @charset "UTF-8";
2
3 $text-color: #222;
4 $link-color: #0000ee;
5 $visited-link-color: #551a8b;
6
7 @import "opensans";
8
9 body {
10         font-family: "Open Sans", sans-serif;
11         background: white;
12         color: $text-color;
13         font-size: 100%;
14 }
15
16 a {
17         color: $link-color;
18         text-decoration: none;
19         border-bottom: 0.1em dotted $link-color;
20         &:visited {
21                 color: $visited-link-color;
22                 border-color: $visited-link-color;
23         }
24         &:hover {
25                 border-bottom-style: solid;
26         }
27 }
28
29 header {
30         display: inline-block;
31         h1 {
32                 font-weight: normal;
33                 text-transform: uppercase;
34                 margin: 1em 0 0 1em;
35                 padding: 0 0.5em;
36                 color: lighten($text-color, 20%);
37                 background: #fafaff;
38                 display: inline-block;
39                 a {
40                         border: none;
41                 }
42         }
43         transform: rotate(-2deg);
44         position: relative;
45         z-index: 2;
46 }
47
48 div.actions {
49         position: absolute;
50         top: 0.5rem;
51         left: 1rem;
52         z-index: 100;
53         a {
54                 margin-right: 1rem;
55         }
56 }
57
58 main, footer {
59         margin: 0 4em;
60         padding: 1em;
61         max-width: 70em;
62 }
63
64 main {
65         position: relative;
66         background: #fafaff;
67         min-height: 70vh;
68         clip-path: polygon(0px 0px, 96.35% -24px, 101.99% 7.86%, 100.61% 103.56%, 10% 100%, 0% 100%, 0px 0px);
69 }
70
71 .home {
72         nav a {
73                 text-transform: uppercase;
74                 display: inline-block;
75                 text-decoration: none;
76                 font-size: 500%;
77                 font-weight: bold;
78                 padding-top: 0.5em;
79                 line-height: 50%;
80                 width: 100%;
81                 span {
82                         font-size: 30%;
83                 }
84                 margin-bottom: 1rem;
85                 &.divers {
86                         width: 49%;
87                 }
88                 &.vrac {
89                         width: 49%;
90                         text-align: right;
91                         float: right;
92                 }
93         }
94         .latest {
95                 margin-top: 2em;
96                 h2 {
97                         margin: 0;
98                         font-size: 400%;
99                         font-weight: bold;
100                         text-transform: uppercase;
101                 }
102                 .meta {
103                         padding-top: 0.5rem;
104                         padding-left: 0.5rem;
105                         color: lighten($text-color, 40%);
106                 }
107         }
108 }
109
110 .post {
111         max-width: 50em;
112         div.figure {
113                 text-align: center;
114                 margin: 1em 0;
115                 img {
116                         border: 1px solid gray;
117                         padding: 3px;
118                 }
119                 .caption {
120                         margin-top: 0;
121                         font-style: italic;
122                 }
123         }
124         p {
125                 line-height: 160%;
126         }
127         code,
128         pre.screen {
129                 background: #111;
130                 color: white;
131                 padding: 2px;
132         }
133         div.meta {
134                 margin-top: 3em;
135                 color: lighten($text-color, 40%);
136         }
137         div.note {
138                 background: #fbf7c1;;
139                 padding: 0.2em 0.5em 0.2em 2em;
140                 p {
141                         margin: 0.5em 0;
142                 }
143         }
144 }
145
146 .post-list {
147         ul, li {
148                 margin: 0;
149                 padding: 0;
150                 list-style: none;
151                 display: inline-block;
152         }
153         li.unpublished {
154                 opacity: 0.5;
155         }
156         a {
157                 text-transform: uppercase;
158                 display: inline-block;
159                 text-decoration: none;
160                 font-size: 200%;
161                 font-weight: bold;
162                 padding-top: 0.5em;
163                 margin-right: 1em;
164                 span {
165                         font-size: 60%;
166                 }
167         }
168 }
169
170 .older.post-list {
171         margin: 5em 0 2em 0;
172         padding: 1em 0;
173         border-top: 0.1em dotted $link-color;
174         border-bottom: 0.1em dotted $link-color;
175         line-height: 200%;
176         li {
177                 display: inline;
178                 a {
179                         padding-top: 0;
180                         display: inline;
181                         font-size: 120%;
182                 }
183         }
184 }
185
186 footer {
187         p {
188                 text-align: right;
189                 font-size: 100%;
190         }
191 }
192
193 div[contenteditable=true]:focus-within {
194         outline: 1px solid gray;
195         outline-offset: 3px;
196         ~ button#save {
197                 display: block;
198         }
199 }
200
201 .inline-style-popup,
202 .block-style-popup {
203         background: white;
204         box-shadow: 0 0 5px #666;
205         input {
206                 display: none;
207                 padding: 3px;
208                 border: 1px inset #ccc;
209                 background: white;
210                 width: 0px;
211                 transition: width ease 2s;
212                 &.shown {
213                         display: inline-block;
214                         width: 400px;
215                 }
216         }
217         button {
218                 padding: 0 0.5em;
219                 height: 2em;
220                 text-align: center;
221                 background: #eee;
222                 border: 0px;
223                 &:hover {
224                         background: #ccc;
225                 }
226                 &[data-action=createLink] {
227                         color: blue;
228                         text-decoration: underline;
229                 }
230                 &.on {
231                         background: #444;
232                         color: white;
233                 }
234         }
235         &.inline-style-popup button {
236                 width: 2em;
237                 padding: 0;
238         }
239         &.block-style-popup {
240                 &.selected button {
241                         display: none;
242                         &.on {
243                                 display: block;
244                         }
245                 }
246         }
247 }
248
249 button#save {
250         position: sticky;
251         bottom: 10px;
252         display: none;
253 }