mirror of
https://github.com/LBRYFoundation/lbry.com.git
synced 2025-09-08 11:39:53 +00:00
Update _cover.scss
This commit is contained in:
parent
f12633d0a5
commit
1747842de8
1 changed files with 30 additions and 3 deletions
|
@ -1,5 +1,7 @@
|
||||||
@import "global";
|
@import "global";
|
||||||
|
|
||||||
|
$text-shadow-cover-title: 0 0 6px rgba(0, 0, 0, 0.8);
|
||||||
|
|
||||||
.cover {
|
.cover {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
|
@ -24,11 +26,19 @@
|
||||||
|
|
||||||
.cover-title, .cover-subtitle
|
.cover-title, .cover-subtitle
|
||||||
{
|
{
|
||||||
&:not(.cover-title-flat)
|
&:not(.cover-title-flat):not(.cover-item--outline)
|
||||||
{
|
{
|
||||||
text-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
|
text-shadow: $text-shadow-cover-title;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.cover-item--outline {
|
||||||
|
text-shadow:
|
||||||
|
-1px -1px 0 #000,
|
||||||
|
1px -1px 0 #000,
|
||||||
|
-1px 1px 0 #000,
|
||||||
|
1px 1px 0 #000,
|
||||||
|
$text-shadow-cover-title;
|
||||||
|
}
|
||||||
|
|
||||||
@media (min-width:$width-laptop-min) and (max-width: $width-laptop-max) {
|
@media (min-width:$width-laptop-min) and (max-width: $width-laptop-max) {
|
||||||
.cover { padding: $spacing-vertical $spacing-vertical * 1.5; }
|
.cover { padding: $spacing-vertical $spacing-vertical * 1.5; }
|
||||||
|
@ -70,6 +80,23 @@
|
||||||
color: #333;
|
color: #333;
|
||||||
.cover-title { color: #000; }
|
.cover-title { color: #000; }
|
||||||
}
|
}
|
||||||
|
.cover--dark-overlay {
|
||||||
|
position: relative;
|
||||||
|
z-index: 0;
|
||||||
|
&:before {
|
||||||
|
position: absolute;
|
||||||
|
width: 100vw;
|
||||||
|
height: 100vh;
|
||||||
|
background: rgba(0,0,0,0.2);
|
||||||
|
z-index: 1;
|
||||||
|
content: ' ';
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
.content {
|
||||||
|
position: relative;
|
||||||
|
z-index: 2;
|
||||||
|
}
|
||||||
|
}
|
||||||
.cover-dark-grad
|
.cover-dark-grad
|
||||||
{
|
{
|
||||||
//@include linear-gradient(darken($color-primary, 5), lighten($color-primary, 5));
|
//@include linear-gradient(darken($color-primary, 5), lighten($color-primary, 5));
|
||||||
|
|
Loading…
Add table
Reference in a new issue