Dotclear

source: themes/berlin/scss/partials/_post.scss @ 2949:4e44ab2ef195

Revision 2949:4e44ab2ef195, 5.9 KB checked in by franck <carnet.franck.paul@…>, 11 years ago (diff)

Use base64 inline url for png/svg images <= 2Kb (recommendation from  http://yellowlab.tools/ tools)

Line 
1/**
2    POST
3------------------------------- */
4.post {
5    max-width: 42em;
6    margin: 2em auto 6em;
7}
8.post-day-date {
9    font-size: scut-em(14,16);
10    text-align: center;
11    text-transform: uppercase;
12    letter-spacing: 1px;
13    margin-bottom: scut-em(12,14);
14}
15.post-meta {
16    font-size: scut-em(14);
17    background-color: $gray-light;
18    border-radius: scut-em(8, 14);
19    padding: scut-em(8, 14) scut-em(16, 14);
20    margin-bottom: scut-em(24, 14);
21    clear: both;
22}
23.post-info {
24    margin: .5em 0;
25}
26.full .post-info,
27.short .post-info,
28.post-cat,
29.post-tags-list {
30    margin: .5em 0;
31    display: inline;
32    vertical-align: top;
33}
34.post-tags-list {
35    @include inline-block-list-container;
36}
37.post-tags-item {
38    @include inline-block-list-item();
39    vertical-align: top;
40    a:after { content: "."}
41}
42.post-info-co {
43    margin: .5em 0;
44    }
45.post-title {
46    text-align: center;
47    font-weight: 200;
48    a, a:link, a:visited {
49        border-bottom-color: $white;
50    }
51    a:hover, a:focus, a:active {
52        color: $secondary-color;
53        background-color: transparent;
54    }
55    @media screen and (max-width: $medium-screen) {
56        font-size: scut-em(32);
57    }
58}
59.post-content {
60    margin-bottom: 1em;
61}
62.post-read-it {
63    margin-bottom: 1.5em;
64}
65.footnotes {
66    font-size: scut-em(14, 16);
67    margin-top: 2em;
68    margin-bottom: 3em;
69    h4 {
70        display: inline-block;
71        border-top: 1px solid $secondary-color;
72        padding-right: 3em;
73        margin-bottom: 0;
74    }
75}
76.post-attachments {
77    position: relative;
78    padding: 0 2.5em .25em;
79    border: 1px solid $gray-medium;
80    box-shadow: 0 2px rgba(0, 0, 0, 0.05), 0 0 1px rgba(0, 0, 0, 0.2);
81}
82.post-attachments:before {
83    content: inline-image('icon_attachments.png');
84    content: inline-image('icon_attachments.svg');
85    display: block;
86    position: absolute;
87    margin-top: -.33em;
88    margin-left: -2em;
89}
90.post-attachments-title {
91    padding-top: .75em;
92    font-size: 1em;
93    text-transform: uppercase;
94    font-weight: bold;
95    color: $gray-dark;
96}
97.post-attachments-list {
98    padding-left: 1em;
99    margin-top: .5em;
100}
101.post-feedback {
102    max-width: 42em;
103    margin: 3em auto;
104    clear: both;
105}
106.post-feedback h3 {
107    text-align: center;
108    font-size: 1.25em;
109    font-weight: bold;
110    color: $gray-dark;
111}
112    .comments-list {
113        @include no-bullets;
114        padding-left: 0;
115    }
116        .comment, .ping {
117            overflow: hidden;
118            padding: .1em 1.5em .1em 4em;
119            margin-bottom: 2em;
120            border-radius: .25em;
121            box-shadow: 0 2px rgba(0, 0, 0, 0.05), 0 0 1px rgba(0, 0, 0, 0.2);
122        }
123        .comment {
124            background-color: #EDF3F2;
125        }
126        .ping {
127            background: #f3efed inline-image('icon_trackbacks.png') no-repeat 1.5em 4em;
128        }
129            .comment-number {
130                display: block;
131                float: left;
132                width: 2.5em;
133                height: 2.5em;
134                margin-left: -3.5em;
135                margin-right: 1em;
136                margin-top: -.5em;
137                border-radius: 50%;
138                background-color: $white;
139                z-index: 1000;
140                line-height: 2.5em;
141                text-align: center;
142            }
143.comment-form, .send-trackback {
144    overflow: hidden;
145    padding: .75em 3em .1em;
146    margin-bottom: 2em;
147    border-radius: .25em;
148    box-shadow: 0 2px rgba(0, 0, 0, 0.05), 0 0 1px rgba(0, 0, 0, 0.2);
149    background-color: #EDF3F2;
150}
151.send-trackback {
152    background: #f3efed inline-image('icon_trackbacks.png') no-repeat 1.5em 4em;
153}
154.field label {
155    display: inline-block;
156    width: 10em;
157}
158.field input {
159    max-width: 100%;
160}
161.field textarea {
162    display: block;
163    width: 100%;
164}
165.form-help, .remember {
166    font-size: scut-em(14, 16);
167}
168#pr {
169    background-color: $gray-light;
170    padding: .5em;
171    border: 2px solid #6c7c7c;
172    margin-bottom: 2em;
173}
174.error {
175    background-color: $link;
176    color: $white;
177    padding: .25em .5em;
178}
179/* Button Style */
180.buttons {
181    text-align: right;
182}
183button.submit, button.preview {
184    @include background-image(linear-gradient(top, $button-light, $button-dark));
185    box-shadow:inset 0 1px 3px 0 $button-light;
186    background-color: $button-light;
187    border-radius: .25em;
188    border: 1px solid $button-dark;
189    display: inline-block;
190    cursor: pointer;
191    color: $white;
192    padding: .25em .5em;
193    text-decoration: none;
194    text-shadow: 0 -1px 0 $gray-dark;
195}
196button.submit:hover,
197button.submit:focus,
198button.preview:hover,
199button.preview:focus {
200    cursor: pointer;
201    @include background-image(linear-gradient($button-dark, $button-dark));
202    background-color: $button-dark;
203}
204button.submit:active, button.preview:active {
205    position: relative;
206    top: 1px;
207}
208@media all and(max-width: $small-screen) {
209    .comment-number {
210        margin-top: 0;
211    }
212    .comment-content, .ping-content {
213        margin-left: -3.5em;
214        margin-right: -1em;
215    }
216    .comment-form, .send-trackback {
217        padding: .75em .5em .1em;
218    }
219}
220@media all and(min-width: $small-screen+.1em) {
221    .post-day-date:after,
222    .post-day-date:before {
223        display: inline-block;
224        height: 1px;
225        content: " ";
226        background-color: $gray-medium;
227        text-shadow: none;
228        width: 20%;
229        margin-bottom: .33em;
230    }
231    .post-day-date:after {
232        margin-left: 2em;
233    }
234    .post-day-date:before {
235        margin-right: 2em;
236    }
237    .post-feedback h3:after,
238    .post-feedback h3:before {
239        display: inline-block;
240        height: 1px;
241        content: " ";
242        background-color: $gray-medium;
243        text-shadow: none;
244        width: 20%;
245        margin-bottom: .33em;
246    }
247    .post-feedback h3:after {
248        margin-left: 2em;
249    }
250    .post-feedback h3:before {
251        margin-right: 2em;
252    }
253}
254@media all and(max-width: $medium-screen) {
255    .post {
256        margin: 1em auto 3em;
257    }
258}
Note: See TracBrowser for help on using the repository browser.

Sites map