wallabag/assets/material/css/cards.scss

356 lines
5.4 KiB
SCSS
Raw Permalink Normal View History

2024-11-16 20:51:31 +00:00
@use "variables";
/* ==========================================================================
Cards
========================================================================== */
main {
div#content {
padding: 0 0.5rem;
}
}
@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 {
padding-bottom: 12px;
flex-grow: 1;
}
.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;
2024-11-16 20:51:31 +00:00
background-color: variables.$blue-accent-color;
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-action {
2022-03-13 15:23:20 +00:00
padding: 10px 10px 10px 15px;
ul.links {
margin: 0;
font-size: 24px;
line-height: 24px;
}
a {
color: #fff;
margin: 0;
}
a:hover {
color: #fff;
}
2022-03-13 15:23:20 +00:00
.tool {
display: flex;
margin-right: 0 !important;
}
@include mixin-reading-time;
}
.card-image {
height: 10em;
}
.card-fullimage {
height: 13.5em;
}
&.sw {
max-width: 370px;
margin-left: auto;
margin-right: auto;
}
}
.card-body {
display: flex;
flex-grow: 1;
flex-direction: column;
}
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 15:44:42 +00:00
.card-entry-labels li,
.card-tag-labels li {
margin: 10px 10px 10px auto;
padding: 5px 12px 5px 16px !important;
2024-11-16 20:51:31 +00:00
background-color: variables.$blue-accent-color;
border-radius: 3px;
2017-05-04 15:44:42 +00:00
color: #fff;
cursor: default;
line-height: 20px;
}
.card-entry-labels li {
2017-05-04 15:44:42 +00:00
text-overflow: ellipsis;
white-space: nowrap;
border-radius: 0 3px 3px 0;
overflow: hidden;
}
.card-tag-labels li {
display: flex;
2017-05-04 15:44:42 +00: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 {
width: calc(100% - 24px);
2019-10-01 13:40:04 +00:00
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 13:40:04 +00:00
height: 1.8rem;
}
2019-10-01 13:40:04 +00:00
.card-tag-icon {
display: flex;
}
2022-06-15 07:51:17 +00:00
.card-tag-delete {
margin-left: 10px;
}
.card-tag-labels {
2019-10-01 13:40:04 +00:00
display: grid;
grid-template-columns: repeat(auto-fill, minmax(240px, 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 08:59:30 +00: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 {
2024-11-16 20:51:31 +00:00
background-color: variables.$blue-accent-color;
padding: 0 7px;
margin: auto 1px;
2017-05-31 18:31:35 +00: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 08:59:30 +00:00
}
@include mixin-reading-time {
& {
padding: 0 5px;
flex-wrap: wrap;
margin-left: auto;
}
i.material-icons {
font-size: 20px;
}
}
2017-05-29 08:59:30 +00:00
}
div.card-content {
flex: 4;
2017-05-29 08:59:30 +00:00
}
ul.tools-list {
flex: 1;
display: none;
flex-basis: 5em;
align-self: flex-end;
float: right;
max-width: 8em;
}
2017-12-21 16:10:46 +00: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;
}
2023-06-06 20:53:56 +00:00
.settings .tabs-container {
padding-bottom: 15px;
}
.settings .settings-checkbox-col {
padding: 0;
}
.settings .settings-checkbox-label {
margin-bottom: 20px;
height: 3rem;
}
.settings .settings-range-label {
position: absolute;
top: -14px;
font-size: 0.8rem;
}
2022-03-15 12:54:04 +00:00
.entries-row {
display: grid;
2022-03-15 12:54:04 +00:00
margin: 0.4rem 0 0;
padding: 0 0.75rem;
gap: 20px;
}
2022-03-13 15:23:20 +00:00
2022-03-15 12:54:04 +00:00
.entry-card {
display: flex;
margin: 0;
height: 100%;
flex-direction: column;
}
2022-03-13 15:23:20 +00:00
.tools {
display: flex;
gap: 10px;
}