splitted scss in multiple files

This commit is contained in:
Jonas Leder 2021-01-11 19:24:57 +01:00
parent 91b1509c4b
commit 21cb981141
8 changed files with 233 additions and 227 deletions

View file

@ -35,7 +35,7 @@ function getFooter(){
<p class="center">
<a href="https://www.instagram.com/jonasled1/"><i class="fa fa-instagram fa-2x"></i></a><i class="footerIconSpacer"></i>
<a href="https://www.thingiverse.com/jonasled/designs/"><i class="fa fa-cubes fa-2x"></i></a><i class="footerIconSpacer"></i>
<a href="https://paypal.me/jonasled/"><i class="fa fa-paypal fa-2x"></i></a>
<a href="https://paypal.me/jonasled/"><i class="fa fa-paypal fa-2x"></i></a><i class="footerIconSpacer"></i>
<a href="https://matrix.jonasled.de/invite/#/@jonasled:jonasled.de"><i class="fa fa-matrix-org fa-2x"></i></a>
</p>
</div>

64
scss/_comments.scss Normal file
View file

@ -0,0 +1,64 @@
#newComment {
form {
input, textarea{
width: 100%;
background-color: $back-color;
color: $text-color;
border: solid $back-color-2;
}
input:focus, textarea:focus {
outline: none;
}
textarea{
resize: vertical;
}
input[type=submit]{
background-color: $accent-color;
color: #fff;
text-transform: uppercase;
padding: 15px;
font-size: 14px;
cursor: pointer;
outline: 0;
border: 0;
&:HOVER{
background-color: $accent-color-2;
}
}
}
}
.comment{
display: flex;
img{
margin-right: 10px;
width: 100px;
height: 100px;
}
}
.commentTitle{
margin-bottom: 5px;
}
.commentArticle{
display: flex;
justify-content: center;
flex-direction: column;
align-items: center;
min-height: 100px;
}
.commentText{
margin: 0;
width: 100%;
}
.emailBox {
display: inline;
}

37
scss/_content.scss Normal file
View file

@ -0,0 +1,37 @@
#content{
background-color: $back-color;
width: 100%;
padding: 20px 20%;
img {
max-width: 40%;
}
}
article{
border: 2px solid $accent-color;
border-radius: 20px;
padding: 10px;
margin-right: 20px;
width: 100%;
height: 100%;
h2{
text-align: center;
margin: 0;
}
&:last-child{
margin-right: 0;
}
}
#blog{
width: 100%;
display: flex;
justify-content: center;
align-items: center;
}
#homeImage{
float: left;
margin-right: 5px;
}

39
scss/_footer.scss Normal file
View file

@ -0,0 +1,39 @@
footer{
display: flex;
justify-content: center;
flex-direction: column;
a {
text-decoration: none;
}
#footerContent{
width: 100%;
display: flex;
justify-content: center;
div{
border-right: #3d3d3d 1px solid;
padding: 20px;
}
h3 {
margin-top: 0;
}
a {
color: $text-color;
}
}
.footerIconSpacer{
margin-left: 10px;
display: inline;
}
}
#blueBar{
height: 5px;
width: 100%;
background-color: $content-footer-div-color;
}

View file

@ -3,76 +3,9 @@ body {
background-color: $back-color-2;
color: $text-color;
font-family: 'Source Sans Pro', sans-serif;
}
#content{
background-color: $back-color;
width: 100%;
padding: 20px 20%;
img {
max-width: 40%;
}
}
#blueBar{
height: 5px;
width: 100%;
background-color: $content-footer-div-color;
}
footer{
display: flex;
justify-content: center;
flex-direction: column;
a {
text-decoration: none;
}
}
a{
padding: 0;
color: $accent-color;
text-decoration:underline;
&:HOVER{
color: $accent-color-2;
}
}
.footerIconSpacer{
margin-left: 10px;
display: inline;
}
.red {
color: red;
}
.center{
text-align: center;
}
article{
border: 2px solid $accent-color;
border-radius: 20px;
padding: 10px;
margin-right: 20px;
width: 100%;
width: calc(100% - 1px);
height: 100%;
h2{
text-align: center;
margin: 0;
}
}
#blog{
width: 100%;
display: flex;
justify-content: center;
align-items: center;
}
article:last-child{
margin-right: 0;
}
button{
@ -89,174 +22,24 @@ button{
}
}
#homeImage{
float: left;
margin-right: 5px;
}
.spacer{
clear: both;
}
#footerContent{
width: 100%;
display: flex;
justify-content: center;
div{
border-right: #3d3d3d 1px solid;
padding: 20px;
}
h3 {
margin-top: 0;
}
a {
color: $text-color;
}
}
.cookieinfo{
position: fixed;
left: 0;
right: 0;
height: auto;
min-height: 21px;
z-index: 2147483647;
line-height: 21px;
padding: 8px 18px;
font-family: verdana, arial, sans-serif;
font-size: 14px;
text-align: center;
bottom: 0;
opacity: 1;
background-color: $back-color;
color: $text-color;
}
.cookieinfo-close{
float: right;
display: block;
padding: 5px 8px;
min-width: 100px;
margin-left: 5px;
border-radius: 5px;
cursor: pointer;
background-color: $accent-color;
color: #fff;
text-align: center;
&:HOVER{
background-color: $accent-color-2;
}
}
.cookieinfo-text {
display:block;
padding:5px 0 5px 0;
}
.cookieinfo-link{
text-decoration: none;
a{
padding: 0;
color: $accent-color;
text-decoration:underline;
&:HOVER{
color: $accent-color-2;
}
}
#newComment {
form {
input, textarea{
width: 100%;
background-color: $back-color;
color: $text-color;
border: solid $back-color-2;
}
input:focus, textarea:focus {
outline: none;
}
textarea{
resize: vertical;
}
input[type=submit]{
background-color: $accent-color;
color: #fff;
text-transform: uppercase;
padding: 15px;
font-size: 14px;
cursor: pointer;
outline: 0;
border: 0;
&:HOVER{
background-color: $accent-color-2;
}
}
}
.red {
color: red;
}
.comment{
display: flex;
img{
margin-right: 10px;
width: 100px;
height: 100px;
}
}
.commentTitle{
margin-bottom: 5px;
}
.commentArticle{
display: flex;
justify-content: center;
flex-direction: column;
align-items: center;
min-height: 100px;
}
.commentText{
margin: 0;
width: 100%;
}
.emailBox {
display: inline;
}
@media only screen and (max-width: 600px) {
#homeImage{
float: none;
}
#content{
padding-left: 10px;
padding-right: 10px;
}
#blog{
flex-direction: column;
}
article {
margin-bottom: 10px;
margin-right: 0;
}
#banner {
a {
display: block;
}
img {
max-width: none;
width: 100%;
}
}
#newestPost{
display: none;
}
.center{
text-align: center;
}

29
scss/_mobile.scss Normal file
View file

@ -0,0 +1,29 @@
@media only screen and (max-width: 600px) {
#homeImage{
float: none;
}
#content{
padding-left: 10px;
padding-right: 10px;
}
#blog{
flex-direction: column;
}
article {
margin-bottom: 10px;
margin-right: 0;
}
#banner {
a {
display: block;
}
img {
max-width: none;
width: 100%;
}
}
#newestPost{
display: none;
}
}

49
scss/cookieinfo.scss Normal file
View file

@ -0,0 +1,49 @@
.cookieinfo{
position: fixed;
left: 0;
right: 0;
height: auto;
min-height: 21px;
z-index: 2147483647;
line-height: 21px;
padding: 8px 18px;
font-family: verdana, arial, sans-serif;
font-size: 14px;
text-align: center;
bottom: 0;
opacity: 1;
background-color: $back-color;
color: $text-color;
}
.cookieinfo-close{
float: right;
display: block;
padding: 5px 8px;
min-width: 100px;
margin-left: 5px;
border-radius: 5px;
cursor: pointer;
background-color: $accent-color;
color: #fff;
text-align: center;
&:HOVER{
background-color: $accent-color-2;
}
}
.cookieinfo-text {
display:block;
padding:5px 0 5px 0;
}
.cookieinfo-link{
text-decoration: none;
color: $accent-color;
&:HOVER{
color: $accent-color-2;
}
}

View file

@ -6,4 +6,9 @@
@import "ntp";
@import "prism";
@import "sourcesanspro";
@import "header";
@import "header";
@import "cookieinfo";
@import "comments";
@import "mobile";
@import "footer";
@import "content";