Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
dmd-wp-theme/src/scss/base/pages/concentrations.scss
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
114 lines (100 sloc)
2.09 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.concentrationsContainer { | |
} | |
.concentrationTile { | |
width:90vw; | |
height:50vw; | |
display:block; | |
margin:1em 2.5vw; | |
text-decoration:none; | |
float:left; | |
} | |
$backgrounds: ('2dAnimation', '3dAnimation', 'businessStrategies', 'digitalHumanities', 'gameDesign', 'webDesign'); | |
@each $val in $backgrounds { | |
.concentrationTile--#{$val} { | |
background:url(../img/concentrations/#{$val}.jpg) no-repeat center / cover; | |
} | |
} | |
.concentrationTile__inner { | |
width:100%; | |
height:100%; | |
position:relative; | |
background-color:transparent; | |
transition:background-color 0.15s $animation-easing-function; | |
@include extendedBorder(before, -1.5em, $concentrations-color, 1, 100%); | |
&:hover { | |
background-color:rgba(0,0,0,0.5); | |
} | |
} | |
.concentrationTile__text { | |
position:absolute; | |
top:50%; | |
left:50%; | |
transform:translate(-50%,-50%); | |
width:60%; | |
text-align:center; | |
color:white; | |
font-weight:bold; | |
background:transparentize($concentrations-color, 0.2); | |
padding:0.5em; | |
transition:background-color 0.15s $animation-easing-function, color 0.15s $animation-easing-function; | |
} | |
.concentrationTile__inner:hover .concentrationTile__text { | |
color:$concentrations-color; | |
background-color:transparent; | |
} | |
.concentrationInfoContainer { | |
display:none; | |
position:relative; | |
} | |
.concentrationInfo { | |
z-index:0; | |
position:absolute; | |
top:0; | |
left:0; | |
opacity:0; | |
width:100%; | |
transition:opacity 0.3s $animation-easing-function; | |
&.active { | |
opacity:1; | |
z-index:1; | |
position:relative; | |
} | |
h1 { | |
box-sizing:border-box; | |
color:white; | |
font-size:1.5em; | |
text-align:center; | |
width:100%; | |
padding:0.5em; | |
background-color:$concentrations-color; | |
} | |
li { | |
margin:0.3em 0; | |
} | |
h3 { | |
box-sizing:border-box; | |
color:$concentrations-color; | |
text-align:center; | |
width:100%; | |
padding:0.5em; | |
border:0.25em solid $concentrations-color; | |
} | |
} | |
.concentrationInfo__button { | |
display:block; | |
font-weight:bold; | |
color:$concentrations-color; | |
text-decoration:none; | |
margin-bottom:1em; | |
&:hover { | |
text-decoration:underline; | |
} | |
} | |
.foundationCurriculum { | |
width:100%; | |
float:left; | |
border-top:1px solid grey; | |
} | |
.foundationCurriculum__title { | |
color:$concentrations-color; | |
} |