]> git.immae.eu Git - github/wallabag/wallabag.git/blame - app/Resources/static/themes/material/css/cards.scss
material: fix missing thumbnail on list view
[github/wallabag/wallabag.git] / app / Resources / static / themes / material / css / cards.scss
CommitLineData
64f81bc3
TC
1/* ==========================================================================
2 Cards
3 ========================================================================== */
4
5main {
6 #content {
7 padding: 0 0.5rem;
8 }
9
10 ul.row {
f836b98f 11 margin: 0.4rem 0 0;
64f81bc3
TC
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;
64f81bc3
TC
28 }
29
ff5cdbdc 30 .card-stacked .card-content .card-title {
34806fab
A
31 display: inline-block;
32 }
33
64f81bc3
TC
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);
64f81bc3
TC
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;
34806fab
A
104
105 span {
106 margin-right: 5px;
107 }
64f81bc3
TC
108 }
109 }
110
64f81bc3
TC
111 .card-image {
112 height: 10em;
113 }
114
115 .card-fullimage {
116 height: 13.5em;
117 }
118
64f81bc3
TC
119 &.sw {
120 max-width: 370px;
121 margin-left: auto;
122 margin-right: auto;
123 }
124}
125
4c6ee89c 126a.original:not(.waves-effect) {
64f81bc3
TC
127 text-overflow: ellipsis;
128 white-space: nowrap;
129 overflow: hidden;
130 display: block;
131}
132
e5de9917
KD
133.card .card-image .preview,
134.card .card-fullimage .preview,
135.card-stacked .preview {
136 height: 100%;
137 background: no-repeat 50%/cover;
138 background-color: #efefef;
139 display: block;
140
141 &--default {
142 background-size: contain;
143 }
144}
145
2003ffa9
TC
146.card-entry-labels li,
147.card-tag-labels li {
148 margin: 10px 10px 10px auto;
149 padding: 5px 12px 5px 16px !important;
150 background-color: $blueAccentColor;
7475924e 151 border-radius: 3px;
2003ffa9
TC
152 color: #fff;
153 cursor: default;
3e7d86b2
S
154}
155
156.card-entry-labels li {
2003ffa9
TC
157 text-overflow: ellipsis;
158 white-space: nowrap;
7475924e 159 border-radius: 0 3px 3px 0;
3e7d86b2
S
160 overflow: hidden;
161}
162
163.card-tag-labels li {
164 display: flex;
165 justify-content: space-between;
2003ffa9
TC
166}
167
64f81bc3
TC
168.card-entry-tags a,
169.card-entry-labels a,
170.card-tag-labels a,
171.card-entry-labels-hidden a,
172#list .chip a {
173 text-decoration: none;
174 font-weight: normal;
175 color: #fff;
176}
177
3e7d86b2
S
178.card-tag-labels a {
179 height: 100%;
180 align-items: center;
181}
182
183.card-tag-link {
184 display: flex;
185 min-width: 100px;
186 flex-grow: 1;
187}
188
189.card-tag-rss {
190 display: flex;
191}
192
193.card-tag-labels {
194 display: flex;
195 flex-wrap: wrap;
196}
197
198.card-tag-labels li {
199 margin: 10px;
200 flex-basis: 19%;
201 flex-grow: 1;
202 align-items: center;
203}
204
64f81bc3 205.card-stacked {
91775f36
TC
206 display: flex;
207 flex-flow: row wrap;
64f81bc3 208
91775f36
TC
209 &:hover ul.tools-list {
210 display: inline;
211 text-align: right;
64f81bc3 212 }
812c980f 213
e5de9917 214 .card-preview {
91775f36 215 max-width: 100px;
e5de9917 216 max-height: 50px;
91775f36
TC
217 margin-right: 10px;
218 flex: 1;
91775f36
TC
219 }
220
221 div.metadata {
222 .chip {
223 background-color: $blueAccentColor;
224 padding: 0 15px 0 10px;
225 margin: auto 2px;
84b041e8 226 border-radius: 6px;
91775f36
TC
227
228 a,
229 i {
230 color: #fff;
231 }
232
233 i.material-icons {
234 float: right;
235 font-size: 20px;
236 line-height: 32px;
237 padding-left: 8px;
238 }
812c980f
NL
239 }
240 }
241
91775f36
TC
242 div.card-content {
243 flex: 4;
812c980f 244 }
91775f36
TC
245
246 ul.tools-list {
247 flex: 1;
248 display: none;
249 flex-basis: 5em;
250 align-self: flex-end;
251 float: right;
252 max-width: 6em;
253 }
49fb9e7c
S
254
255 .tags {
256 display: inline-block;
257 }
91775f36
TC
258}
259
260#content .collection .collection-item {
261 min-height: 65px;
262 height: auto;
64f81bc3
TC
263}
264
265.quickstart .card .card-action a,
266.quickstart .card .card-action a:hover {
267 color: #fff !important;
268}
269
270.settings .div_tabs {
271 padding-bottom: 15px;
272}
3e7d86b2
S
273
274@media only screen and (min-width: 992px) {
275 .card-tag-labels li {
276 max-width: 50%;
277 }
278}