Skip to content

Commit

Permalink
Update styles.css
Browse files Browse the repository at this point in the history
  • Loading branch information
benhatsor authored Oct 14, 2020
1 parent ef579db commit 38b320e
Showing 1 changed file with 186 additions and 2 deletions.
188 changes: 186 additions & 2 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
html {
background: #2a2a2e;
color: #d4d5d7;
overflow: hidden;
font-family: 'Inter', sans-serif;
scrollbar-color: #131c21 transparent;
scrollbar-width: thin;
Expand All @@ -26,6 +27,128 @@ body {
border-radius: 10px;
}

.main {
position: fixed;
left: 0;
top: 0;
background: #131c21;
width: 100vw;
height: 100vh;
z-index: 100;
display: grid;
place-content: center;
font-size: 20px;
text-align: center;
transition: .2s ease;
}

.main .top {
font-size: 40px;
display: flex;
align-items: center;
margin: auto;
}

.main hr {
margin-top: 12px;
margin-bottom: calc(1em + 12px);
border: none;
border-top: 1px solid rgb(241 241 242 / 36%);
width: 100%;
transition: .5s ease;
}

.main .buttons {
margin: auto;
transition: .5s ease;
}

.main .button {
cursor: pointer;
display: flex;
justify-content: center;
align-items: center;
padding: 10px 24px;
border-radius: 3px;
background: #00af9c;
color: #131c21;
font-size: 14px;
text-transform: uppercase;
transition: .2s ease;
}

.main .button svg {
margin-right: 7px;
}

.main .button.second {
margin-top: 6px;
color: #00af9c;
background: transparent;
}

.main .button:hover {
box-shadow: 0 1px 1px 0 rgba(0,0,0,.06), 0 2px 5px 0 rgba(0,0,0,.2);
background: #00c3ae;
}

.main .button.second:hover {
background-color: #f1f1f20d;
}

.main .title-wrapper, .main .upload-wrapper {
display: grid;
place-content: center;
transition: 0s .2s margin, .2s .2s opacity;
}

.main .title-wrapper.hidden, .main .upload-wrapper.hidden {
margin: -100%;
opacity: 0;
pointer-events: none;
transition: .2s opacity, .2s 0s margin;
}

.main .code {
border: 1px solid rgba(241,241,242,0.11);
outline: none;
border-radius: 5px;
background: #2d3134;
height: 110px;
text-align: start;
font-size: 11px;
padding: 10px;
font-family: "Roboto Mono", monospace;
overflow-y: scroll;
box-shadow: 0 1px 4px 0 rgba(12, 12, 13, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.15);
transition: .2s ease;
}

.main .code:focus {
box-shadow: 0 0 0 1px #00c3ae, 0 0 0 4px rgb(0 195 174 / 0.3);
}

.main .code:empty:before {
pointer-events: none;
content: '@keyframes example...';
color: gray;
}

.main .upload-wrapper .buttons {
margin-top: 20px;
display: flex;
}

.main .upload-wrapper .button {
width: max-content;
margin: 0 5px;
}

.main.hidden {
opacity: 0;
pointer-events: none;
}

.header {
display: flex;
position: fixed;
Expand Down Expand Up @@ -307,7 +430,7 @@ body {
}

.prompt {
height: calc(100vh - 40px);
max-height: calc(100vh - 40px);
background: #3b4042;
border-radius: 5px;
padding: 22px 24px 20px;
Expand Down Expand Up @@ -360,6 +483,19 @@ body {
position: relative;
}

.prompt .code::after {
content: '';
background: #00af9c;
position: absolute;
bottom: 0;
width: 100%;
height: 2px;
left: 0;
transform: scaleX(0);
transition: .2s ease;
border-radius: 0 0 3px 3px;
}

.prompt .code .copy {
position: absolute;
top: 8px;
Expand All @@ -369,11 +505,60 @@ body {
transition: .2s ease;
}

.prompt .code.copy .copy {
color: #70db91;
}

.prompt .code.copy::after {
transform: none;
}

.prompt .name {
color: white;
font-size: inherit;
}

.prompt .content-wrapper {
height: 200px;
display: flex;
flex-direction: column;
position: relative;
right: 0;
}

.prompt .buttons {
display: flex;
position: absolute;
bottom: 0;
right: 0;
}

.prompt .button {
padding: 10px 24px;
border-radius: 3px;
cursor: pointer;
background: #00af9c;
color: #131c21;
font-size: 14px;
text-transform: uppercase;
transition: .2s ease;
margin-left: 4px;
}

.prompt .button.second {
color: #00af9c;
background: transparent;
}

.prompt .button:hover {
background: #00c3ae;
box-shadow: 0 1px 1px 0 rgba(0,0,0,.06),0 2px 5px 0 rgba(0,0,0,.2);
}

.prompt .button.second:hover {
background-color: #f1f1f20d;
}

.prompt-wrapper.open {
opacity: 1;
pointer-events: auto;
Expand All @@ -386,7 +571,6 @@ body {
25% {
transform: rotate(15deg);
}

75% {
transform: rotate(-15deg);
}
Expand Down

0 comments on commit 38b320e

Please sign in to comment.