]> git.0d.be Git - chloro.git/blob - chloro/phyll/static/css/style.scss
style: move actions to top left
[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 {
59         margin: 0 4em;
60         padding: 1em;
61         background: #fafaff;
62         max-width: 70em;
63         min-height: 70vh;
64         clip-path: polygon(0px 0px, 96.35% -24px, 101.99% 7.86%, 100.61% 103.56%, 10% 100%, 0% 100%, 0px 0px);
65 }
66
67 .home {
68         nav a {
69                 text-transform: uppercase;
70                 display: inline-block;
71                 text-decoration: none;
72                 font-size: 500%;
73                 font-weight: bold;
74                 padding-top: 0.5em;
75                 line-height: 50%;
76                 width: 100%;
77                 span {
78                         font-size: 30%;
79                 }
80                 margin-bottom: 1rem;
81                 &.divers {
82                         width: 49%;
83                 }
84                 &.vrac {
85                         width: 49%;
86                         text-align: right;
87                         float: right;
88                 }
89         }
90         .latest {
91                 margin-top: 2em;
92                 h2 {
93                         margin: 0;
94                         font-size: 400%;
95                         font-weight: bold;
96                         text-transform: uppercase;
97                 }
98                 .meta {
99                         padding-top: 0.5rem;
100                         padding-left: 0.5rem;
101                         color: lighten($text-color, 40%);
102                 }
103         }
104 }
105
106 .post {
107         max-width: 50em;
108         div.figure {
109                 text-align: center;
110                 margin: 1em 0;
111                 img {
112                         border: 1px solid gray;
113                         padding: 3px;
114                 }
115                 .caption {
116                         margin-top: 0;
117                         font-style: italic;
118                 }
119         }
120         code,
121         pre.screen {
122                 background: #111;
123                 color: white;
124                 padding: 2px;
125         }
126         div.meta {
127                 margin-top: 3em;
128                 color: lighten($text-color, 40%);
129         }
130 }
131
132 .post-list {
133         ul, li {
134                 margin: 0;
135                 padding: 0;
136                 list-style: none;
137                 display: inline-block;
138         }
139         li.unpublished {
140                 opacity: 0.5;
141         }
142         a {
143                 text-transform: uppercase;
144                 display: inline-block;
145                 text-decoration: none;
146                 font-size: 200%;
147                 font-weight: bold;
148                 padding-top: 0.5em;
149                 margin-right: 1em;
150                 span {
151                         font-size: 60%;
152                 }
153         }
154
155 }