mirror of
https://github.com/lus/pasty.git
synced 2023-08-10 21:13:09 +03:00
Recompile CSS & fix lien number container height
This commit is contained in:
parent
3ac183b6d0
commit
3586011dc6
|
@ -4,17 +4,22 @@ html, body {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
background-color: #000000;
|
background-color: #000000;
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
font-family: "Source Code Pro", monospace;
|
font-family: 'Source Code Pro', monospace;
|
||||||
}
|
}
|
||||||
|
|
||||||
html.embedded .navigation, body.embedded .navigation {
|
html.embedded .navigation, body.embedded .navigation {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
html.embedded .container, body.embedded .container {
|
html.embedded .container, body.embedded .container {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
html.embedded #content, html.embedded #linenos, body.embedded #content, body.embedded #linenos {
|
html.embedded #content, html.embedded #linenos, body.embedded #content, body.embedded #linenos {
|
||||||
padding-top: 10px;
|
padding-top: 10px;
|
||||||
|
min-height: calc(100vh - 50px);
|
||||||
}
|
}
|
||||||
|
|
||||||
html.embedded #footer, body.embedded #footer {
|
html.embedded #footer, body.embedded #footer {
|
||||||
font-size: 0.8em;
|
font-size: 0.8em;
|
||||||
}
|
}
|
||||||
|
@ -55,6 +60,7 @@ html.embedded #footer, body.embedded #footer {
|
||||||
transform: translate3d(-50%, -50%, 0) rotate(360deg);
|
transform: translate3d(-50%, -50%, 0) rotate(360deg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes spinner {
|
@keyframes spinner {
|
||||||
0% {
|
0% {
|
||||||
-webkit-transform: translate3d(-50%, -50%, 0) rotate(0deg);
|
-webkit-transform: translate3d(-50%, -50%, 0) rotate(0deg);
|
||||||
|
@ -65,6 +71,7 @@ html.embedded #footer, body.embedded #footer {
|
||||||
transform: translate3d(-50%, -50%, 0) rotate(360deg);
|
transform: translate3d(-50%, -50%, 0) rotate(360deg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#spinner-container {
|
#spinner-container {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 130px;
|
top: 130px;
|
||||||
|
@ -72,9 +79,10 @@ html.embedded #footer, body.embedded #footer {
|
||||||
height: 50px;
|
height: 50px;
|
||||||
width: 50px;
|
width: 50px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#spinner-container .spinner {
|
#spinner-container .spinner {
|
||||||
-webkit-animation: 0.75s linear infinite spinner;
|
-webkit-animation: .75s linear infinite spinner;
|
||||||
animation: 0.75s linear infinite spinner;
|
animation: .75s linear infinite spinner;
|
||||||
-webkit-animation-play-state: inherit;
|
-webkit-animation-play-state: inherit;
|
||||||
animation-play-state: inherit;
|
animation-play-state: inherit;
|
||||||
border: solid 5px #ffffff;
|
border: solid 5px #ffffff;
|
||||||
|
@ -92,12 +100,16 @@ html.embedded #footer, body.embedded #footer {
|
||||||
bottom: 60px;
|
bottom: 60px;
|
||||||
right: 30px;
|
right: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#btn_report svg {
|
#btn_report svg {
|
||||||
|
-webkit-transition: all 250ms;
|
||||||
transition: all 250ms;
|
transition: all 250ms;
|
||||||
}
|
}
|
||||||
|
|
||||||
#btn_report:hover {
|
#btn_report:hover {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
#btn_report:hover svg {
|
#btn_report:hover svg {
|
||||||
stroke: #2daa57;
|
stroke: #2daa57;
|
||||||
}
|
}
|
||||||
|
@ -106,34 +118,51 @@ html.embedded #footer, body.embedded #footer {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
width: calc(100vw - 80px);
|
width: calc(100vw - 80px);
|
||||||
|
display: -webkit-box;
|
||||||
|
display: -ms-flexbox;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
-webkit-box-orient: horizontal;
|
||||||
align-items: center;
|
-webkit-box-direction: normal;
|
||||||
justify-content: space-between;
|
-ms-flex-direction: row;
|
||||||
|
flex-direction: row;
|
||||||
|
-webkit-box-align: center;
|
||||||
|
-ms-flex-align: center;
|
||||||
|
align-items: center;
|
||||||
|
-webkit-box-pack: justify;
|
||||||
|
-ms-flex-pack: justify;
|
||||||
|
justify-content: space-between;
|
||||||
padding: 0 40px;
|
padding: 0 40px;
|
||||||
background-color: #222222;
|
background-color: #222222;
|
||||||
}
|
}
|
||||||
|
|
||||||
.navigation .button {
|
.navigation .button {
|
||||||
padding: 10px 20px;
|
padding: 10px 20px;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
border: none;
|
border: none;
|
||||||
outline: none;
|
outline: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.navigation .button svg {
|
.navigation .button svg {
|
||||||
|
-webkit-transition: all 250ms;
|
||||||
transition: all 250ms;
|
transition: all 250ms;
|
||||||
}
|
}
|
||||||
|
|
||||||
.navigation .button.active svg {
|
.navigation .button.active svg {
|
||||||
stroke: #2daa57;
|
stroke: #2daa57;
|
||||||
}
|
}
|
||||||
|
|
||||||
.navigation .button:hover {
|
.navigation .button:hover {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.navigation .button:hover svg {
|
.navigation .button:hover svg {
|
||||||
stroke: #2daa57;
|
stroke: #2daa57;
|
||||||
}
|
}
|
||||||
|
|
||||||
.navigation .button:disabled svg {
|
.navigation .button:disabled svg {
|
||||||
stroke: #5a5a5a;
|
stroke: #5a5a5a;
|
||||||
}
|
}
|
||||||
|
|
||||||
.navigation .button:disabled:hover {
|
.navigation .button:disabled:hover {
|
||||||
cursor: initial;
|
cursor: initial;
|
||||||
color: initial;
|
color: initial;
|
||||||
|
@ -141,9 +170,15 @@ html.embedded #footer, body.embedded #footer {
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
margin-top: 60px;
|
margin-top: 60px;
|
||||||
|
display: -webkit-box;
|
||||||
|
display: -ms-flexbox;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
-webkit-box-orient: horizontal;
|
||||||
|
-webkit-box-direction: normal;
|
||||||
|
-ms-flex-direction: row;
|
||||||
|
flex-direction: row;
|
||||||
}
|
}
|
||||||
|
|
||||||
.container #linenos {
|
.container #linenos {
|
||||||
padding: 20px 0;
|
padding: 20px 0;
|
||||||
width: 50px;
|
width: 50px;
|
||||||
|
@ -151,25 +186,31 @@ html.embedded #footer, body.embedded #footer {
|
||||||
background-color: #111111;
|
background-color: #111111;
|
||||||
color: #bebebe;
|
color: #bebebe;
|
||||||
}
|
}
|
||||||
|
|
||||||
.container #linenos span {
|
.container #linenos span {
|
||||||
display: block;
|
display: block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 20px;
|
height: 20px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.container #linenos span:last-child {
|
.container #linenos span:last-child {
|
||||||
margin-bottom: 25px;
|
margin-bottom: 25px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.container #content {
|
.container #content {
|
||||||
box-sizing: border-box;
|
-webkit-box-sizing: border-box;
|
||||||
|
box-sizing: border-box;
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
width: calc(100vw - 50px);
|
width: calc(100vw - 50px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.container #content #code {
|
.container #content #code {
|
||||||
white-space: pre;
|
white-space: pre;
|
||||||
line-height: 20px;
|
line-height: 20px;
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.container #content #input {
|
.container #content #input {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
@ -182,24 +223,29 @@ html.embedded #footer, body.embedded #footer {
|
||||||
font: inherit;
|
font: inherit;
|
||||||
line-height: 20px;
|
line-height: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.container #notifications {
|
.container #notifications {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
bottom: 30px;
|
bottom: 30px;
|
||||||
right: 0;
|
right: 0;
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.container #notifications div {
|
.container #notifications div {
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
width: 500px;
|
width: 500px;
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
padding: 20px 30px;
|
padding: 20px 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.container #notifications div.error {
|
.container #notifications div.error {
|
||||||
background-color: #ff4d4d;
|
background-color: #ff4d4d;
|
||||||
}
|
}
|
||||||
|
|
||||||
.container #notifications div.success {
|
.container #notifications div.success {
|
||||||
background-color: #389b38;
|
background-color: #389b38;
|
||||||
}
|
}
|
||||||
|
|
||||||
.container #notifications div:first-child {
|
.container #notifications div:first-child {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
}
|
}
|
||||||
|
@ -211,28 +257,43 @@ html.embedded #footer, body.embedded #footer {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
background-color: #222222;
|
background-color: #222222;
|
||||||
}
|
}
|
||||||
|
|
||||||
#footer #flex {
|
#footer #flex {
|
||||||
|
display: -webkit-box;
|
||||||
|
display: -ms-flexbox;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
-webkit-box-orient: horizontal;
|
||||||
align-items: center;
|
-webkit-box-direction: normal;
|
||||||
justify-content: space-between;
|
-ms-flex-direction: row;
|
||||||
|
flex-direction: row;
|
||||||
|
-webkit-box-align: center;
|
||||||
|
-ms-flex-align: center;
|
||||||
|
align-items: center;
|
||||||
|
-webkit-box-pack: justify;
|
||||||
|
-ms-flex-pack: justify;
|
||||||
|
justify-content: space-between;
|
||||||
margin: 0 80px 0 60px;
|
margin: 0 80px 0 60px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#footer div {
|
#footer div {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
#footer a {
|
#footer a {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
padding: 5px 20px;
|
padding: 5px 20px;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
-webkit-transition: all 200ms;
|
||||||
transition: all 200ms;
|
transition: all 200ms;
|
||||||
}
|
}
|
||||||
|
|
||||||
#footer a:hover {
|
#footer a:hover {
|
||||||
background-color: #333333;
|
background-color: #333333;
|
||||||
color: #2daa57;
|
color: #2daa57;
|
||||||
}
|
}
|
||||||
|
|
||||||
#footer #version {
|
#footer #version {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
|
@ -255,7 +316,6 @@ html.embedded #footer, body.embedded #footer {
|
||||||
.navigation .meta #version {
|
.navigation .meta #version {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.container #notifications {
|
.container #notifications {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
@ -263,9 +323,9 @@ html.embedded #footer, body.embedded #footer {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
box-sizing: border-box;
|
-webkit-box-sizing: border-box;
|
||||||
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
#footer #flex {
|
#footer #flex {
|
||||||
margin: 0 0 0 25px;
|
margin: 0 0 0 25px;
|
||||||
}
|
}
|
||||||
|
@ -276,14 +336,15 @@ html.embedded #footer, body.embedded #footer {
|
||||||
padding: 5px 15px;
|
padding: 5px 15px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media only screen and (max-width: 500px) {
|
@media only screen and (max-width: 500px) {
|
||||||
#footer #flex {
|
#footer #flex {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
justify-content: space-around;
|
-ms-flex-pack: distribute;
|
||||||
|
justify-content: space-around;
|
||||||
}
|
}
|
||||||
#footer .version-container {
|
#footer .version-container {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/*# sourceMappingURL=style.css.map */
|
||||||
/*# sourceMappingURL=style.css.map */
|
|
File diff suppressed because one or more lines are too long
|
@ -6,23 +6,17 @@ html, body {
|
||||||
background-color: #000000;
|
background-color: #000000;
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
font-family: 'Source Code Pro', monospace;
|
font-family: 'Source Code Pro', monospace;
|
||||||
|
|
||||||
// Enables embedded mode (iframes).
|
|
||||||
&.embedded {
|
&.embedded {
|
||||||
// Hide navbar.
|
|
||||||
.navigation {
|
.navigation {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
// Align content with top of the frame.
|
|
||||||
.container {
|
.container {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
// Adjust paddings to have more space.
|
|
||||||
#content, #linenos {
|
#content, #linenos {
|
||||||
padding-top: 10px;
|
padding-top: 10px;
|
||||||
|
min-height: calc(100vh - 50px);
|
||||||
}
|
}
|
||||||
// Make footer smaller to further increase
|
|
||||||
// content real estate.
|
|
||||||
#footer {
|
#footer {
|
||||||
font-size: 0.8em;
|
font-size: 0.8em;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user