mirror of
https://github.com/marcobiedermann/search-engine-optimization.git
synced 2025-03-03 04:09:16 -05:00
basic styling
This commit is contained in:
parent
fd7e7b611c
commit
a09901226a
@ -6,6 +6,6 @@
|
||||
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
|
||||
<meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">
|
||||
|
||||
<link href="css/main.css">
|
||||
<link rel="stylesheet" href="css/main.css">
|
||||
|
||||
</head>
|
||||
|
@ -7,7 +7,11 @@
|
||||
|
||||
<main class="main">
|
||||
|
||||
{{ content }}
|
||||
<div class="container">
|
||||
|
||||
{{ content }}
|
||||
|
||||
</div>
|
||||
|
||||
</main>
|
||||
|
||||
|
162
_sass/_base.scss
Normal file
162
_sass/_base.scss
Normal file
@ -0,0 +1,162 @@
|
||||
@-ms-viewport {
|
||||
width: device-width;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
|
||||
&:before,
|
||||
&:after {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
-moz-::selection,
|
||||
::selection {
|
||||
background: $color;
|
||||
color: $color-bg;
|
||||
text-shadow: none;
|
||||
}
|
||||
|
||||
html {
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
-webkit-text-size-adjust: 100%;
|
||||
-ms-text-size-adjust: 100%;
|
||||
font-size: $root-font-size;
|
||||
height: 100%;
|
||||
text-rendering: optimizeLegibility;
|
||||
}
|
||||
|
||||
body {
|
||||
background: $color-bg;
|
||||
color: $color;
|
||||
font: $font-weight #{$font-size}/#{$line-height} $font-family, $font-family-fallback;
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
footer,
|
||||
header,{
|
||||
display: block;
|
||||
}
|
||||
|
||||
a {
|
||||
background: transparent;
|
||||
border: 0;
|
||||
color: $color-link;
|
||||
text-decoration: none;
|
||||
transition: background-color .3s, color .3s;
|
||||
|
||||
&:active {
|
||||
color: $color-link-active;
|
||||
}
|
||||
|
||||
&:focus,
|
||||
&:hover {
|
||||
color: $color-link-hover;
|
||||
}
|
||||
|
||||
&:focus {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
em {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
b,
|
||||
strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
blockquote {
|
||||
margin: 0;
|
||||
quotes: '\201C' '\201D' '\2018' '\2019';
|
||||
|
||||
p {
|
||||
|
||||
&:before {
|
||||
content: open-quote;
|
||||
}
|
||||
|
||||
&:after {
|
||||
content: close-quote;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: $font-family-code, $font-family-code-fallback;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
footer {
|
||||
display: block;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
hr {
|
||||
background-color: $color-border;
|
||||
border: 0;
|
||||
box-sizing: content-box;
|
||||
height: 1px;
|
||||
margin: 0 0 1.5rem;
|
||||
}
|
||||
|
||||
img {
|
||||
display: block;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
ol,
|
||||
ul {
|
||||
list-style-position: inside;
|
||||
margin: 0 0 1.5rem;
|
||||
padding: 0;
|
||||
|
||||
ol,
|
||||
ul {
|
||||
margin: .5rem 0 0;
|
||||
padding-left: 1.5rem;
|
||||
}
|
||||
|
||||
li {
|
||||
margin-bottom: .5rem;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 0 0 .5rem;
|
||||
}
|
||||
|
||||
pre {
|
||||
display: block;
|
||||
margin: 0;
|
||||
overflow: auto;
|
||||
word-break: break-all;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
text-align: left;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
caption,
|
||||
td,
|
||||
th {
|
||||
padding: 0;
|
||||
vertical-align: top;
|
||||
}
|
19
_sass/_colors.scss
Normal file
19
_sass/_colors.scss
Normal file
@ -0,0 +1,19 @@
|
||||
// Base
|
||||
|
||||
$color: #111;
|
||||
$color-bg: #fdfdfd;
|
||||
|
||||
$color-headings: #686868;
|
||||
|
||||
// Links
|
||||
|
||||
$color-link: #2980b9;
|
||||
$color-link-active: lighten($color-link, 10%);
|
||||
$color-link-hover: darken($color-link, 10%);
|
||||
|
||||
$color-outline: $color-link;
|
||||
|
||||
// Border
|
||||
|
||||
$color-border: #808080;
|
||||
$color-border-hover: darken($color-border, 20%);
|
12
_sass/_variables.scss
Normal file
12
_sass/_variables.scss
Normal file
@ -0,0 +1,12 @@
|
||||
$root-font-size: 100%;
|
||||
$font-family: Arial;
|
||||
$font-family-fallback: sans-serif;
|
||||
$font-size: 1rem;
|
||||
$font-weight: 400;
|
||||
|
||||
$line-height: 1.5em;
|
||||
|
||||
$font-family-code: 'Courier New';
|
||||
$font-family-code-fallback: monospace;
|
||||
|
||||
$grid-container: 48rem;
|
5
_sass/helpers/_grid.scss
Normal file
5
_sass/helpers/_grid.scss
Normal file
@ -0,0 +1,5 @@
|
||||
.container {
|
||||
margin: 0 auto;
|
||||
max-width: $grid-container;
|
||||
width: 90%;
|
||||
}
|
@ -1,3 +1,10 @@
|
||||
---
|
||||
# Stylesheet
|
||||
---
|
||||
|
||||
@import '_variables.scss';
|
||||
@import '_colors.scss';
|
||||
|
||||
@import '_base.scss';
|
||||
|
||||
@import 'helpers/_grid.scss';
|
||||
|
Loading…
x
Reference in New Issue
Block a user