]> git.immae.eu Git - github/wallabag/wallabag.git/blame - app/Resources/static/themes/material/css/cards.scss
Merge pull request #3449 from Simounet/feature/share-page
[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 {
11 padding: 0 0.75rem;
12 }
13}
14
15.data .card .card-body {
16 height: 19em;
17 overflow: hidden;
18}
19
20.card {
21 .card-content .card-title,
22 .card-reveal .card-title {
23 line-height: 22.8px;
24 max-height: 80px;
25 font-size: 19px;
26 font-family: roberto, "Helvetica Neue", Helvetica, Arial, sans-serif;
27 color: #313131;
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);
70 overflow: hidden;
71 text-overflow: ellipsis;
72 white-space: nowrap;
73 }
74
75 .card-entry-labels-hidden li {
76 display: inline-block;
77 background-color: $blueAccentColor;
78 margin: 0 5px;
79 padding: 5px 12px;
80 border-radius: 3px;
81 color: #fff;
82 max-height: 2em;
83 max-width: calc(100% - 15px);
84 overflow: hidden;
85 text-overflow: ellipsis;
86 white-space: nowrap;
87 }
88
89 .card-content .estimatedTime {
90 margin-bottom: 10px;
91 }
92
93 .card-action {
94 padding: 10px 5px 10px 15px;
95
96 ul.links {
97 margin: 0;
98 font-size: 24px;
99 line-height: 24px;
100 }
101
102 a {
103 color: #fff;
104 margin: 0;
105 }
106
107 a:hover {
108 color: #fff;
109 }
110
111 ul.tools li a.tool {
112 margin-right: 5px !important;
113 }
114
115 .reading-time {
116 display: inline-flex;
117 vertical-align: middle;
34806fab
A
118
119 span {
120 margin-right: 5px;
121 }
64f81bc3
TC
122 }
123 }
124
64f81bc3
TC
125 .card-image {
126 height: 10em;
127 }
128
129 .card-fullimage {
130 height: 13.5em;
131 }
132
133 .card-image .preview,
134 .card-fullimage .preview {
135 height: 14em;
136 background: no-repeat 50%/cover;
2f510787 137 display: block;
64f81bc3
TC
138 }
139
140 &.sw {
141 max-width: 370px;
142 margin-left: auto;
143 margin-right: auto;
144 }
145}
146
4c6ee89c 147a.original:not(.waves-effect) {
64f81bc3
TC
148 text-overflow: ellipsis;
149 white-space: nowrap;
150 overflow: hidden;
151 display: block;
152}
153
2003ffa9
TC
154.card-entry-labels li,
155.card-tag-labels li {
156 margin: 10px 10px 10px auto;
157 padding: 5px 12px 5px 16px !important;
158 background-color: $blueAccentColor;
159 border-radius: 0 3px 3px 0;
160 color: #fff;
161 cursor: default;
162 max-height: 2em;
163 overflow: hidden;
164 text-overflow: ellipsis;
165 white-space: nowrap;
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
178.card-stacked {
91775f36
TC
179 display: flex;
180 flex-flow: row wrap;
64f81bc3 181
91775f36
TC
182 &:hover ul.tools-list {
183 display: inline;
184 text-align: right;
64f81bc3 185 }
812c980f
NL
186
187 .preview {
91775f36
TC
188 max-width: 100px;
189 height: auto;
190 margin-right: 10px;
191 flex: 1;
812c980f
NL
192
193 img {
91775f36
TC
194 max-width: 100%;
195 max-height: 100%;
196 }
197 }
198
199 div.metadata {
200 .chip {
201 background-color: $blueAccentColor;
202 padding: 0 15px 0 10px;
203 margin: auto 2px;
84b041e8 204 border-radius: 6px;
91775f36
TC
205
206 a,
207 i {
208 color: #fff;
209 }
210
211 i.material-icons {
212 float: right;
213 font-size: 20px;
214 line-height: 32px;
215 padding-left: 8px;
216 }
812c980f
NL
217 }
218 }
219
91775f36
TC
220 div.card-content {
221 flex: 4;
812c980f 222 }
91775f36
TC
223
224 ul.tools-list {
225 flex: 1;
226 display: none;
227 flex-basis: 5em;
228 align-self: flex-end;
229 float: right;
230 max-width: 6em;
231 }
232}
233
234#content .collection .collection-item {
235 min-height: 65px;
236 height: auto;
64f81bc3
TC
237}
238
239.quickstart .card .card-action a,
240.quickstart .card .card-action a:hover {
241 color: #fff !important;
242}
243
244.settings .div_tabs {
245 padding-bottom: 15px;
246}