|
|
@ -32,21 +32,7 @@ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@mixin asset-link { |
|
|
@mixin asset-link { |
|
|
& { |
|
|
|
|
|
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; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.drop-overlay { |
|
|
.drop-overlay { |
|
|
@ -63,55 +49,63 @@ |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
:host { |
|
|
|
|
|
padding-bottom: 1rem; |
|
|
|
|
|
padding-left: 8px; |
|
|
|
|
|
padding-right: 8px; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
.card { |
|
|
.card { |
|
|
& { |
|
|
& { |
|
|
@include overlay-container; |
|
|
@include overlay-container; |
|
|
width: $asset-width; |
|
|
width: $asset-width; |
|
|
margin-bottom: 1rem; |
|
|
|
|
|
margin-left: 8px; |
|
|
|
|
|
margin-right: 8px; |
|
|
|
|
|
min-height: $asset-height; |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
&.selectable { |
|
|
&-body, |
|
|
cursor: pointer; |
|
|
&-footer { |
|
|
|
|
|
position: relative; |
|
|
|
|
|
padding: 1rem; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
&-body { |
|
|
&-body { |
|
|
position: relative; |
|
|
padding: 0; |
|
|
min-height: 0.75 * $asset-height; |
|
|
min-height: $asset-header; |
|
|
max-height: 0.75 * $asset-height; |
|
|
max-height: $asset-header; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
&-footer { |
|
|
&-footer { |
|
|
border: 0; |
|
|
padding-top: .5rem; |
|
|
background: transparent; |
|
|
min-height: $asset-footer; |
|
|
padding: .8rem; |
|
|
max-height: auto; |
|
|
padding-top: .4rem; |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
&.drag { |
|
|
|
|
|
.drop-overlay { |
|
|
|
|
|
@include opacity(1); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.upload-progress { |
|
|
.file-type { |
|
|
@include absolute(2rem, 2rem, 2rem, 2rem); |
|
|
@include opacity(0); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.file { |
|
|
&.selectable { |
|
|
&-info { |
|
|
cursor: pointer; |
|
|
font-size: .8rem; |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
&-image { |
|
|
.upload-progress { |
|
|
min-height: 100%; |
|
|
@include absolute(1rem, 3em, 1rem, 3rem); |
|
|
max-height: 100%; |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.file { |
|
|
&-preview { |
|
|
&-preview { |
|
|
& { |
|
|
& { |
|
|
@include absolute(.8rem, .8rem, 0, .8rem); |
|
|
@include absolute(0, 0, 0, 0); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
&:hover { |
|
|
&:hover { |
|
|
.file-overlay { |
|
|
.overlay { |
|
|
@include opacity(1); |
|
|
@include opacity(1); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -121,65 +115,82 @@ |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
&-info { |
|
|
|
|
|
margin-top: .25rem; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
&-user { |
|
|
|
|
|
@include absolute(auto, auto, 1.7rem, .5rem); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
&-modified { |
|
|
|
|
|
@include absolute(auto, auto, .5rem, .5rem); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
&-menu { |
|
|
|
|
|
@include absolute(.5rem, 1rem, auto, auto); |
|
|
|
|
|
|
|
|
|
|
|
a { |
|
|
|
|
|
@include asset-link; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
&-type { |
|
|
&-type { |
|
|
@include transition(opacity .4s ease); |
|
|
@include transition(opacity .4s ease); |
|
|
@include absolute(.7rem, auto, auto, .5rem); |
|
|
@include absolute(1rem, auto, auto, 1rem); |
|
|
@include asset-type; |
|
|
@include asset-type; |
|
|
@include border-radius(3px); |
|
|
@include border-radius(3px); |
|
|
background: $color-dark-black; |
|
|
background: $color-dark-black; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
&-name { |
|
|
&-name, |
|
|
|
|
|
&-info { |
|
|
@include truncate; |
|
|
@include truncate; |
|
|
font-size: 1rem; |
|
|
|
|
|
font-weight: normal; |
|
|
|
|
|
line-height: 2rem; |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
&-image, |
|
|
&-icon { |
|
|
&-icon { |
|
|
margin-top: 10%; |
|
|
height: $asset-image; |
|
|
margin-bottom: 0; |
|
|
|
|
|
height: 70%; |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
&-icon-container { |
|
|
&-name { |
|
|
|
|
|
line-height: 2rem; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
&-tags { |
|
|
|
|
|
margin-bottom: .25rem; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
&-info { |
|
|
|
|
|
font-size: .75rem; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
&-icon { |
|
|
|
|
|
line-height: $asset-image; |
|
|
background: $color-border; |
|
|
background: $color-border; |
|
|
border: 0; |
|
|
border: 0; |
|
|
text-align: center; |
|
|
text-align: center; |
|
|
height: 100%; |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
&-overlay { |
|
|
.overlay { |
|
|
& { |
|
|
& { |
|
|
@include overlay; |
|
|
@include overlay; |
|
|
font-size: .8rem; |
|
|
font-size: .8rem; |
|
|
font-weight: normal; |
|
|
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 { |
|
|
&-type { |
|
|
@include absolute(.7rem, auto, auto, .5rem); |
|
|
@include absolute(1rem, auto, auto, 1rem); |
|
|
@include asset-type; |
|
|
@include asset-type; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
&-user { |
|
|
|
|
|
@include absolute(auto, auto, 1rem, 1rem); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|