Headless CMS and Content Managment Hub
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

301 lines
5.5 KiB

@import '_vars';
@import '_mixins';
$list-height: 2.375rem;
@mixin overlay-container {
position: relative;
padding: 0;
overflow: hidden;
}
@mixin overlay {
& {
@include transition(opacity .4s ease);
@include absolute(0, 0, 0, 0);
@include opacity(0);
@include flex-box;
color: $color-dark-foreground;
}
&-background {
@include absolute(0, 0, 0, 0);
@include opacity(.7);
background: $color-dark-black;
}
}
@mixin asset-type {
padding: .1rem .25rem;
text-transform: uppercase;
font-size: .7rem;
font-weight: normal;
cursor: none;
color: $color-dark-foreground;
}
:host {
padding-bottom: 1rem;
padding-left: 8px;
padding-right: 8px;
}
:host(.isListView) {
padding: 0;
}
:host ::ng-deep {
.form-control {
&.disabled,
&:disabled {
background: transparent;
}
}
}
.card {
& {
@include overlay-container;
width: $asset-width;
border-top-width: 1px;
border-width: 1px;
}
&-body,
&-footer {
position: relative;
padding: 1rem;
}
&-body {
padding: 0;
min-height: $asset-header;
max-height: $asset-header;
}
&-footer {
padding-top: .5rem;
min-height: $asset-footer;
max-height: auto;
}
}
.upload-progress {
@include absolute(1rem, 3em, 1rem, 3rem);
}
.file {
&-preview {
& {
@include absolute(0, 0, 0, 0);
}
&:hover {
.overlay {
@include opacity(1);
}
.file-type {
@include opacity(0);
}
}
}
&-type {
@include transition(opacity .4s ease);
@include absolute(1rem, auto, auto, 1rem);
@include asset-type;
@include border-radius(3px);
background: $color-dark-black;
}
&-name,
&-info {
@include truncate;
}
&-image {
height: $asset-image;
}
&-name {
line-height: 2rem;
}
&-tags {
margin-bottom: .25rem;
}
&-info {
font-size: .75rem;
}
&-icon {
line-height: $asset-image;
background: $color-border;
height: $asset-image;
border: 0;
text-align: center;
}
}
.overlay {
& {
@include overlay;
font-size: .8rem;
font-weight: normal;
}
&-menu {
& {
@include absolute(1rem, 1rem, auto, auto);
}
a {
& {
font-size: 1.1rem;
font-weight: normal;
cursor: pointer;
color: darken($color-dark-foreground, 10%);
}
&:hover {
color: $color-dark-foreground;
}
&:focus,
&:hover {
text-decoration: none;
}
}
}
&-type {
@include absolute(1rem, auto, auto, 1rem);
@include asset-type;
}
&-user {
@include absolute(auto, auto, 1rem, 1rem);
}
}
.editable {
height: 2rem;
border-top: 0;
border-bottom: 1px solid transparent;
}
.table-items-row {
& {
position: relative;
padding-left: $list-height + 3rem;
height: $list-height + 2rem;
}
.left-border {
& {
@include absolute(0, auto, auto, 0);
height: $list-height + 2rem;
border: 0;
background: $color-border;
width: 4px;
}
&.selected {
background: $color-theme-blue;
}
}
.image {
@include absolute(0, auto, 0, 4px);
border: 0;
background: $color-border;
width: $list-height + 2rem;
}
.image-padded {
padding: 1rem;
}
.image-left {
left: 0;
}
.icon {
max-width: 100%;
}
.col {
& {
height: $list-height;
}
&-name {
width: 100%;
padding-right: .5rem;
}
&-user {
width: 3rem;
}
&-actions {
width: 3rem;
}
&-info {
color: $color-text-decent;
font-size: .9rem;
font-weight: normal;
width: 12rem;
}
}
table {
width: 100%;
}
.upload-progress {
padding: .25rem 0;
}
}
.drop-overlay {
& {
@include overlay;
pointer-events: none;
}
&-text {
position: absolute;
font-size: 1.25rem;
font-weight: lighter;
}
}
.drag {
.drop-overlay {
@include opacity(1);
}
.file-type {
@include opacity(0);
}
}
.selectable {
cursor: pointer;
}
.bg {
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAIAAAC1nk4lAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAYdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjEuMWMqnEsAAACbSURBVGhD7c6hDQAxAMPA33+m7vYlJh7AoFKOBMbfyfyZRRsPgUUbD4FFGw+BRRsPgUUbD4FFGw+BRRsPgUUbD4FFGw+BRRsPgUUbD4FFGw+BRRsPgUUbD4E3o9kA7YFFGw+BRRsPgUUbD4FFGw+BRRsPgUUbD4FFGw+BRRsPgUUbD4FFGw+BRRsPgUUbD4FFGw+BRRsPgQejz7nPYYKl8IqSfgAAAABJRU5ErkJggg==');
}
.bg2 {
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAIAAAAC64paAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAYdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjEuMWMqnEsAAAAsSURBVDhPY9iDF/zHC0Y1YwCoKhxgRGqG0jgA1AwcYFQzBoCqwgFGnuY9ewCdSg6FRg4gMAAAAABJRU5ErkJggg==');
}
.tags {
min-height: 26px;
}