]> git.immae.eu Git - github/wallabag/wallabag.git/blob - app/Resources/static/themes/material/css/cards.scss
Merge remote-tracking branch 'origin/master' into 2.4
[github/wallabag/wallabag.git] / app / Resources / static / themes / material / css / cards.scss
1 /* ==========================================================================
2 Cards
3 ========================================================================== */
4
5 main {
6 #content {
7 padding: 0 0.5rem;
8 }
9
10 ul.row {
11 margin: 0.4rem 0 0;
12 padding: 0 0.75rem;
13 }
14 }
15
16 .data .card .card-body {
17 height: 19em;
18 overflow: hidden;
19 }
20
21 .card {
22 .card-content .card-title,
23 .card-reveal .card-title {
24 line-height: 22.8px;
25 max-height: 80px;
26 font-size: 19px;
27 font-family: roberto, "Helvetica Neue", Helvetica, Arial, sans-serif;
28 }
29
30 .card-stacked .card-content .card-title {
31 display: inline-block;
32 }
33
34 .card-content .activator,
35 .card-reveal .activator {
36 cursor: pointer;
37 font-family: "Material Icons";
38 }
39
40 .card-content i.right,
41 .card-reveal i.right {
42 margin-left: 0;
43 }
44
45 .card-content .original {
46 line-height: 24px;
47 font-size: 15px;
48 }
49
50 .card-entry-labels {
51 position: absolute;
52 top: 10px;
53 z-index: 90;
54 max-width: 50%;
55 }
56
57 .card-entry-labels-hidden {
58 margin: 2.5px auto;
59 }
60
61 .card-entry-labels-hidden li {
62 display: inline-block;
63 background-color: $blueAccentColor;
64 margin: 0 5px;
65 padding: 5px 12px;
66 border-radius: 3px;
67 color: #fff;
68 max-height: 2em;
69 max-width: calc(100% - 15px);
70 overflow: hidden;
71 text-overflow: ellipsis;
72 white-space: nowrap;
73 }
74
75 .card-content .estimatedTime {
76 margin-bottom: 10px;
77 }
78
79 .card-action {
80 padding: 10px 5px 10px 15px;
81
82 ul.links {
83 margin: 0;
84 font-size: 24px;
85 line-height: 24px;
86 }
87
88 a {
89 color: #fff;
90 margin: 0;
91 }
92
93 a:hover {
94 color: #fff;
95 }
96
97 ul.tools li a.tool {
98 margin-right: 5px !important;
99 }
100
101 .reading-time {
102 display: inline-flex;
103 vertical-align: middle;
104
105 .card-reading-time,
106 .card-created-at {
107 display: inline-flex;
108 }
109
110 span {
111 margin-right: 5px;
112 }
113 }
114 }
115
116 .card-image {
117 height: 10em;
118 }
119
120 .card-fullimage {
121 height: 13.5em;
122 }
123
124 &.sw {
125 max-width: 370px;
126 margin-left: auto;
127 margin-right: auto;
128 }
129 }
130
131 a.original:not(.waves-effect) {
132 text-overflow: ellipsis;
133 white-space: nowrap;
134 overflow: hidden;
135 display: block;
136 }
137
138 .card .card-image .preview,
139 .card .card-fullimage .preview,
140 .card-stacked .preview {
141 height: 100%;
142 background: no-repeat 50%/cover;
143 background-color: #efefef;
144 display: block;
145
146 &--default {
147 background-size: contain;
148 }
149 }
150
151 .card-entry-labels li,
152 .card-tag-labels li {
153 margin: 10px 10px 10px auto;
154 padding: 5px 12px 5px 16px !important;
155 background-color: $blueAccentColor;
156 border-radius: 3px;
157 color: #fff;
158 cursor: default;
159 }
160
161 .card-entry-labels li {
162 text-overflow: ellipsis;
163 white-space: nowrap;
164 border-radius: 0 3px 3px 0;
165 overflow: hidden;
166 }
167
168 .card-tag-labels li {
169 display: flex;
170 justify-content: space-between;
171 }
172
173 .card-entry-tags a,
174 .card-entry-labels a,
175 .card-tag-labels a,
176 .card-entry-labels-hidden a,
177 #list .chip a {
178 text-decoration: none;
179 font-weight: normal;
180 color: #fff;
181 }
182
183 .card-tag-labels a {
184 height: 100%;
185 align-items: center;
186 }
187
188 .card-tag-link {
189 display: flex;
190 min-width: 100px;
191 flex-grow: 1;
192 }
193
194 .card-tag-form {
195 display: flex;
196 min-width: 100px;
197 flex-grow: 1;
198 }
199
200 .card-tag-form input {
201 margin-bottom: 0;
202 height: 2rem;
203 }
204
205 .card-tag-rss {
206 display: flex;
207 }
208
209 .card-tag-labels {
210 display: flex;
211 flex-wrap: wrap;
212 }
213
214 .card-tag-labels li {
215 margin: 10px;
216 flex-basis: 19%;
217 flex-grow: 1;
218 align-items: center;
219 }
220
221 .card-stacked {
222 display: flex;
223 flex-flow: row wrap;
224
225 &:hover ul.tools-list {
226 display: inline;
227 text-align: right;
228 }
229
230 .card-preview {
231 max-width: 100px;
232 max-height: 50px;
233 margin-right: 10px;
234 flex: 1;
235 }
236
237 div.metadata {
238 .chip {
239 background-color: $blueAccentColor;
240 padding: 0 7px;
241 margin: auto 2px;
242 border-radius: 6px;
243 line-height: 22px;
244 height: 22px;
245
246 a,
247 i {
248 color: #fff;
249 }
250
251 i.material-icons {
252 float: right;
253 font-size: 20px;
254 line-height: 32px;
255 padding-left: 8px;
256 }
257 }
258 }
259
260 div.card-content {
261 flex: 4;
262 }
263
264 ul.tools-list {
265 flex: 1;
266 display: none;
267 flex-basis: 5em;
268 align-self: flex-end;
269 float: right;
270 max-width: 6em;
271 }
272
273 .tags {
274 display: inline-block;
275 }
276 }
277
278 #content .collection .collection-item {
279 min-height: 65px;
280 height: auto;
281 }
282
283 .quickstart .card .card-action a,
284 .quickstart .card .card-action a:hover {
285 color: #fff !important;
286 }
287
288 .settings .div_tabs {
289 padding-bottom: 15px;
290 }