git push wip
This commit is contained in:
47
assets/sass/_global.scss
Normal file
47
assets/sass/_global.scss
Normal file
@ -0,0 +1,47 @@
|
||||
@import "./utils/variables";
|
||||
|
||||
body {
|
||||
font-family: $fontParagraph;
|
||||
color: $white;
|
||||
background-color: $backgroundDark;
|
||||
margin: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
a {
|
||||
color: $blue;
|
||||
|
||||
&:hover {
|
||||
color: #fff
|
||||
}
|
||||
|
||||
&:after {
|
||||
color: $lightblue
|
||||
}
|
||||
}
|
||||
|
||||
pre code {
|
||||
font-family: $fontCode;
|
||||
font-size: 75%;
|
||||
display: block;
|
||||
background: $backgroundDarker;
|
||||
padding: 10px;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: $fontCode;
|
||||
font-size: 75%;
|
||||
}
|
||||
|
||||
@for $i from 1 through 6 {
|
||||
h#{$i} {
|
||||
font-family: $fontHeader;
|
||||
}
|
||||
}
|
||||
|
||||
@-ms-viewport{
|
||||
width: device-width;
|
||||
}
|
23
assets/sass/components/_footer.scss
Normal file
23
assets/sass/components/_footer.scss
Normal file
@ -0,0 +1,23 @@
|
||||
@import "../utils/variables";
|
||||
|
||||
.footer {
|
||||
padding: 15px;
|
||||
text-align: center;
|
||||
background-color: $backgroundDarker;
|
||||
max-height: 1em;
|
||||
}
|
||||
|
||||
.footerText {
|
||||
display: flex;
|
||||
margin: 0 auto;
|
||||
justify-content: space-between;
|
||||
max-width: $width;
|
||||
overflow: hidden;
|
||||
text-overflow: clip;
|
||||
font-size: 0.9em;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.footerLink {
|
||||
color: $white;
|
||||
}
|
137
assets/sass/components/_header.scss
Normal file
137
assets/sass/components/_header.scss
Normal file
@ -0,0 +1,137 @@
|
||||
@import "../utils/variables";
|
||||
|
||||
.header {
|
||||
font-family: $fontHeader;
|
||||
padding: 0 20px;
|
||||
height: 60px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
width: $width;
|
||||
}
|
||||
|
||||
.headerWrapper {
|
||||
overflow: auto;
|
||||
box-sizing: border-box;
|
||||
background-color: $backgroundDarker;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.headerLinks {
|
||||
ul {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
li {
|
||||
display: inline;
|
||||
margin: 5px;
|
||||
a {
|
||||
color: $white;
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.terminal {
|
||||
color: $white;
|
||||
text-decoration: none;
|
||||
display: flex;
|
||||
gap: 2px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.terminal::after {
|
||||
content: "";
|
||||
width: 5px;
|
||||
height: 15px;
|
||||
background: #fff;
|
||||
display: inline-block;
|
||||
animation: blinker 1.085s steps(2) infinite;
|
||||
}
|
||||
|
||||
@keyframes blinker {
|
||||
0% {
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.hamb {
|
||||
cursor: pointer;
|
||||
float: right;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.hamb-line {
|
||||
background: $white;
|
||||
display: block;
|
||||
height: 2px;
|
||||
position: relative;
|
||||
width: 24px;
|
||||
} /* Style span tag */
|
||||
|
||||
.hamb-line::before,
|
||||
.hamb-line::after {
|
||||
background: $white;
|
||||
content: "";
|
||||
display: block;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
transition: all 0.2s ease-out;
|
||||
width: 100%;
|
||||
}
|
||||
.hamb-line::before {
|
||||
top: 5px;
|
||||
}
|
||||
.hamb-line::after {
|
||||
top: -5px;
|
||||
}
|
||||
|
||||
.side-menu {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.side-menu:checked ~ .headerLinks {
|
||||
max-height: 100%;
|
||||
}
|
||||
.side-menu:checked ~ .hamb .hamb-line {
|
||||
background: transparent;
|
||||
}
|
||||
.side-menu:checked ~ .hamb .hamb-line::before {
|
||||
transform: rotate(-45deg);
|
||||
top: 0;
|
||||
}
|
||||
.side-menu:checked ~ .hamb .hamb-line::after {
|
||||
transform: rotate(45deg);
|
||||
top: 0;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 768px) {
|
||||
.headerLinks {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: fixed;
|
||||
top: 60px;
|
||||
left: 0;
|
||||
background-color: $backgroundDark;
|
||||
overflow: hidden;
|
||||
max-height: 0;
|
||||
transition: max-height 0.5s ease-out;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
ul {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
}
|
||||
|
||||
.hamb {
|
||||
display: block;
|
||||
}
|
||||
}
|
52
assets/sass/components/_post.scss
Normal file
52
assets/sass/components/_post.scss
Normal file
@ -0,0 +1,52 @@
|
||||
@import "../utils/variables";
|
||||
|
||||
.postDate {
|
||||
float: right;
|
||||
color: $white;
|
||||
}
|
||||
|
||||
.postTitle {
|
||||
color: $blue;
|
||||
text-decoration: none;
|
||||
text-transform: capitalize;
|
||||
font-family: $fontHeader;
|
||||
font-size: 1.2em;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.postHeader {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.postsList {
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.postListItem {
|
||||
padding: 20px;
|
||||
background-color: $black;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.postExcerpt {
|
||||
text-align: initial;
|
||||
text-decoration: none;
|
||||
color: $white;
|
||||
}
|
||||
|
||||
.headerContainer {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.noDecoration {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a,
|
||||
a:link,
|
||||
a:visited,
|
||||
a:hover,
|
||||
a:active{
|
||||
text-decoration: none;
|
||||
}
|
19
assets/sass/components/_social.scss
Normal file
19
assets/sass/components/_social.scss
Normal file
@ -0,0 +1,19 @@
|
||||
@import "../utils/variables";
|
||||
|
||||
|
||||
.socialNavbar {
|
||||
ul {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
li {
|
||||
display: inline;
|
||||
}
|
||||
}
|
||||
a {
|
||||
color: $white;
|
||||
text-shadow: $black 0px 0px 2px;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
display: inline-block;
|
||||
margin: 10px;
|
||||
}
|
||||
}
|
17
assets/sass/main.scss
Normal file
17
assets/sass/main.scss
Normal file
@ -0,0 +1,17 @@
|
||||
@import "./global";
|
||||
|
||||
// utils
|
||||
@import "./utils/variables";
|
||||
@import "./utils/fonts";
|
||||
|
||||
// components
|
||||
@import "./components/footer";
|
||||
@import "./components/header";
|
||||
@import "./components/post";
|
||||
@import "./components/social";
|
||||
|
||||
// pages
|
||||
@import "./pages/single";
|
||||
@import "./pages/list";
|
||||
@import "./pages/index";
|
||||
@import "./pages/baseof";
|
31
assets/sass/pages/_baseof.scss
Normal file
31
assets/sass/pages/_baseof.scss
Normal file
@ -0,0 +1,31 @@
|
||||
@import "../utils/variables";
|
||||
|
||||
.content {
|
||||
text-align: center;
|
||||
margin: 0 auto;
|
||||
flex: 1 auto;
|
||||
padding: 20px;
|
||||
|
||||
@media only screen and (min-width: $breakLarge) {
|
||||
display: flex;
|
||||
width: $width;
|
||||
}
|
||||
}
|
||||
|
||||
.vertical {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.flexWrapper {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
.main {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
9
assets/sass/pages/_index.scss
Normal file
9
assets/sass/pages/_index.scss
Normal file
@ -0,0 +1,9 @@
|
||||
.indexWrapper {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.indexHeader {
|
||||
font-size: 3em;
|
||||
}
|
5
assets/sass/pages/_list.scss
Normal file
5
assets/sass/pages/_list.scss
Normal file
@ -0,0 +1,5 @@
|
||||
@import "../utils/variables";
|
||||
|
||||
.listHeader, .listContent {
|
||||
text-align: left;
|
||||
}
|
5
assets/sass/pages/_single.scss
Normal file
5
assets/sass/pages/_single.scss
Normal file
@ -0,0 +1,5 @@
|
||||
@import "../utils/variables";
|
||||
|
||||
.postWrapper {
|
||||
text-align: left;
|
||||
}
|
19
assets/sass/utils/_fonts.scss
Normal file
19
assets/sass/utils/_fonts.scss
Normal file
@ -0,0 +1,19 @@
|
||||
@font-face {
|
||||
font-family: 'Blogger Sans';
|
||||
src: url('../fonts/BloggerSans/BloggerSans-Regular.woff2');
|
||||
src: local('Blogger Sans'),
|
||||
url('../fonts/BloggerSans/BloggerSans-Regular.woff2') format('woff2');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'M+ 1m';
|
||||
src: url('../fonts/MPlus-1m/MPlus-1m-Regular.woff2');
|
||||
src: local('M+ 1m'),
|
||||
url('../fonts/MPlus-1m/MPlus-1m-Regular.woff2') format('woff2');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
18
assets/sass/utils/_variables.scss
Normal file
18
assets/sass/utils/_variables.scss
Normal file
@ -0,0 +1,18 @@
|
||||
// Colors
|
||||
$darkGrey: #4C4D4D;
|
||||
$white: #C8E9EE;
|
||||
$black: #070809;
|
||||
$blue: #0F7491;
|
||||
$lightblue: #40C2D7;
|
||||
|
||||
$backgroundDarker: #070809;
|
||||
$backgroundDark: #101111;
|
||||
|
||||
//Fonts
|
||||
$fontHeader: 'M+ 1m', monospace;
|
||||
$fontParagraph: 'Blogger Sans', sans-serif;
|
||||
$fontCode: 'M+ 1m', monospace;
|
||||
|
||||
// Content
|
||||
$breakLarge: 992px;
|
||||
$width: 760px;
|
Reference in New Issue
Block a user