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