wallabag/app/Resources/static/themes/material/css/cards.scss

314 lines
4.9 KiB
SCSS
Raw Normal View History

/* ==========================================================================
Cards
========================================================================== */
main {
#content {
padding: 0 0.5rem;
}
ul.row {
2017-12-04 19:34:46 +01:00
margin: 0.4rem 0 0;
padding: 0 0.75rem;
}
}
.data .card .card-body {
height: 19em;
overflow: hidden;
}
@mixin mixin-reading-time {
.reading-time {
display: inline-flex;
vertical-align: middle;
.card-reading-time,
.card-created-at {
display: inline-flex;
}
span {
margin-right: 5px;
}
@content;
}
}
.card {
.card-content .card-title,
.card-reveal .card-title {
line-height: 22.8px;
max-height: 80px;
font-size: 19px;
font-family: roberto, "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.card-stacked .card-content .card-title {
display: inline-block;
}
.card-content .activator,
.card-reveal .activator {
cursor: pointer;
font-family: "Material Icons";
}
.card-content i.right,
.card-reveal i.right {
margin-left: 0;
}
.card-content .original {
line-height: 24px;
font-size: 15px;
}
.card-entry-labels {
position: absolute;
top: 10px;
z-index: 90;
max-width: 50%;
}
.card-entry-labels-hidden {
margin: 2.5px auto;
}
.card-entry-labels-hidden li {
display: inline-block;
background-color: $blueAccentColor;
margin: 0 5px;
padding: 5px 12px;
border-radius: 3px;
color: #fff;
max-height: 2em;
max-width: calc(100% - 15px);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.card-content .estimatedTime {
margin-bottom: 10px;
}
.card-action {
padding: 10px 5px 10px 15px;
ul.links {
margin: 0;
font-size: 24px;
line-height: 24px;
}
a {
color: #fff;
margin: 0;
}
a:hover {
color: #fff;
}
ul.tools li a.tool {
margin-right: 5px !important;
}
@include mixin-reading-time;
}
.card-image {
height: 10em;
}
.card-fullimage {
height: 13.5em;
}
&.sw {
max-width: 370px;
margin-left: auto;
margin-right: auto;
}
}
a.original:not(.waves-effect) {
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
display: block;
}
.card .card-image .preview,
.card .card-fullimage .preview,
.card-stacked .preview {
height: 100%;
background: no-repeat 50%/cover;
background-color: #efefef;
display: block;
&--default {
background-size: contain;
}
}
2017-05-04 17:44:42 +02:00
.card-entry-labels li,
.card-tag-labels li {
margin: 10px 10px 10px auto;
padding: 5px 12px 5px 16px !important;
background-color: $blueAccentColor;
border-radius: 3px;
2017-05-04 17:44:42 +02:00
color: #fff;
cursor: default;
}
.card-entry-labels li {
2017-05-04 17:44:42 +02:00
text-overflow: ellipsis;
white-space: nowrap;
border-radius: 0 3px 3px 0;
overflow: hidden;
}
.card-tag-labels li {
display: flex;
2017-05-04 17:44:42 +02:00
}
.card-entry-tags a,
.card-entry-labels a,
.card-tag-labels a,
.card-entry-labels-hidden a,
#list .chip a {
text-decoration: none;
font-weight: normal;
color: #fff;
}
.card-tag-link {
2019-10-01 15:40:04 +02:00
width: calc(100% - 48px);
line-height: 1.3;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
.card-tag-form {
display: flex;
min-width: 100px;
flex-grow: 1;
}
.card-tag-form input {
margin-bottom: 0;
2019-10-01 15:40:04 +02:00
height: 1.8rem;
}
2019-10-01 15:40:04 +02:00
.card-tag-icon {
display: flex;
}
.card-tag-labels {
2019-10-01 15:40:04 +02:00
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.card-tag-labels li {
margin: 10px;
align-items: center;
}
.card-stacked {
display: flex;
flex-flow: row wrap;
&:hover ul.tools-list {
display: inline;
text-align: right;
}
2017-05-29 10:59:30 +02:00
.card-preview {
max-width: 100px;
max-height: 50px;
margin-right: 10px;
flex: 1;
}
div.metadata {
overflow: hidden;
height: 1.5em;
display: flex;
ul.tags {
margin-left: 4px;
}
.chip {
background-color: $blueAccentColor;
padding: 0 7px;
margin: auto 1px;
2017-05-31 20:31:35 +02:00
border-radius: 6px;
line-height: 22px;
height: 22px;
a,
i {
color: #fff;
}
i.material-icons {
float: right;
font-size: 20px;
line-height: 32px;
padding-left: 8px;
}
2017-05-29 10:59:30 +02:00
}
@include mixin-reading-time {
padding: 0 5px;
flex-wrap: wrap;
margin-left: auto;
i.material-icons {
font-size: 20px;
}
}
2017-05-29 10:59:30 +02:00
}
div.card-content {
flex: 4;
2017-05-29 10:59:30 +02:00
}
ul.tools-list {
flex: 1;
display: none;
flex-basis: 5em;
align-self: flex-end;
float: right;
max-width: 6em;
}
2017-12-21 17:10:46 +01:00
.tags {
display: inline-block;
}
}
.card.archived,
.card-stacked.archived {
opacity: 0.5;
}
#content .collection .collection-item {
min-height: 65px;
height: auto;
}
.quickstart .card .card-action a,
.quickstart .card .card-action a:hover {
color: #fff !important;
}
.settings .div_tabs {
padding-bottom: 15px;
}