99 lines
1.8 KiB
CSS
99 lines
1.8 KiB
CSS
@block module-higlighted-course {
|
|
@element wrapper {
|
|
position: relative;
|
|
overflow: hidden;
|
|
height: 50vh;
|
|
min-height: 250px;
|
|
max-height: 500px;
|
|
border-radius: var(--border-radius);
|
|
background-size: cover;
|
|
background-repeat: no-repeat;
|
|
background-position: center center;
|
|
}
|
|
|
|
@element overlay {
|
|
z-index: 1;
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
opacity: 0.8;
|
|
border-radius: 4px;
|
|
background-color: #3c3d41;
|
|
}
|
|
|
|
@element content {
|
|
z-index: 2;
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
|
|
display: flex;
|
|
flex-direction: column;
|
|
|
|
padding: var(--spacing) calc(var(--spacing) * 2);
|
|
|
|
color: var(--color-text-dark-bg-grey);
|
|
}
|
|
|
|
@element categories {
|
|
flex: 0 0 var(--line-height);
|
|
}
|
|
|
|
@element category {
|
|
display: inline-block;
|
|
margin-right: var(--spacing);
|
|
|
|
font-size: 0.75em;
|
|
letter-spacing: 2px;
|
|
}
|
|
|
|
@element title {
|
|
flex: 1 1 auto;
|
|
margin: 0 0 calc(var(--spacing) * 0.25);
|
|
|
|
color: var(--color-text-dark-bg);
|
|
font-size: 4vw;
|
|
line-height: 1.3;
|
|
white-space: nowrap;
|
|
|
|
@media (--breakpoint-desktop) {
|
|
font-size: 3.25em;
|
|
}
|
|
}
|
|
|
|
@element description-wrapper {
|
|
flex: 1 1 auto;
|
|
max-width: 400px;
|
|
line-height: 1.3;
|
|
|
|
@media (--breakpoint-desktop) {
|
|
font-size: 1.25em;
|
|
}
|
|
|
|
& p {
|
|
margin: 0;
|
|
}
|
|
}
|
|
|
|
@element link-wrapper {
|
|
flex: 0 0 auto;
|
|
margin-top: var(--spacing);
|
|
}
|
|
|
|
@element link {
|
|
display: inline-block;
|
|
|
|
border-bottom: 1px solid var(--color-text-dark-bg);
|
|
|
|
text-transform: uppercase;
|
|
color: var(--color-text-dark-bg);
|
|
font-size: 0.75em;
|
|
line-height: 2.17;
|
|
letter-spacing: 2px;
|
|
}
|
|
}
|