]> git.0d.be Git - chloro.git/blob - chloro/phyll/static/css/style.scss
views: add an "archives" view
[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: 1rem;
51         right: 1rem;
52         a {
53                 margin-left: 1rem;
54         }
55 }
56
57 main {
58         margin: 0 4em;
59         padding: 1em;
60         background: #fafaff;
61         max-width: 70em;
62         min-height: 70vh;
63         clip-path: polygon(0px 0px, 96.35% -24px, 101.99% 7.86%, 100.61% 103.56%, 10% 100%, 0% 100%, 0px 0px);
64 }
65
66 .home {
67         a {
68                 text-transform: uppercase;
69                 display: inline-block;
70                 text-decoration: none;
71                 font-size: 500%;
72                 font-weight: bold;
73                 padding-top: 0.5em;
74                 line-height: 50%;
75                 width: 100%;
76                 span {
77                         font-size: 30%;
78                 }
79                 margin-bottom: 2rem;
80                 &.divers {
81                         width: 49%;
82                 }
83                 &.vrac {
84                         width: 49%;
85                         text-align: right;
86                         float: right;
87                 }
88         }
89 }
90
91 .post {
92         max-width: 50em;
93         div.figure {
94                 text-align: center;
95                 margin: 1em 0;
96                 img {
97                         border: 1px solid gray;
98                         padding: 3px;
99                 }
100         }
101         div.meta {
102                 margin-top: 3em;
103                 color: lighten($text-color, 40%);
104         }
105 }
106
107 .post-list {
108         ul, li {
109                 margin: 0;
110                 padding: 0;
111                 list-style: none;
112                 display: inline-block;
113         }
114         li.unpublished {
115                 opacity: 0.5;
116         }
117         a {
118                 text-transform: uppercase;
119                 display: inline-block;
120                 text-decoration: none;
121                 font-size: 200%;
122                 font-weight: bold;
123                 padding-top: 0.5em;
124                 margin-right: 1em;
125                 span {
126                         font-size: 60%;
127                 }
128         }
129
130 }