annotate default/static/blog.css @ 96:94b5806b9e2f

blog/item: various improvments: - title and publication date are now clickable if HTTP link of item is set - show labels (aka tags/categories) - text only content in body is urlized
author Goffi <goffi@goffi.org>
date Fri, 19 Jan 2018 18:19:57 +0100
parents 650f3456f80d
children 609c66552ba0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
44
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
1 /*** articles ***/
16
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
2
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
3 article.box {
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
4 position: relative;
0
9a31d2c02f47 SàT templates, initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
5 margin: 2% auto;
33
be1aebaccac0 static/blog.css: removed max-height for comments
Goffi <goffi@goffi.org>
parents: 30
diff changeset
6 border-style: solid none none;
0
9a31d2c02f47 SàT templates, initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
7 border-width: 1px;
16
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
8 padding: 2%;
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
9 max-height: 7em;
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
10 overflow: hidden;
42
0c6aa1c81252 blog/item: transition fix
Goffi <goffi@goffi.org>
parents: 35
diff changeset
11 transition: max-height 0.5s;
16
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
12 }
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
13
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
14 .main_article article.box:not(.clicked) {
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
15 border-bottom-right-radius: 0;
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
16 border-bottom-left-radius: 0;
0
9a31d2c02f47 SàT templates, initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
17 }
9a31d2c02f47 SàT templates, initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
18
44
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
19 /** header **/
16
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
20
96
94b5806b9e2f blog/item: various improvments:
Goffi <goffi@goffi.org>
parents: 93
diff changeset
21 header a {
94b5806b9e2f blog/item: various improvments:
Goffi <goffi@goffi.org>
parents: 93
diff changeset
22 color: inherit;
94b5806b9e2f blog/item: various improvments:
Goffi <goffi@goffi.org>
parents: 93
diff changeset
23 text-decoration: inherit;
94b5806b9e2f blog/item: various improvments:
Goffi <goffi@goffi.org>
parents: 93
diff changeset
24 }
94b5806b9e2f blog/item: various improvments:
Goffi <goffi@goffi.org>
parents: 93
diff changeset
25
16
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
26 header .metadata {
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
27 text-align: right;
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
28 }
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
29
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
30 article .author {
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
31 font-weight: bold;
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
32 }
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
33
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
34 article .author::after {
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
35 content: ", ";
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
36 }
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
37
96
94b5806b9e2f blog/item: various improvments:
Goffi <goffi@goffi.org>
parents: 93
diff changeset
38 /*** labels ***/
94b5806b9e2f blog/item: various improvments:
Goffi <goffi@goffi.org>
parents: 93
diff changeset
39
94b5806b9e2f blog/item: various improvments:
Goffi <goffi@goffi.org>
parents: 93
diff changeset
40 .labels {
94b5806b9e2f blog/item: various improvments:
Goffi <goffi@goffi.org>
parents: 93
diff changeset
41 text-align: right;
94b5806b9e2f blog/item: various improvments:
Goffi <goffi@goffi.org>
parents: 93
diff changeset
42 }
94b5806b9e2f blog/item: various improvments:
Goffi <goffi@goffi.org>
parents: 93
diff changeset
43
94b5806b9e2f blog/item: various improvments:
Goffi <goffi@goffi.org>
parents: 93
diff changeset
44 .labels span {
94b5806b9e2f blog/item: various improvments:
Goffi <goffi@goffi.org>
parents: 93
diff changeset
45 font-variant: small-caps;
94b5806b9e2f blog/item: various improvments:
Goffi <goffi@goffi.org>
parents: 93
diff changeset
46 font-size: 0.8rem;
94b5806b9e2f blog/item: various improvments:
Goffi <goffi@goffi.org>
parents: 93
diff changeset
47 background-color: #ddd;
94b5806b9e2f blog/item: various improvments:
Goffi <goffi@goffi.org>
parents: 93
diff changeset
48 border-radius: 0.4em;
94b5806b9e2f blog/item: various improvments:
Goffi <goffi@goffi.org>
parents: 93
diff changeset
49 padding: 0 0.5em;
94b5806b9e2f blog/item: various improvments:
Goffi <goffi@goffi.org>
parents: 93
diff changeset
50 }
94b5806b9e2f blog/item: various improvments:
Goffi <goffi@goffi.org>
parents: 93
diff changeset
51
16
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
52
44
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
53 /** content **/
16
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
54
0
9a31d2c02f47 SàT templates, initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
55 article div.content {
9a31d2c02f47 SàT templates, initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
56 text-align: justify;
9a31d2c02f47 SàT templates, initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
57 font-size: 0.9em;
9a31d2c02f47 SàT templates, initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
58 }
9a31d2c02f47 SàT templates, initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
59
35
581e2cd4bcc2 static/blog.css: keep whitespaces (pre-wrap) for text only content in articles
Goffi <goffi@goffi.org>
parents: 33
diff changeset
60 article div.content.text {
581e2cd4bcc2 static/blog.css: keep whitespaces (pre-wrap) for text only content in articles
Goffi <goffi@goffi.org>
parents: 33
diff changeset
61 white-space: pre-wrap;
581e2cd4bcc2 static/blog.css: keep whitespaces (pre-wrap) for text only content in articles
Goffi <goffi@goffi.org>
parents: 33
diff changeset
62 }
581e2cd4bcc2 static/blog.css: keep whitespaces (pre-wrap) for text only content in articles
Goffi <goffi@goffi.org>
parents: 33
diff changeset
63
581e2cd4bcc2 static/blog.css: keep whitespaces (pre-wrap) for text only content in articles
Goffi <goffi@goffi.org>
parents: 33
diff changeset
64
0
9a31d2c02f47 SàT templates, initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
65 article img {
9a31d2c02f47 SàT templates, initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
66 max-width: 100%;
16
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
67 margin: 0;
0
9a31d2c02f47 SàT templates, initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
68 }
16
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
69
93
650f3456f80d blog/articles: added simple pagination
Goffi <goffi@goffi.org>
parents: 44
diff changeset
70 /** navigation links **/
650f3456f80d blog/articles: added simple pagination
Goffi <goffi@goffi.org>
parents: 44
diff changeset
71
650f3456f80d blog/articles: added simple pagination
Goffi <goffi@goffi.org>
parents: 44
diff changeset
72 .bottom_links ul {
650f3456f80d blog/articles: added simple pagination
Goffi <goffi@goffi.org>
parents: 44
diff changeset
73 list-style: none;
650f3456f80d blog/articles: added simple pagination
Goffi <goffi@goffi.org>
parents: 44
diff changeset
74 display: flex;
650f3456f80d blog/articles: added simple pagination
Goffi <goffi@goffi.org>
parents: 44
diff changeset
75 padding: 0 2em;
650f3456f80d blog/articles: added simple pagination
Goffi <goffi@goffi.org>
parents: 44
diff changeset
76 margin: 0;
650f3456f80d blog/articles: added simple pagination
Goffi <goffi@goffi.org>
parents: 44
diff changeset
77 }
650f3456f80d blog/articles: added simple pagination
Goffi <goffi@goffi.org>
parents: 44
diff changeset
78
650f3456f80d blog/articles: added simple pagination
Goffi <goffi@goffi.org>
parents: 44
diff changeset
79 .bottom_links li {
650f3456f80d blog/articles: added simple pagination
Goffi <goffi@goffi.org>
parents: 44
diff changeset
80 flex: 1;
650f3456f80d blog/articles: added simple pagination
Goffi <goffi@goffi.org>
parents: 44
diff changeset
81 }
650f3456f80d blog/articles: added simple pagination
Goffi <goffi@goffi.org>
parents: 44
diff changeset
82
650f3456f80d blog/articles: added simple pagination
Goffi <goffi@goffi.org>
parents: 44
diff changeset
83 .bottom_links li.older_items {
650f3456f80d blog/articles: added simple pagination
Goffi <goffi@goffi.org>
parents: 44
diff changeset
84 text-align: right;
650f3456f80d blog/articles: added simple pagination
Goffi <goffi@goffi.org>
parents: 44
diff changeset
85 }
650f3456f80d blog/articles: added simple pagination
Goffi <goffi@goffi.org>
parents: 44
diff changeset
86
650f3456f80d blog/articles: added simple pagination
Goffi <goffi@goffi.org>
parents: 44
diff changeset
87 .bottom_links img {
650f3456f80d blog/articles: added simple pagination
Goffi <goffi@goffi.org>
parents: 44
diff changeset
88 display: block;
650f3456f80d blog/articles: added simple pagination
Goffi <goffi@goffi.org>
parents: 44
diff changeset
89 }
650f3456f80d blog/articles: added simple pagination
Goffi <goffi@goffi.org>
parents: 44
diff changeset
90
650f3456f80d blog/articles: added simple pagination
Goffi <goffi@goffi.org>
parents: 44
diff changeset
91 .bottom_links .older_items img {
650f3456f80d blog/articles: added simple pagination
Goffi <goffi@goffi.org>
parents: 44
diff changeset
92 display: block;
650f3456f80d blog/articles: added simple pagination
Goffi <goffi@goffi.org>
parents: 44
diff changeset
93 margin-left: auto;
650f3456f80d blog/articles: added simple pagination
Goffi <goffi@goffi.org>
parents: 44
diff changeset
94 margin-right: 0;
650f3456f80d blog/articles: added simple pagination
Goffi <goffi@goffi.org>
parents: 44
diff changeset
95 }
650f3456f80d blog/articles: added simple pagination
Goffi <goffi@goffi.org>
parents: 44
diff changeset
96
650f3456f80d blog/articles: added simple pagination
Goffi <goffi@goffi.org>
parents: 44
diff changeset
97 .bottom_links a {
650f3456f80d blog/articles: added simple pagination
Goffi <goffi@goffi.org>
parents: 44
diff changeset
98 display: inline-block;
650f3456f80d blog/articles: added simple pagination
Goffi <goffi@goffi.org>
parents: 44
diff changeset
99 text-decoration: None;
650f3456f80d blog/articles: added simple pagination
Goffi <goffi@goffi.org>
parents: 44
diff changeset
100 color: inherit;
650f3456f80d blog/articles: added simple pagination
Goffi <goffi@goffi.org>
parents: 44
diff changeset
101 font-variant: small-caps;
650f3456f80d blog/articles: added simple pagination
Goffi <goffi@goffi.org>
parents: 44
diff changeset
102 }
650f3456f80d blog/articles: added simple pagination
Goffi <goffi@goffi.org>
parents: 44
diff changeset
103
650f3456f80d blog/articles: added simple pagination
Goffi <goffi@goffi.org>
parents: 44
diff changeset
104 .bottom_links a:hover {
650f3456f80d blog/articles: added simple pagination
Goffi <goffi@goffi.org>
parents: 44
diff changeset
105 background-color: #ddd;
650f3456f80d blog/articles: added simple pagination
Goffi <goffi@goffi.org>
parents: 44
diff changeset
106 }
650f3456f80d blog/articles: added simple pagination
Goffi <goffi@goffi.org>
parents: 44
diff changeset
107
44
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
108 /** reduce/expand buttons **/
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
109
16
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
110 .expand_box {
44
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
111 cursor: pointer;
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
112 }
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
113
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
114 .box_top {
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
115 position: absolute;
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
116 top: 0;
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
117 left: 0;
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
118 width: 100%;
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
119 }
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
120
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
121 .box_bottom {
16
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
122 position: absolute;
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
123 bottom: 0;
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
124 left: 0;
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
125 width: 100%;
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
126 }
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
127
44
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
128 .expand_box.box_bottom::before {
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
129 /* we do a gradient to show that text can be expanded */
16
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
130 background-image: linear-gradient(to bottom,rgba(0,0,0,0),#ffffff);
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
131 display: block;
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
132 content: "";
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
133 width: 100%;
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
134 height: 4em;
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
135 border: none;
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
136 }
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
137
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
138 .expand_box p {
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
139 background-color: white;
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
140 margin: 0;
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
141 text-align: center;
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
142 font-weight: bold;
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
143 font-size: 0.8em;
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
144 border-style: solid none dotted none;
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
145 border-width: 1px 0 1px;
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
146 border-bottom-color: gray;
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
147 }
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
148
44
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
149 article .expand_box .hide {
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
150 /* when not clicked, we only display .show */
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
151 display: none;
16
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
152 }
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
153
44
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
154 article .expand_box.box_top {
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
155 /* top expand box only show a reduce button
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
156 * so it should be displayed only when article is .clicked */
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
157 display: none;
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
158 }
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
159
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
160 /** other language **/
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
161
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
162 /* we hide everything just to display a message informing that
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
163 * the item is in an other language, and asking to click
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
164 * to display it */
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
165
30
69a2e3bf5e17 blog/item: if item is not in same language as current locale, item is hidden but will be shown on click.
Goffi <goffi@goffi.org>
parents: 16
diff changeset
166 article.other_lang>div.info {
69a2e3bf5e17 blog/item: if item is not in same language as current locale, item is hidden but will be shown on click.
Goffi <goffi@goffi.org>
parents: 16
diff changeset
167 display: none;
69a2e3bf5e17 blog/item: if item is not in same language as current locale, item is hidden but will be shown on click.
Goffi <goffi@goffi.org>
parents: 16
diff changeset
168 }
69a2e3bf5e17 blog/item: if item is not in same language as current locale, item is hidden but will be shown on click.
Goffi <goffi@goffi.org>
parents: 16
diff changeset
169
69a2e3bf5e17 blog/item: if item is not in same language as current locale, item is hidden but will be shown on click.
Goffi <goffi@goffi.org>
parents: 16
diff changeset
170 article.other_lang.init>* {
69a2e3bf5e17 blog/item: if item is not in same language as current locale, item is hidden but will be shown on click.
Goffi <goffi@goffi.org>
parents: 16
diff changeset
171 display: none;
69a2e3bf5e17 blog/item: if item is not in same language as current locale, item is hidden but will be shown on click.
Goffi <goffi@goffi.org>
parents: 16
diff changeset
172 }
69a2e3bf5e17 blog/item: if item is not in same language as current locale, item is hidden but will be shown on click.
Goffi <goffi@goffi.org>
parents: 16
diff changeset
173
69a2e3bf5e17 blog/item: if item is not in same language as current locale, item is hidden but will be shown on click.
Goffi <goffi@goffi.org>
parents: 16
diff changeset
174 article.other_lang.init>div.info {
69a2e3bf5e17 blog/item: if item is not in same language as current locale, item is hidden but will be shown on click.
Goffi <goffi@goffi.org>
parents: 16
diff changeset
175 display: initial;
69a2e3bf5e17 blog/item: if item is not in same language as current locale, item is hidden but will be shown on click.
Goffi <goffi@goffi.org>
parents: 16
diff changeset
176 }
69a2e3bf5e17 blog/item: if item is not in same language as current locale, item is hidden but will be shown on click.
Goffi <goffi@goffi.org>
parents: 16
diff changeset
177
44
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
178 article.other_lang.init>div.expand_box.box_top {
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
179 /* as we need to have the message clickable, we cheat and use
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
180 * expand box on the whole surface but fully transparent */
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
181 display: initial;
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
182 height: 100%;
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
183 opacity: 0;
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
184 }
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
185
30
69a2e3bf5e17 blog/item: if item is not in same language as current locale, item is hidden but will be shown on click.
Goffi <goffi@goffi.org>
parents: 16
diff changeset
186 article.other_lang.init>div.info>p {
69a2e3bf5e17 blog/item: if item is not in same language as current locale, item is hidden but will be shown on click.
Goffi <goffi@goffi.org>
parents: 16
diff changeset
187 margin: 0;
69a2e3bf5e17 blog/item: if item is not in same language as current locale, item is hidden but will be shown on click.
Goffi <goffi@goffi.org>
parents: 16
diff changeset
188 padding: 0.2em;
69a2e3bf5e17 blog/item: if item is not in same language as current locale, item is hidden but will be shown on click.
Goffi <goffi@goffi.org>
parents: 16
diff changeset
189 text-align: center;
69a2e3bf5e17 blog/item: if item is not in same language as current locale, item is hidden but will be shown on click.
Goffi <goffi@goffi.org>
parents: 16
diff changeset
190 font-style: italic;
69a2e3bf5e17 blog/item: if item is not in same language as current locale, item is hidden but will be shown on click.
Goffi <goffi@goffi.org>
parents: 16
diff changeset
191 }
69a2e3bf5e17 blog/item: if item is not in same language as current locale, item is hidden but will be shown on click.
Goffi <goffi@goffi.org>
parents: 16
diff changeset
192
69a2e3bf5e17 blog/item: if item is not in same language as current locale, item is hidden but will be shown on click.
Goffi <goffi@goffi.org>
parents: 16
diff changeset
193 article.other_lang.init {
69a2e3bf5e17 blog/item: if item is not in same language as current locale, item is hidden but will be shown on click.
Goffi <goffi@goffi.org>
parents: 16
diff changeset
194 border: none;
69a2e3bf5e17 blog/item: if item is not in same language as current locale, item is hidden but will be shown on click.
Goffi <goffi@goffi.org>
parents: 16
diff changeset
195 border-radius: 0;
69a2e3bf5e17 blog/item: if item is not in same language as current locale, item is hidden but will be shown on click.
Goffi <goffi@goffi.org>
parents: 16
diff changeset
196 padding: 0;
69a2e3bf5e17 blog/item: if item is not in same language as current locale, item is hidden but will be shown on click.
Goffi <goffi@goffi.org>
parents: 16
diff changeset
197 }
69a2e3bf5e17 blog/item: if item is not in same language as current locale, item is hidden but will be shown on click.
Goffi <goffi@goffi.org>
parents: 16
diff changeset
198
44
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
199 /*** comments ***/
16
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
200
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
201 button.comments_btn {
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
202 border: none;
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
203 font-weight: bold;
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
204 display: block;
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
205 margin: 0 10% 0 auto;
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
206 border-radius: 1em;
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
207 background: #b8bcc4;
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
208 color: #4d4d4d;
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
209 }
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
210
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
211 button.comments_btn:active {
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
212 background: #4d4d4d;
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
213 color: #b8bcc4;
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
214 }
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
215
43
f8798d691acf blog/articles: fixed comments transition:
Goffi <goffi@goffi.org>
parents: 42
diff changeset
216 button.comments_btn.clicked span.show {
f8798d691acf blog/articles: fixed comments transition:
Goffi <goffi@goffi.org>
parents: 42
diff changeset
217 display: none;
f8798d691acf blog/articles: fixed comments transition:
Goffi <goffi@goffi.org>
parents: 42
diff changeset
218 }
f8798d691acf blog/articles: fixed comments transition:
Goffi <goffi@goffi.org>
parents: 42
diff changeset
219
f8798d691acf blog/articles: fixed comments transition:
Goffi <goffi@goffi.org>
parents: 42
diff changeset
220 button.comments_btn:not(.clicked) span.hide {
f8798d691acf blog/articles: fixed comments transition:
Goffi <goffi@goffi.org>
parents: 42
diff changeset
221 display: none;
f8798d691acf blog/articles: fixed comments transition:
Goffi <goffi@goffi.org>
parents: 42
diff changeset
222 }
f8798d691acf blog/articles: fixed comments transition:
Goffi <goffi@goffi.org>
parents: 42
diff changeset
223
16
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
224 .comments_panel {
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
225 max-height: 0;
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
226 opacity: 0;
43
f8798d691acf blog/articles: fixed comments transition:
Goffi <goffi@goffi.org>
parents: 42
diff changeset
227 transition: max-height 1s, opacity 2s;
16
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
228 overflow: hidden;
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
229 }
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
230
43
f8798d691acf blog/articles: fixed comments transition:
Goffi <goffi@goffi.org>
parents: 42
diff changeset
231 .comments_panel.clicked {
16
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
232 opacity: 1;
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
233 }
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
234
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
235 .comments article {
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
236 background-color: #9ca0a8;
33
be1aebaccac0 static/blog.css: removed max-height for comments
Goffi <goffi@goffi.org>
parents: 30
diff changeset
237 border: none;
be1aebaccac0 static/blog.css: removed max-height for comments
Goffi <goffi@goffi.org>
parents: 30
diff changeset
238 max-height: none;
16
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
239 }
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
240
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
241 .comment_post {
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
242 text-align: center;
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
243 }
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
244
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
245 .comment_post input {
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
246 display: block;
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
247 margin: 0 auto;
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
248 }
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
249
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
250 .comment_post textarea {
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
251 border-style: solid;
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
252 border-width: 1px 0;
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
253 border-color: black;
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
254 max-width: 100%;
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
255 }
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
256
44
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
257 .comments_panel article .expand_box {
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
258 /* no expand box in comments */
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
259 display: none;
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
260 }
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
261
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
262 /*** media queries ***/
16
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
263
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
264 @media (min-width: 500px) {
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
265 article.box {
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
266 width: 80%;
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
267 border-style: solid solid none solid;
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
268 }
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
269 .comments article.box {
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
270 width: 30rem;
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
271 margin: 2% auto;
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
272 border: none;
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
273 }
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
274 .comment_post textarea {
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
275 border-width: 1px;
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
276 border-radius: 1em;
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
277 border: solid 1px;
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
278 padding: 0.5em;
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
279 }
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
280
93
650f3456f80d blog/articles: added simple pagination
Goffi <goffi@goffi.org>
parents: 44
diff changeset
281 .bottom_links ul {
650f3456f80d blog/articles: added simple pagination
Goffi <goffi@goffi.org>
parents: 44
diff changeset
282 padding: 0 6em;
650f3456f80d blog/articles: added simple pagination
Goffi <goffi@goffi.org>
parents: 44
diff changeset
283 }
650f3456f80d blog/articles: added simple pagination
Goffi <goffi@goffi.org>
parents: 44
diff changeset
284
16
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
285 }
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
286
44
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
287 /*** clicked ***/
16
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
288
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
289 .main_article article.clicked {
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
290 border-bottom-style: solid;
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
291 }
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
292
44
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
293 .main_article article.clicked .expand_box.box_top {
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
294 display: initial;
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
295 }
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
296
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
297 .main_article article.clicked .expand_box {
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
298 opacity: 0;
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
299 transition: opacity 0.5s;
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
300 }
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
301
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
302 .main_article article.clicked .expand_box p {
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
303 background-color: transparent;
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
304 border: none;
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
305 }
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
306
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
307 .main_article article.clicked .expand_box:hover {
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
308 opacity: 1;
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
309 color: grey;
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
310 }
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
311
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
312 .main_article article.clicked .expand_box::before {
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
313 background-image: none;
16
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
314 display: none;
8cdcbe0d7dee blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents: 1
diff changeset
315 }
44
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
316
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
317 .main_article article.clicked .expand_box .hide {
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
318 display: inline;
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
319 }
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
320
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
321 .main_article article.clicked .expand_box .show {
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
322 display: none;
580670430fa2 blog/item: expand/reduce improvments:
Goffi <goffi@goffi.org>
parents: 43
diff changeset
323 }