diff --git a/public/internal/footer.php b/public/internal/footer.php index 3e745722c187c38521f8add1e8c488de6f0fce80..59ba39d44d39b4e286d1ad6fffce18f12e149d48 100644 --- a/public/internal/footer.php +++ b/public/internal/footer.php @@ -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> diff --git a/scss/_comments.scss b/scss/_comments.scss new file mode 100644 index 0000000000000000000000000000000000000000..d4042787fea90383e7a3bc54736baa0a2da06818 --- /dev/null +++ b/scss/_comments.scss @@ -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; +} diff --git a/scss/_content.scss b/scss/_content.scss new file mode 100644 index 0000000000000000000000000000000000000000..8767c6eab6bb9d623f190084065cdd81a661afd3 --- /dev/null +++ b/scss/_content.scss @@ -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; +} \ No newline at end of file diff --git a/scss/_footer.scss b/scss/_footer.scss new file mode 100644 index 0000000000000000000000000000000000000000..030a4d83eb759dc6987e0043d5685f3993a05030 --- /dev/null +++ b/scss/_footer.scss @@ -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; +} diff --git a/scss/_general.scss b/scss/_general.scss index 53f64787c423d0f8d15ed98fb972f8c418c649bf..8870868f75a3acc6f746d61df1054b9abdd5b64a 100644 --- a/scss/_general.scss +++ b/scss/_general.scss @@ -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; - } - } - } -} - -.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; +.red { + color: red; } -@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; } \ No newline at end of file diff --git a/scss/_mobile.scss b/scss/_mobile.scss new file mode 100644 index 0000000000000000000000000000000000000000..4b78bb44724cc826773f00b1453dd75f3f03e863 --- /dev/null +++ b/scss/_mobile.scss @@ -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; + } +} \ No newline at end of file diff --git a/scss/cookieinfo.scss b/scss/cookieinfo.scss new file mode 100644 index 0000000000000000000000000000000000000000..25290eb34a31665ab57a3b029ac013db1d394871 --- /dev/null +++ b/scss/cookieinfo.scss @@ -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; + } +} \ No newline at end of file diff --git a/scss/style.scss b/scss/style.scss index 2be302ce88e902cd1042278c2ad3fd69c7ac7099..75c1495defe72502cb8b2610ec033870d3b31939 100644 --- a/scss/style.scss +++ b/scss/style.scss @@ -6,4 +6,9 @@ @import "ntp"; @import "prism"; @import "sourcesanspro"; -@import "header"; \ No newline at end of file +@import "header"; +@import "cookieinfo"; +@import "comments"; +@import "mobile"; +@import "footer"; +@import "content"; \ No newline at end of file