///// HOMEPAGE /// Chill brand colors $chill-blue: #334d5c; $chill-green: rgba(67, 178, 157, 0.61); $chill-beige: #d3c7b1; $chill-red: #dc516d; $chill-pink: #e57469; $chill-orange: #e89463; $chill-lightgray: #efefef; $chill-yellow: #f1d275; /// Other custom colors $bg-dark-blue: #0d242e; $bg-light-blue: #a0dcff; $orange: #f46839; $text-green: #56c4aa; $red: #f0384d; $yellow: #fcc958; // Pattern @mixin add-bg-pattern($id) { background-repeat: repeat; background-position: top center; background-image: url('/images/bg/pattern-#{$id}.png'); } // Sections bg transitions @mixin add-horizontal-curve($id, $pos) { position: relative; &:before { content: ''; position: absolute; width: 100%; height: 100%; background-image: url('/images/svg/curve-#{$id}.svg'); background-size: contain; background-position: $pos center; background-repeat: no-repeat; pointer-events: none; } } // Colored design element: square or circle @mixin add-decorative-shape($color, $shape: 'square', $scale: 1, $pos-top: -60%, $pos-left: 44%) { position: relative; z-index: 1; &:before { content: ''; position: absolute; width: 100px * $scale; height: 100px * $scale; left: $pos-left; top: $pos-top; margin-left: -35px; background-color: $color; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5); z-index: 0; @if $shape == 'circle' { border-radius: 50px; } @else { border-radius: 0; } } } body{ font-family: 'Lato', serif; .highlight { padding: .5rem; font-family: 'Trocchi', serif; font-size: 2rem; } .highlight-1 { background-color: $chill-green; } .highlight-2 { background-color: $chill-pink; } .highlight-3 { background-color: $chill-yellow; } } // Theme custom sections header.header { background-color: $bg-dark-blue; } .chill-pres { padding-top: 0rem; } main > section { &.hero { height: 100vh; background-color: $bg-dark-blue; h1 { color: $chill-green; } .hero-img { padding-top: 3rem; } .btn-primary { background-color: $orange; color: white; border-color: $orange; } } &.section-1 { background-color: white; padding-top: 10rem; li { font-weight: 600; } } &.section-2 { .container { color: $bg-dark-blue; text-align: center; margin-top: 4rem; h2 { line-height: 3.5rem; } } background: rgb(233,227,216); background: linear-gradient(180deg, rgba(233,227,216,1) 0%, rgba(239,239,239,1) 100%); } &.section-3 { background: rgb(239,239,239); background: linear-gradient(180deg, rgba(239,239,239,1) 0%, rgba(255,255,255,1) 100%); h2 { @include add-decorative-shape($orange, 'circle', .7, -30%, -10%); } } &.section-4 { position: relative; background-color: white; .row { padding-bottom: 5rem; } h4 { font-weight: bold; height: 175px; color: $bg-dark-blue; border: 1px dashed $bg-dark-blue; border-radius: 15px; padding: 3rem; } .btn-primary { position: absolute; top: 52%; left: 28%; } } &.section-5 { background-color: transparentize($color: $chill-green, $amount: 0.5) } &.section-6 { background-color: $bg-dark-blue !important; @include add-bg-pattern(1); } &.section-7 { h2 { @include add-decorative-shape($yellow, 'square', .7, -30%, -15%); } } } section { h2.title { color: $bg-dark-blue; } // Centered text &.big-text, &.li-block { h2, p { width: fit-content; margin-left: auto; margin-right: auto; } } &.big-text { .container .row { & > div { &:last-child { width: 80%; margin-left: 10%; } } } p.text-xl { //font-size: 1.4rem; } } // Change bulletlists rendering in flex bloc } &.li-block { .container .row { & > div { &:last-child { width: 100%; } ul { display: flex; li { i:first-child { display: none; } flex: 1 0 0; margin: 0.5em 2rem 0.5em 2rem; padding: 2em 1em 1em 1em; text-align: center; border-radius: 20px; } } } } // Add custom colored icons on each item &.section-1 { //text-transform: uppercase; ul li { font-weight: 500; font-size: large; position: relative; //border: 1.5px dashed $bg-dark-blue; &:nth-child(1) { @include add-decorative-shape($text-green, 'square', 1); } &:nth-child(2) { @include add-decorative-shape($red, 'circle', 1); } &:nth-child(3) { @include add-decorative-shape($chill-orange, 'triangle', 1); } &:nth-child(4) { @include add-decorative-shape($yellow, 'circle', 1); } } } &.section-5 { .container .row { p { margin-bottom: 5rem; } ul li { border-radius: 1em; background: transparentize(white, 0.8); backdrop-filter: blur(20px); width: 400px; height: 180px; padding: .85rem; position: relative; z-index: 0; overflow: hidden; transition: 0.6s ease-in; &::before { content: ""; position: absolute; z-index: -1; top: -15px; right: -15px; height:220px; width: 25px; border-radius: 32px; transform: scale(1); transform-origin: 50% 50%; transition: transform 0.25s ease-out; } &:nth-child(1)::before { background-color: rgba(240, 56, 77, 0.85); } &:nth-child(2)::before { background-color: rgba(232, 148, 99, 0.85); } &:nth-child(3)::before { background-color: rgba(67, 178, 157, 0.85); } &:nth-child(4)::before { background-color: rgb(241, 210, 117); } &:hover::before { transition-delay:0.2s ; transform: scale(40); } &:hover { color: #ffffff; h5 { color: $chill-lightgray; } } h5 { color: $bg-dark-blue; font-weight: bold; } } } } // button styling a.btn-chill { background-color: #fc3636; } } } // Dark context (homepage header, hero, footer) //.dark { // Overwrite primary button design .btn-primary { background-color: $orange; color: white; border: 1px solid $orange; border-radius: 2em; } //} // Dark but only in sections section.dark { p { color: white; font-weight: bolder; } } .hop { color: red; } ///// PAGES main > section { &.page-hero { height: 40vh; background-color: $bg-dark-blue; @include add-bg-pattern(1); h1 { color: $text-green; } i { color: $chill-lightgray; } } .content-subtitle { text-transform: uppercase; padding-left: 2rem; } .bord-1 { border-left: 4px solid $chill-orange; } .bord-2 { border-left: 4px solid $chill-beige; } .bord-3 { border-left: 4px solid $chill-yellow; } .bord-4 { border-left: 4px solid $chill-green; } } .chapo { font-size: large; font-weight: 600; text-align: center; padding-bottom: 2rem; font-style: italic; position: relative; margin-bottom: 5rem; &::after { content:''; position:absolute; left:0; right:0; top:100%; margin:10px auto; width:15%; height:6px; background: $chill-red; } } figure.image { //background-color: $chill-lightgray; //padding: 1em; display: flex; flex-direction: column; &.left { float: left; margin-right: 1.5em; } &.right { float: right; margin-left: 1.5em; } &.center { display: flex; justify-content: center; align-items: center; } img { margin-bottom: 0; } figcaption {} } @media screen and (max-width: 1279px) { section { &.li-block { &.section-5 { .container .row { ul { flex-wrap: wrap; } ul li { flex: 30%; } } } } } } @media screen and (max-width: 1023px) { main > section { &.section-4 { h4 { height: 224px; } .btn-primary { top: 56%; } } } section { &.li-block { &.section-5 { .container .row { ul { flex-wrap: wrap; } ul li { flex: 50%; } } } } } } @media screen and (max-width: 767px) { main > section { &.hero { height: 110vh; } &.section-3 { h2:before { top: -70%; left: 5%; z-index: -1; } } &.section-4 { h4 { height: 280px; } .btn-primary { top: 64%; } } } section { &.li-block { .container .row { & > div { ul { flex-direction: column; li { margin-bottom: 4rem; } } } } // Add custom colored icons on each item &.section-1 { ul li { &:nth-child(1) { top: -66%; } &:nth-child(2) { top: -66%; } &:nth-child(3):before { top: -85%; } &:nth-child(4):before { top: -85%; } } } &.section-5 { .container .row { ul { flex-wrap: wrap; } ul li { flex: 50%; } } } } } } @media screen and (max-width: 513px) { main > section { &.hero { height: 120vh; } &.section-4 { h4 { font-size: 1.1rem; } .btn-primary { top: 64%; } } &.section-5 { .container .row { ul li { width: 350px; } } } } } @media screen and (max-width: 470px) { main > section { &.section-4 { h4 { height: 280px; } .btn-primary { top: 64%; } } } section { &.li-block { &.section-1 { ul li { &:nth-child(3):before { top: -70%; } &:nth-child(4):before { top: -70%; } } } &.section-5 { .container .row { ul { flex-wrap: wrap; } ul li { width: 350px; } } } } } } @media screen and (max-width: 420px) { section { &.li-block { /* &.section-1 { ul li { &:nth-child(3):before { top: -70%; } &:nth-child(4):before { top: -70%; } } }*/ &.section-5 { .container .row { ul li { width: 300px; } } } } } }