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?
Tyler-Burke-DMD-3470-Web-II/cssShowcase/style.css
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
458 lines (370 sloc)
7.1 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
* { | |
box-sizing: border-box; | |
} | |
body { | |
overflow-x: hidden; | |
margin: 0; | |
padding: 0; | |
} | |
.loader-wrapper{ | |
width: 100%; | |
height: 100%; | |
position: absolute; | |
background-color: white; | |
display: flex; | |
justify-content: center; | |
align-items: center; | |
font-family: 'Montserrat'; | |
} | |
.text { | |
color:black; | |
display: inline-block; | |
margin-left: 5px; | |
} | |
.bounceball { | |
position: relative; | |
display: inline-block; | |
height: 37px; | |
width: 15px; | |
} | |
.bounceball:before { | |
position: absolute; | |
content: ''; | |
display: block; | |
top: 0; | |
width: 15px; | |
height: 15px; | |
border-radius: 50%; | |
background-color: black; | |
-webkit-transform-origin: 50%; | |
transform-origin: 50%; | |
-webkit-animation: bounce 500ms alternate infinite ease; | |
animation: bounce 500ms alternate infinite ease; | |
} | |
@-webkit-keyframes bounce { | |
0% { | |
top: 30px; | |
height: 5px; | |
border-radius: 60px 60px 20px 20px; | |
-webkit-transform: scaleX(2); | |
transform: scaleX(2); | |
} | |
35% { | |
height: 15px; | |
border-radius: 50%; | |
-webkit-transform: scaleX(1); | |
transform: scaleX(1); | |
} | |
100% { | |
top: 0; | |
} | |
} | |
@keyframes bounce { | |
0% { | |
top: 30px; | |
height: 5px; | |
border-radius: 60px 60px 20px 20px; | |
-webkit-transform: scaleX(2); | |
transform: scaleX(2); | |
} | |
35% { | |
height: 15px; | |
border-radius: 50%; | |
-webkit-transform: scaleX(1); | |
transform: scaleX(1); | |
} | |
100% { | |
top: 0; | |
} | |
} | |
/*title*/ | |
.title{ | |
display: flex; | |
justify-content: center; | |
width: 100%; | |
height: auto; | |
} | |
p { | |
color: #fff; | |
font-family: 'Avenir Next', Helvetica Neue, Helvetica, Tahoma, sans-serif; | |
font-size: 1em; | |
font-weight: 700; | |
} | |
p span { | |
display: inline-block; | |
position: relative; | |
-webkit-transform-style: preserve-3d; | |
transform-style: preserve-3d; | |
-webkit-perspective: 500; | |
perspective: 500; | |
-webkit-font-smoothing: antialiased; | |
} | |
p span::before, | |
p span::after { | |
display: none; | |
position: absolute; | |
top: 0; | |
left: -1px; | |
-webkit-transform-origin: left top; | |
transform-origin: left top; | |
-webkit-transition: all ease-out 0.1s; | |
transition: all ease-out 0.1s; | |
content: attr(data-text); | |
} | |
p span::before { | |
z-index: 1; | |
color: rgba(0,0,0,0.2); | |
-webkit-transform: scale(1.1, 1) skew(0deg, 20deg); | |
transform: scale(1.1, 1) skew(0deg, 20deg); | |
} | |
p span::after { | |
z-index: 2; | |
color:#6b6b6b; | |
text-shadow: 1px 0 1px black; | |
-webkit-transform: rotateY(-40deg); | |
transform: rotateY(-40deg); | |
} | |
p span:hover::before { | |
-webkit-transform: scale(1.1, 1) skew(0deg, 5deg); | |
transform: scale(1.1, 1) skew(0deg, 5deg); | |
} | |
p span:hover::after { | |
-webkit-transform: rotateY(-10deg); | |
transform: rotateY(-10deg); | |
} | |
p span + span { | |
margin-left: 0.3em; | |
} | |
@media (min-width: 20em) { | |
p { | |
font-size: 2em; | |
} | |
p span::before, | |
p span::after { | |
display: block; | |
} | |
} | |
@media (min-width: 20em) { | |
p { | |
font-size: 2em; | |
} | |
} | |
@media (min-width: 30em) { | |
p { | |
font-size: 2em; | |
} | |
} | |
@media (min-width: 40em) { | |
p { | |
font-size: 3em; | |
} | |
} | |
@media (min-width: 60em) { | |
p { | |
font-size: 4em; | |
} | |
} | |
/* header */ | |
.titlename { | |
display: flex; | |
align-items: center; | |
justify-content: center; | |
font-family: 'Karla', sans-serif; | |
font-size: 40px; | |
font-weight: bold; | |
line-height: 1.1 | |
} | |
#nav{ | |
display: flex; | |
justify-content: center; | |
align-items: center; | |
font-family:'Hind', sans-serif; | |
} | |
ul { | |
display: flex; | |
justify-content: space-between; | |
align-content: center; | |
padding: 0; | |
} | |
ul li { | |
list-style: none; | |
} | |
ul li a { | |
position: relative; | |
display: block; | |
text-transform: uppercase; | |
margin: 20px 0; | |
padding: 10px 20px; | |
text-decoration: none; | |
color: #262626; | |
font-family: sans-serif; | |
font-size: 18px; | |
font-weight: 600; | |
transition: .5s; | |
z-index: 1; | |
} | |
ul li a:before { | |
content: ''; | |
position: absolute; | |
top: 0; | |
left: 0; | |
width: 100%; | |
height: 100%; | |
border-top: 2px solid #262626; | |
border-bottom: 2px solid #262626; | |
transform: scaleY(2); | |
opacity: 0; | |
transition: .3s; | |
} | |
ul li a:after { | |
content: ''; | |
position: absolute; | |
top: 2px; | |
left: 0; | |
width: 100%; | |
height: 100%; | |
background-color: #262626; | |
transform: scale(0); | |
opacity: 0; | |
transition: .3s; | |
z-index: -1; | |
} | |
ul li a:hover { | |
color: #fff; | |
} | |
ul li a:hover:before { | |
transform: scaleY(1); | |
opacity: 1; | |
} | |
ul li a:hover:after { | |
transform: scaleY(1); | |
opacity: 1; | |
} | |
/* drop down */ | |
ul.drop-menu li { | |
display: none; | |
} | |
li > ul.drop-menu li{ | |
display:block; | |
} | |
.drop-menu{ | |
display: block; | |
color: #ccc; | |
padding: 20px; | |
} | |
ul.drop-menu { | |
transform: perspective(1000px) rotatex(-90deg); | |
display: none; | |
} | |
ul.drop-menu.active { | |
transform: perspective(1000px) rotatex(0deg); | |
display: block; | |
padding: 0; | |
} | |
#icons{ | |
padding-right: 10px; | |
padding-left:10px ; | |
} | |
#icons i:hover{ | |
color:#fff; | |
} | |
i:hover{ | |
color: white ; | |
} | |
.drop{ | |
padding: 5px; | |
font-size: 14px; | |
} | |
a.btn.btn-2{ | |
margin: 5px; | |
} | |
div.drop-menu2{ | |
display: none; | |
} | |
div.drop-menu2.active{ | |
display: block; | |
} | |
.drop-menu2{ | |
display: block; | |
font-size: 14px; | |
background-color:#ccc ; | |
} | |
#aboutInfo{ | |
display: flex; | |
justify-content: flex-start; | |
align-items: center; | |
color:#262626; | |
background-color:#ccc ; | |
font-size: 28px; | |
margin: 25px; | |
font-family: 'Reenie Beanie', cursive; | |
font-weight: 400; | |
} | |
/*li:hover > ul.drop-menu.menu2 | |
perspective: 1000px | |
li | |
opacity: 0 | |
transform-origin: top center | |
@for $i from 1 through 3 | |
&:nth-child(#{$i}) | |
animation: | |
name: menu2 | |
duration: 300ms | |
delay:(150ms * $i) - 300 | |
timing-function: ease-in-out | |
fill-mode: forwards | |
@keyframes menu2 | |
0% | |
opacity: 0 | |
transform: rotateX(-90deg) | |
100% | |
opacity: 1 | |
transform: rotateX(0deg)*/ | |
/*display*/ | |
/*hover*/ | |
.center { | |
display: flex; | |
justify-content: center; | |
align-items: center; | |
padding-top: 14px; | |
padding-left: 30px; | |
padding-right: 30px; | |
} | |
.artwork { | |
display: grid; | |
height: 100%; | |
grid-template-rows: repeat(2, 1fr); | |
grid-template-columns: repeat(6, 1fr); | |
padding: 0; | |
margin: 0; | |
grid-gap: 10px; | |
} | |
.artwork img{ | |
transition: .5s; | |
} | |
.m { | |
grid-row: span 3; | |
grid-column: span 3; | |
} | |
.l { | |
grid-row: span 4; | |
grid-column: span 4; | |
} | |
.s{ | |
grid-row: span 2; | |
grid-column: span 2; | |
} | |
img{ | |
object-fit: cover; | |
width: 100%; | |
height: 100%; | |
} | |
@media(min-width: 80em){ | |
.center{ | |
padding-left: 400px; | |
padding-right: 400px; | |
} | |
#aboutInfo{ | |
font-size: 30px; | |
} | |
} | |