red-ui/assets/styles/page-layout.scss
2020-09-22 11:32:27 +03:00

170 lines
2.9 KiB
SCSS

@import "red-variables";
@import "red-mixins";
@media only screen and (max-width: 720px) {
.listing {
.list-entry {
width: 100% !important;
}
}
}
html, body {
margin: 0;
padding: 0;
height: 100vh;
font-family: 'Inter', sans-serif;
}
.page-header {
display: flex;
justify-content: space-between;
align-items: center;
padding-bottom: 20px;
}
.listing {
width: 100%;
display: inline-flex;
flex-wrap: wrap;
.list-entry {
box-sizing: border-box;
height: 122px;
width: 310px;
border: 1px solid $grey-1;
border-radius: 2px;
background-color: $white;
padding: 20px 24px;
margin-right: 22px;
margin-bottom: 22px;
display: flex;
flex-direction: row;
transition: background-color 0.35s ease-in-out;
&.xl {
width: 100%;
padding: 16px 24px;
}
&:hover {
background-color: $grey-2;
.list-entry-actions {
mat-icon {
opacity: 1;
}
}
}
&.clickable:hover {
background-color: $grey-1;
cursor: pointer;
color: $white;
.list-entry-actions {
button.mat-primary {
mat-icon {
color: $white;
}
}
}
.listing-title, .listing-subtitle {
color: $white;
}
}
.list-entry-content {
display: flex;
flex: 1;
flex-direction: column;
}
.list-entry-actions {
width: 18px;
margin-left: 22px;
display: flex;
flex-direction: column;
margin-top: -4px;
mat-icon {
opacity: 0;
transition: opacity 0.35s ease-in-out;
width: 20px;
height: 20px;
}
}
.listing-title {
height: 44px;
color: #283241;
font-family: Inter, sans-serf, serif;
font-size: 18px;
font-weight: bold;
letter-spacing: 0;
margin-bottom: 17px;
line-height: 22px;
@include line-clamp(2);
transition: color 0.35s ease-in-out;
&.one-line {
height: 22px;
@include line-clamp(1);
}
&.slim {
margin-bottom: 9px;
}
&.break-all {
word-break: break-all;
}
}
.listing-subtitle {
height: 12px;
opacity: 0.7;
color: #283241;
font-family: Inconsolata, monospace, monospace;
font-size: 12px;
letter-spacing: 0;
line-height: 12px;
@include line-clamp(1);
transition: color 0.35s ease-in-out;
}
}
}
.flex-row {
display: flex;
justify-content: space-between;
align-items: center;
}
.break-20 {
height: 20px;
background: transparent;
display: block;
}
.details-button {
position: fixed !important;
bottom: 20px;
right: 20px;
}
.detail-row {
opacity: 1;
color: $grey-1;
font-family: Inconsolata, monospace, monospace;
font-size: 14px;
letter-spacing: 0;
line-height: 14px;
height: 18px;
}