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

286 lines
7.8 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;
}
/**
*
* ······· 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%;
}
.filters {
display : flex;
justify-content: center;
margin : 0 0 60px;
.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;
}
2018-12-06 18:38:56 +03:00
}
2020-12-19 08:07:07 +03:00
&::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;
2018-12-06 18:38:56 +03:00
}
2020-12-19 08:07:07 +03:00
&.active {
background-color: #0d1926;
color : #e7e7e7;
2018-12-06 18:38:56 +03:00
}
2020-12-19 08:07:07 +03:00
&.active::before {
position : absolute;
right : 0;
bottom : -10px;
left : 0;
width : 100%;
height : 1px;
background-color: #0d1926;
content : " ";
opacity : 1;
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;
}
}