]> git.immae.eu Git - github/wallabag/wallabag.git/blame - 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
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 104
f1f1efb5
KD
105 .card-reading-time,
106 .card-created-at {
107 display: inline-flex;
108 }
109
34806fab
A
110 span {
111 margin-right: 5px;
112 }
64f81bc3
TC
113 }
114 }
115
64f81bc3
TC
116 .card-image {
117 height: 10em;
118 }
119
120 .card-fullimage {
121 height: 13.5em;
122 }
123
64f81bc3
TC
124 &.sw {
125 max-width: 370px;
126 margin-left: auto;
127 margin-right: auto;
128 }
129}
130
4c6ee89c 131a.original:not(.waves-effect) {
64f81bc3
TC
132 text-overflow: ellipsis;
133 white-space: nowrap;
134 overflow: hidden;
135 display: block;
136}
137
e5de9917
KD
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
2003ffa9
TC
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;
7475924e 156 border-radius: 3px;
2003ffa9
TC
157 color: #fff;
158 cursor: default;
3e7d86b2
S
159}
160
161.card-entry-labels li {
2003ffa9
TC
162 text-overflow: ellipsis;
163 white-space: nowrap;
7475924e 164 border-radius: 0 3px 3px 0;
3e7d86b2
S
165 overflow: hidden;
166}
167
168.card-tag-labels li {
169 display: flex;
170 justify-content: space-between;
2003ffa9
TC
171}
172
64f81bc3
TC
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
3e7d86b2
S
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
32968bd3
SH
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
3e7d86b2
S
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
64f81bc3 221.card-stacked {
91775f36
TC
222 display: flex;
223 flex-flow: row wrap;
64f81bc3 224
91775f36
TC
225 &:hover ul.tools-list {
226 display: inline;
227 text-align: right;
64f81bc3 228 }
812c980f 229
e5de9917 230 .card-preview {
91775f36 231 max-width: 100px;
e5de9917 232 max-height: 50px;
91775f36
TC
233 margin-right: 10px;
234 flex: 1;
91775f36
TC
235 }
236
237 div.metadata {
238 .chip {
239 background-color: $blueAccentColor;
13d94929 240 padding: 0 7px;
91775f36 241 margin: auto 2px;
84b041e8 242 border-radius: 6px;
13d94929
KD
243 line-height: 22px;
244 height: 22px;
91775f36
TC
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 }
812c980f
NL
257 }
258 }
259
91775f36
TC
260 div.card-content {
261 flex: 4;
812c980f 262 }
91775f36
TC
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 }
49fb9e7c
S
272
273 .tags {
274 display: inline-block;
275 }
91775f36
TC
276}
277
278#content .collection .collection-item {
279 min-height: 65px;
280 height: auto;
64f81bc3
TC
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}