1
0
mirror of https://github.com/Mayccoll/Gogh.git synced 2023-08-10 21:12:46 +03:00
Gogh/sass/main.scss

347 lines
9.7 KiB
SCSS
Raw Normal View History

2020-12-19 08:07:07 +03:00
@charset "UTF-8";
@import './_base.scss';
@import './terminal.scss';
/**
*
* ······· General
*
*/
.btn {
display : inline-block;
padding : 0.5rem 2.5rem 0.55rem;
outline : none;
border : 1px solid #0d1926;
border-radius : 0;
background-color: transparent;
color : #0d1926;
text-align : center;
text-decoration : none;
text-transform : uppercase;
font-size : 16px;
cursor : pointer;
transition : all 0.3s ease;
2018-12-06 18:38:56 +03:00
}
2020-12-19 08:07:07 +03:00
.btn:hover {
background-color: #0d1926;
color : #ffffff;
2018-12-06 18:38:56 +03:00
}
2020-12-19 08:07:07 +03:00
.btn:active {
position: relative;
top : 1px;
2018-12-06 18:38:56 +03:00
}
2020-12-19 08:07:07 +03:00
.btn:focus {
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
2018-12-06 18:38:56 +03:00
}
2020-12-19 08:07:07 +03:00
/**
*
* ······· Header
*
*/
.gogh-header {
display : flex;
align-items : center;
justify-content : center;
background-color: #0d1926;
2018-12-06 18:38:56 +03:00
2020-12-19 08:07:07 +03:00
h1 {
width : 500px;
text-align : center;
font-size : 1rem;
line-height: 1;
2018-12-06 18:38:56 +03:00
2020-12-19 08:07:07 +03:00
span {
display : block;
overflow : hidden;
color : #fff;
text-indent: 100%;
white-space: nowrap;
}
2018-12-06 18:38:56 +03:00
2020-12-19 08:07:07 +03:00
img {
width : 100%;
height: auto;
}
2018-12-06 18:38:56 +03:00
}
}
2020-12-19 08:07:07 +03:00
/**
*
* ······· Content
*
*/
.gogh-content {
padding : 50px 0;
min-height : 200vh;
background-color: #e7e7e7;
color : #595647;
2018-12-06 18:38:56 +03:00
2020-12-19 08:07:07 +03:00
h2 {
margin : 0 0 25px;
color : #595647;
font-weight: 400;
font-size : 2.8rem;
}
2018-12-06 18:38:56 +03:00
2020-12-19 08:07:07 +03:00
p {
margin : 0 0 40px;
color : #595647;
font-size : 1.6rem;
line-height: 1.4;
2018-12-06 18:38:56 +03:00
}
}
2020-12-19 08:07:07 +03:00
/**
*
* ······· Code
*
*/
.code-wrap {
position: relative;
margin : 0 0 40px;
2018-12-06 18:38:56 +03:00
2020-12-19 08:07:07 +03:00
.btn-copy {
position : absolute;
right : 10px;
bottom : 14px;
display : inline-block;
width : 25px;
cursor : pointer;
transition: all 0.3s ease;
2018-12-06 18:38:56 +03:00
2020-12-19 08:07:07 +03:00
svg {
width : 100%;
height : auto;
transition: all 0.3s ease;
2018-12-06 18:38:56 +03:00
2020-12-19 08:07:07 +03:00
fill : #363636;
}
2018-12-06 18:38:56 +03:00
2020-12-19 08:07:07 +03:00
&:hover {
svg {
animation-name : anim-gogh;
animation-duration: 8s;
fill : #FF0883;
}
2018-12-06 18:38:56 +03:00
}
}
}
2020-12-19 08:07:07 +03:00
/**
*
* ······· Github
*
*/
.github-int {
margin : 0 0 40px;
text-align: center;
}
2020-12-20 03:18:16 +03:00
/**
*
* ······· Filters
*
*/
.filters {
display : flex;
justify-content: center;
margin : 0 0 40px;
.btn {
position: relative;
margin : 0 15px;
&:hover {
&::before {
position : absolute;
right : 0;
bottom : -10px;
left : 0;
margin : 0 auto;
width : 100%;
height : 1px;
background-color : #0d1926;
content : " ";
opacity : 1;
animation-name : anim-gogh-bg;
animation-duration: 8s;
}
}
&::before {
position : absolute;
right : 0;
bottom : -10px;
left : 0;
margin : 0 auto;
width : 0;
height : 1px;
background-color: #0d1926;
content : " ";
opacity : 0;
transition : all 0.3s ease;
}
&.active {
background-color: #0d1926;
color : #e7e7e7;
}
&.active::before {
position : absolute;
right : 0;
bottom : -10px;
left : 0;
width : 100%;
height : 1px;
background-color: #0d1926;
content : " ";
opacity : 1;
}
}
}
/**
*
* ······· Filters Bg
*
*/
.filter-background {
margin: 0 0 70px;
2021-01-12 00:03:23 +03:00
border: 1px solid #ffffff;
2020-12-20 03:18:16 +03:00
.btn--filter-bg {
position : relative;
padding : 0;
width : 5%;
height : 40px;
border : none;
cursor : pointer;
transition: all 0.3s ease, border-radius 0.9s ease;
span {
position : absolute;
bottom : -12px;
display : none;
padding : 1px 3px;
width : 100%;
border-radius : 1px;
background : #0d1926;
color : #ffffff;
text-align : center;
text-transform: none;
font-size : 0.6rem;
transition : all 0.3s ease;
}
&:hover {
z-index : 20;
height : 40px;
border : 1px solid #414141;
border-radius: 1px;
transform : scale(1.6);
span {
display: block;
}
}
}
.btn--filter-bg.active {
z-index : 10;
border : 1px solid #414141;
border-radius: 1px;
transform : scale(1.6);
span {
display: block;
}
}
}
2020-12-19 08:07:07 +03:00
/**
*
* ······· Main Content
*
*/
.gogh-terminal {
@include m360 {}
@include m450 {}
@include m576 {}
@include m650 {}
@include m768 {}
@include m900 {}
@include m992 {}
@include m1200 {}
@include m1400 {
2020-12-19 08:07:07 +03:00
margin : 0 auto;
max-width: 96%;
}
@include m1800 {
max-width: 84%;
}
@include m2200 {
max-width: 74%;
}
2018-12-06 18:38:56 +03:00
}
2020-12-19 08:07:07 +03:00
/**
*
* ······· Animations
*
*/
@keyframes anim-gogh {
25% {
fill: #83FF08;
2018-12-06 18:38:56 +03:00
}
2020-12-19 08:07:07 +03:00
37.5% {
fill: #FF8308;
2018-12-06 18:38:56 +03:00
}
2020-12-19 08:07:07 +03:00
50% {
fill: #0883FF;
2018-12-06 18:38:56 +03:00
}
2020-12-19 08:07:07 +03:00
62.5% {
fill: #8308FF;
2018-12-06 18:38:56 +03:00
}
2020-12-19 08:07:07 +03:00
75% {
fill: #08FF83;
2018-12-06 18:38:56 +03:00
}
2020-12-19 08:07:07 +03:00
87.5% {
fill: #363636;
2018-12-06 18:38:56 +03:00
}
2020-12-19 08:07:07 +03:00
100% {
fill: #FF0883;
2018-12-06 18:38:56 +03:00
}
}
2020-12-19 08:07:07 +03:00
@keyframes anim-gogh-bg {
25% {
background-color: #FF0883;
2018-12-06 18:38:56 +03:00
}
2020-12-19 08:07:07 +03:00
37.5% {
background-color: #FF8308;
2018-12-06 18:38:56 +03:00
}
2020-12-19 08:07:07 +03:00
50% {
background-color: #0883FF;
2018-12-06 18:38:56 +03:00
}
2020-12-19 08:07:07 +03:00
62.5% {
background-color: #8308FF;
}
2020-12-19 08:07:07 +03:00
75% {
background-color: #3dba98;
}
2020-12-19 08:07:07 +03:00
87.5% {
background-color: #363636;
}
2020-12-19 08:07:07 +03:00
100% {
background-color: #47af32;
}
}