Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Cosmic Band Site SCSS - For Article
// public/css/style.scss
@import url('https://fonts.googleapis.com/css?family=Poppins');
@import url('https://fonts.googleapis.com/css?family=Nixie+One');
$lightBlue: #03adee;
$orange: #EE7E03;
$darkBlue: #0175A1;
html {
height: 100%
}
body {
font-family: 'Poppins', sans-serif;
background: #212121;
height: 100%
}
.bold {
font-weight: bold;
}
.body {
position: absolute;
top: 194px;
min-height: calc(100vh - 194px);
width: 100%;
@media (max-width: 767px) {
top: 110px;
min-height: calc(100vh - 110px);
}
.tour-body-wrapper {
.tour-body {
padding: 50px 30px;
.tour-container {
@extend .nav-links;
padding: 20px 50px;
background: #303030;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 8px solid $darkBlue;
&:not(:last-child) {
margin-bottom: 20px
}
div:first-child {
h1 {
color: #fff;
font-family: 'Nixie One';
text-shadow: 1px 1px $lightBlue
}
color: transparentize(#fff, 0.3)
}
a {
font-family: 'Nixie One';
border: 2px solid #fff;
padding: 12px;
white-space: nowrap;
&:hover {
border-color: $orange
}
}
@media (max-width: 767px) {
flex-direction: column;
padding-bottom: 40px;
div:first-child {
margin-bottom: 20px
}
}
}
}
}
.album-wrapper {
padding: 30px;
text-align: center;
h1 {
font-family: 'Nixie One';
color: #fff;
text-shadow: 1px 1px $darkBlue;
font-size: 2rem;
}
h4{
color: transparentize(#fff, 0.7)
}
.album-body {
display: flex;
flex-wrap: wrap;
justify-content: center;
.photo {
margin: 15px
}
}
}
.bio-wrapper {
background-attachment: fixed;
background-size: cover;
.bio-body {
padding: 20px;
.bio {
background: transparentize(#303030, 0.1);
padding: 30px;
color: #fff;
font-family: 'Nixie One';
font-size: 1.6em;
line-height: 1.6;
}
}
}
.videos-wrapper {
padding: 20px;
.video-body {
display: flex;
flex-wrap: wrap;
justify-content: center;
.video {
margin: 20px
}
}
}
.gallery-wrapper {
@extend .nav-links;
padding: 40px 60px;
display: flex;
justify-content: center;
.gallery-body {
display: grid;
grid-template-columns: 1fr;
grid-gap: 30px;
.gallery {
background: #303030;
text-align: center;
img {
width: 100%;
}
}
}
}
.banner-image-container {
width: 100%;
height: 400px;
background-attachment: scroll;
background-position: center center;
background-size: cover;
display: flex;
justify-content: center;
align-items: center;
.cta {
user-select: none;
display: flex;
justify-content: center;
align-items: center;
height: 100%;
@media (max-width: 767px) {
flex-direction: column;
justify-content: center;
}
a {
@media (max-width: 767px) {
margin-right: 0 !important;
margin-bottom: 35px
}
text-align: center;
font-family: 'Nixie One', sans-serif;
font-weight: bold;
text-transform: uppercase;
font-size: 1.75rem;
border: 2px solid #fff;
padding: 16px;
color: #fff;
text-decoration: none;
background: transparentize(#303030, 0.5);
&:hover {
background: transparentize(#303030, 0.7);
color: $orange;
border-color: $orange
}
&:first-child {
margin-right: 30px
}
}
}
}
.content-wrapper {
display: grid;
grid-template-columns: 1fr 1fr;
grid-gap: 30px;
padding: 30px 50px;
@media (max-width: 767px) {
grid-template-columns: 1fr;
padding: 0;
grid-gap: 0;
}
.box {
@extend .nav-links;
h1 {
background: $lightBlue;
margin: 0;
color: #fff;
font-family: 'Nixie One';
padding: 16px;
text-align: center
}
background: #303030;
&>div {
padding: 35px 20px
}
.bio {
color: #fff;
font-size: 1.2rem;
line-height: 1.7;
font-family: 'Nixie One';
a {
display: block;
text-align: right;
text-decoration: underline
}
}
.tour-date {
color: #fff;
font-size: 1.2rem;
.date {
margin: 7px 0 12px;
display: block;
color: transparentize(#fff, 0.2)
}
.ticket-button {
text-align: right;
margin-bottom: 20px;
font-family: 'Nixen One';
}
&:not(:last-child) {
margin-bottom: 30px
}
border-bottom: 1px solid transparentize(#fff, 0.2);
}
}
}
}
header {
@extend .nav-links;
@extend .contact-form;
width: 100%;
position: fixed;
z-index: 99;
border-bottom: 10px solid $darkBlue;
.mobile-menu {
@media (min-width: 767px) {
display: none;
}
form {
margin-top: 20px;
flex-direction: column;
input[name="email"] {
margin-bottom: 20px !important
}
}
position: fixed;
top: 109px;
width: 100%;
background: #303030;
transition: visibility 0.5s ease, height 0.5s;
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: center;
font-size: 2em;
line-height: 2;
padding-top: 70px;
div {
display: flex;
justify-content: center;
margin-top: 20px;
a {
&:not(:last-child) {
margin-right: 20px
}
}
}
a, div {
transition: opacity 0.5s;
}
&[data-state="closed"] {
visibility: hidden;
height: 0;
a, div {
opacity: 0
}
}
&[data-state="open"] {
visibility: visible;
height: calc(100vh - 109px);
a, div {
opacity: 1
}
}
}
.header-top {
background: $lightBlue;
color: #fff;
padding: 15px 50px;
line-height: 1.2;
font-size: 2rem;
display: flex;
justify-content: space-between;
align-items: center;
a {
&:not(:last-child) {
margin-right: 12px
}
}
@media (max-width: 800px) {
padding: 15px 30px
}
@media(max-width: 767px) {
display: none
}
}
.header-bottom {
background: #303030;
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px 22px;
* {
display: inline-block;
}
div {
user-select: none
}
nav {
flex: 1;
text-align: center;
font-size: 1.5rem;
line-height: 2;
@media (max-width: 768px) {
text-align: right
}
a {
&:not(:last-child) {
margin-right: 16px;
@media (max-width: 768px) {
display: none
}
@media (width: 768px) {
display: inline-block
}
}
}
}
}
#dropdown-toggle {
font-size: 2rem;
margin-right: 40px;
@media (min-width: 768px) {
display: none
}
}
}
footer {
@extend .contact-form;
@extend .nav-links;
background: $darkBlue;
color: #fff;
padding: 50px;
text-align: center;
div {
margin-bottom: 30px
}
a {
font-size: 1.5rem;
&:not(:last-child) {
margin-right: 15px
}
}
form {
@media (max-width: 767px) {
flex-direction: column;
input[name="email"] {
margin-bottom: 20px !important
}
}
}
}
.nav-links {
a, #dropdown-toggle {
color: #fff;
text-decoration: none;
cursor: pointer;
&:hover {
color: $orange;
}
&:active {
color: $orange;
}
&:focus {
color: $orange;
}
}
}
.contact-form {
form {
display: inline-flex;
align-items: center;
font-size: 1.5rem;
* {
display: inline-block
}
input[name="email"] {
height: 2rem;
padding: 4px 10px;
border: 0;
outline: 0;
margin: 0 5px 0 0;
text-transform: lowercase;
}
input[type="submit"] {
cursor: pointer;
padding: 6px 12px;
border: 2px solid white;
line-height: 1.2;
font-size: calc(1.5rem - 2px);
background: none;
color: white;
text-transform: uppercase;
&:hover {
background: $orange
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.