Portfolio/Resources/css/main.css
2020-12-01 21:19:04 -06:00

95 lines
No EOL
1.9 KiB
CSS

.codewars {
width: 1rem;
height: 1rem;
margin-bottom: 1px;
transition: filter ease-in-out 200ms;
vertical-align: sub !important;
filter: opacity(80%);
}
.codewars:hover {
filter: opacity(100%);
}
.navbar-translucent {
opacity: 75%;
transition: opacity ease-in-out 250ms;
}
.navbar-translucent:active, .navbar-translucent:hover {
opacity: 100%;
}
.container {
margin-top: 2rem;
margin-bottom: 2rem;
}
.gradient.masthead {
text-align: center;
width: 100%;
height: 50vh;
padding-top: 25vh;
/* Beautiful gradient effect */
background: linear-gradient(217deg, rgba(255, 0, 0, .8), rgba(255, 0, 0, 0) 70.71%), linear-gradient(127deg, rgba(0, 255, 0, .8), rgba(0, 255, 0, 0) 70.71%), linear-gradient(336deg, rgba(0, 0, 255, .8), rgba(0, 0, 255, 0) 70.71%);
animation: Rotate 10s ease infinite;
}
#displayModeSwitch, label[for="displayModeSwitch"] {
cursor: pointer;
user-select: none;
}
body.dark {
background-color: #252525 !important;
color: #eeeeee !important;
}
body.dark #displayModeSwitch {
background-color: #00bee0 !important;
border-color: #00bee0 !important;
}
@keyframes Rotate {
0% {
filter: hue-rotate(0deg);
}
25% {
filter: hue-rotate(45deg);
}
50% {
filter: hue-rotate(90deg);
}
75% {
filter: hue-rotate(45deg);
}
100% {
filter: hue-rotate(0deg);
}
}
.cards.grid {
display: grid;
flex-direction: row;
justify-content: center;
grid-template-columns: repeat(auto-fit, minmax(auto, 1fr));
grid-auto-rows: 1fr;
grid-gap: 2rem;
grid-auto-flow: dense;
}
/* Force a 2-column grid on larger displays */
@media(min-width: 512px) {
.cards.grid {
grid-template-columns: repeat(2, minmax(256px, 1fr));
}
}
/* Only show the link descriptions *if* the navbar is in mobile-mode */
@media(min-width: 992px) {
.link-desc {
display: none;
}
}