partey_workadventure/website/src/sass/styles.scss

489 lines
12 KiB
SCSS
Raw Normal View History

2020-06-01 13:09:23 +02:00
@import "custom";
@import "~bootstrap/scss/bootstrap";
2020-06-03 00:31:42 +02:00
@import "_choose-map";
2020-06-01 13:09:23 +02:00
@font-face {
font-family: OpenSans;
src: url('../fonts/OpenSans-Regular.ttf');
}
@font-face {
font-family: '04b03';
font-style: normal;
font-weight: normal;
src: local('04b03'), url('../fonts/04B_03.woff') format('woff');
}
@font-face {
font-family: 'Karmatic Arcade';
src: url('../fonts/ka1.ttf') format('truetype');
}
@font-face {
font-family: 'VCR OSD Mono';
src: url('../fonts/VCR_OSD.ttf') format('truetype');
}
2020-06-16 13:51:25 +02:00
@function randomNum($min, $max) {
$rand: random();
$randomNum: $min + floor($rand * (($max - $min) + 1));
@return $randomNum;
}
2020-06-01 13:09:23 +02:00
header {
background: #28A7FC url("../images/sky.jpg") no-repeat bottom;
2020-06-01 13:09:23 +02:00
background-size: 100%;
height: 37rem;
position: relative;
2020-06-01 13:18:57 +02:00
.section{
position: relative;
}
2020-06-01 13:09:23 +02:00
.over-image {
bottom: 0;
position: absolute;
top: 0;
left: 0;
right: 0;
height: 33rem;
2020-06-09 07:39:43 +02:00
width: calc(100% - 15px);
2020-06-01 13:09:23 +02:00
.logo{
2020-06-01 13:18:57 +02:00
margin: 1rem 0;
2020-06-09 07:39:43 +02:00
@include media-breakpoint-down(sm) {
padding-left: 1rem;
}
2020-06-01 13:09:23 +02:00
}
2020-06-02 08:26:16 +02:00
.social-links {
text-align: right;
2020-06-09 07:39:43 +02:00
padding-top: 2.25rem;
2020-06-02 08:26:16 +02:00
a {
2020-06-09 07:39:43 +02:00
margin-left: 1.25rem;
}
}
@include media-breakpoint-down(sm) {
.social-links {
padding-top: 0.5rem;
padding-right: 0.5rem;
.share-title {
display: none;
}
a {
display: block;
margin-left: 0rem;
margin-top: 1rem;
}
2020-06-02 08:26:16 +02:00
}
}
2020-06-01 13:09:23 +02:00
.title {
2020-06-09 07:39:43 +02:00
z-index: 3;
position: relative;
2020-06-01 13:09:23 +02:00
padding: 5rem 0;
color: black;
h1 {
font-family: 'Karmatic Arcade';
2020-06-09 07:39:43 +02:00
font-size: 2.75rem;
margin-bottom: 1.25rem;
2020-06-14 13:29:47 +02:00
color: white;
2020-06-09 07:39:43 +02:00
}
h3 {
min-height: 200px;
padding: 1rem;
2020-06-14 13:29:47 +02:00
color: #106ca2;
2020-06-09 07:39:43 +02:00
}
@include media-breakpoint-down(xs) {
h3 {
font-size: 1rem;
}
}
2020-06-01 13:09:23 +02:00
}
}
2020-06-14 13:29:47 +02:00
}
.clouds {
content: "";
position: absolute;
bottom: 0;
right: 0;
height: 162px;
overflow: hidden;
width: 100%;
z-index: 1;
&.clouds-2 {
bottom: 25px;
.cloud {
2020-06-14 13:29:47 +02:00
transform: translateX(50px);
-webkit-animation-duration: 80s;
opacity: .6;
}
}
2020-06-14 13:29:47 +02:00
.cloud {
background: url('../images/cloud.png') repeat-x;
height: 162px;
width: 4000px;
-webkit-animation-name: prop-600;
-webkit-animation-duration: 50s;
-webkit-animation-iteration-count: infinite;
-webkit-animation-direction:alternate;
}
2020-06-01 13:09:23 +02:00
}
@-webkit-keyframes prop-600 {
0% {
-webkit-transform: translateX(0px);
}
100% {
-webkit-transform: translateX(-400px);
}
}
2020-06-14 13:29:47 +02:00
2020-06-01 13:09:23 +02:00
.custom-link{
2020-06-14 11:32:15 +02:00
cursor: pointer;
font-family: "VCR OSD Mono";
2020-06-09 07:39:43 +02:00
font-size: 1.125rem;
2020-06-02 08:54:25 +02:00
letter-spacing: 5px;
color: white;
2020-06-01 13:09:23 +02:00
display: block;
margin: 0 auto;
width: 250px;
height: 64px;
2020-06-01 13:09:23 +02:00
background-image: url('../images/btn-bg.png');
background-repeat: no-repeat;
background-size: 100%;
position: absolute;
left: 0;
right: 0;
2020-06-09 07:39:43 +02:00
bottom: 7px;
padding: 1.125rem;
text-align: center;
z-index: 2;
transition: all .1s cubic-bezier(0.000, -0.600, 1.000, 1.650); /* custom */
//transition-timing-function: cubic-bezier(0.000, -0.600, 1.000, 1.650); /* custom */
2020-06-09 07:39:43 +02:00
@include media-breakpoint-down(sm) {
display: none;
}
&:hover {
color: white;
2020-06-02 08:54:25 +02:00
transform: translateY(-6px);
text-decoration: none;
}
&.contribute {
background-image: url('../images/btn-bg-2.png');
}
2020-06-04 00:38:47 +02:00
&.play {
background-image: url('../images/btn-bg-3.png');
}
2020-06-02 08:54:25 +02:00
&.start {
2020-06-04 00:38:47 +02:00
/*padding-left: 55px;*/
2020-06-02 08:54:25 +02:00
&:before {
2020-06-04 00:38:47 +02:00
/*content: "";
2020-06-02 08:54:25 +02:00
position: absolute;
background: url('../images/playicon.png') no-repeat;
height: 20px;
width: 21px;
left: 36px;
2020-06-04 00:38:47 +02:00
top: 23px;*/
2020-06-02 08:54:25 +02:00
}
}
2020-06-01 13:09:23 +02:00
&.light{
background-image: url('../images/btn-bg-light.png');
}
/*&::after{
2020-06-01 13:09:23 +02:00
content: "";
position: absolute;
background-size: 60%;
width: 100%;
height: 100%;
}*/
2020-06-01 13:09:23 +02:00
}
img{
max-width: 100%;
}
.bg-white{
color: #000000;
}
.bg-gray{
background-color: #3b3b3b !important;
}
.credits {
text-align: center;
h2{
padding: 1rem 0;
margin: 0;
min-height: 6rem;
font-family: 'Karmatic Arcade';
font-size: 34px;
margin-bottom: 20px;
}
p {
}
}
2020-06-14 11:32:15 +02:00
.story-wrapper {
background: white;
position: relative;
2020-06-14 13:29:47 +02:00
height: 100vh;
2020-06-14 11:32:15 +02:00
min-height: calc(672px + 75px);
padding-top: 75px;
width: 100%;
overflow: hidden;
@include media-breakpoint-down(sm) {
display: none;
}
img {
max-width: none;
}
.sky {
2020-06-14 13:29:47 +02:00
margin-top: 8vh;
2020-06-14 11:32:15 +02:00
z-index: 1;
position: absolute;
top: 0;
width: 100%;
height: 242px;
background: url(../images/story/sky.jpg) repeat-x top left;
}
2020-06-14 13:29:47 +02:00
.clouds {
bottom: auto;
top: 0;
z-index: 2;
transform: scaleY(-1);
}
2020-06-14 11:32:15 +02:00
.mountains {
z-index: 5;
position: absolute;
bottom: 200px;
width: calc(100% + 200px);
height: 242px;
background: url(../images/story/mountains.png) repeat-x top center;
}
.story-1 {
position: absolute;
z-index: 10;
left: 0;
2020-06-14 13:29:47 +02:00
bottom: 0;
2020-06-14 11:32:15 +02:00
overflow: hidden;
}
.character {
position: absolute;
z-index: 15;
bottom: 75px;
left: 0;
right: 0;
margin: auto;
}
.birds {
position: absolute;
z-index: 20;
right: -200px;
$birds: 8;
@for $i from 1 through $birds {
@keyframes fly-#{$i} {
0% {
transform: translate(0px, 0px);
}
25% {
2020-06-16 13:51:25 +02:00
transform: translate(#{randomNum(0, 50)}px, #{randomNum(0, 50)}px);
2020-06-14 11:32:15 +02:00
}
50% {
2020-06-16 13:51:25 +02:00
transform: translate(#{randomNum(0, 50)}px, #{randomNum(0, 50)}px);
2020-06-14 11:32:15 +02:00
}
75% {
2020-06-16 13:51:25 +02:00
transform: translate(#{randomNum(0, 50)}px, #{randomNum(0, 50)}px);
2020-06-14 11:32:15 +02:00
}
100% {
2020-06-16 13:51:25 +02:00
transform: translate(#{randomNum(0, 50)}px, #{randomNum(0, 50)}px);
2020-06-14 11:32:15 +02:00
}
}
.bird-#{$i} {
2020-06-16 13:51:25 +02:00
margin: 0 #{randomNum(0, 10)}vw;
2020-06-14 11:32:15 +02:00
transition-timing-function: cubic-bezier(0.150, -0.600, 0.155, 1.650);
animation-duration: 15s;
animation-name: fly-#{$i};
animation-iteration-count: infinite;
animation-direction: alternate;
}
}
}
.bubble {
color: black;
position: absolute;
z-index: 25;
bottom: 160px;
left: 263px;
right: -50px;
margin: auto;
opacity: 0;
height: 151px;
width: 289px;
line-height: 22px;
padding: 5px;
background: black;
transform: translateY(25px);
& > div {
padding: 15px 15px 30px;
position: relative;
width: 100%;
height: 100%;
background: white;
&:before {
content: "";
position: absolute;
background: url(../images/story/bubble-border-bottom-left.png) no-repeat bottom left;
left: -4px;
width: 28px;
height: 25px;
bottom: -20px;
}
p {
&.bubble-legend {
font-size: 12px;
color: grey;
margin: 0;
}
&.bubble-action {
cursor: pointer;
text-decoration: underline
}
}
}
&.b-revert {
left: -363px;
& > div:before {
left: auto;
right: -4px;
background: url(../images/story/bubble-border-bottom-right.png) no-repeat bottom left;
}
}
}
}
.pin-spacer {
background: white;
}
2020-06-01 13:09:23 +02:00
.section{
padding-top: 2rem;
padding-bottom: 5rem;
&.used-by{
img{
padding: 0 1rem;
}
}
&.how-to{
2020-06-09 07:39:43 +02:00
padding: 6.25rem 0;
2020-06-02 09:51:21 +02:00
background: url('../images/bg-briques.jpg') repeat-x bottom;
2020-06-09 07:39:43 +02:00
.desktop-only {
padding: 0 1.25rem 4rem;
}
2020-06-01 13:09:23 +02:00
.image-item{
height: 100%;
margin: 0 auto;
2020-06-09 07:39:43 +02:00
padding: 1.25rem;
2020-06-04 00:38:47 +02:00
/*transition: all .25s cubic-bezier(0.000, -0.600, 1.000, 1.650);
&:hover {
transform: scale(1.1);
2020-06-02 08:26:16 +02:00
.step-image {
&:after {
bottom: -10px;
left: 10px;
}
}
}
.step-image {
position: relative;
&:after {
2020-06-02 12:55:16 +02:00
transition: all .25s cubic-bezier(0.000, -0.600, 1.000, 1.650);
content:"";
height: 100%;
width: 100%;
background: #dcdcdc;
position: absolute;
bottom: -25px;
left: 25px;
2020-06-02 12:55:16 +02:00
background: url('../images/bg-step.png') no-repeat bottom right;
}
img {
width: 100%;
z-index: 2;
position: relative;
}
2020-06-04 00:38:47 +02:00
}*/
2020-06-01 13:09:23 +02:00
h2{
padding: 1rem 0;
margin: 0;
min-height: 6rem;
font-family: 'Karmatic Arcade';
font-size: 22px;
2020-06-09 07:39:43 +02:00
margin-bottom: 1.25rem;
2020-06-01 13:09:23 +02:00
}
}
}
2020-06-09 07:39:43 +02:00
@include media-breakpoint-down(sm) {
&.how-to{
padding: 2rem 0;
}
}
2020-06-01 13:09:23 +02:00
&.used-by{
img{
}
}
&.quotes{
h2{
font-family: 'Karmatic Arcade';
2020-06-09 07:39:43 +02:00
font-size: 1.75rem;
margin: 2.5rem 0;
2020-06-01 13:09:23 +02:00
}
.quote-item{
padding: 1rem 0;
text-align: center;
2020-06-01 13:09:23 +02:00
.quote{
font-size: 1.5rem;
margin-bottom: 0.5rem;
letter-spacing: 2px;
}
.author{
font-size: 1rem;
letter-spacing: 0px;
2020-06-01 13:09:23 +02:00
}
}
}
}
.footer {
padding: 2rem;
2020-06-02 08:26:16 +02:00
.floppy {
2020-06-02 08:54:25 +02:00
text-align: right;
2020-06-02 08:26:16 +02:00
img {
float: right;
2020-06-09 07:39:43 +02:00
margin-left: 1.25rem;
2020-06-02 08:26:16 +02:00
}
div {
float: right;
2020-06-09 07:39:43 +02:00
margin-left: 1rem;
font-size: 1rem;
line-height: 1rem;
padding-top: 0.625rem;
2020-06-02 08:26:16 +02:00
span {
color: grey;
2020-06-09 07:39:43 +02:00
font-size: 0.8125rem;
}
}
}
@include media-breakpoint-down(xs) {
.floppy {
text-align: center;
img, div {
float: none;
2020-06-02 08:26:16 +02:00
}
}
}
}
2020-06-01 13:09:23 +02:00
2020-06-03 00:31:42 +02:00
.pixel-title{
font-family: "Karmatic Arcade" !important;
}
h3 {
font-weight: 800;
2020-06-03 00:31:42 +02:00
}