chore: first broken attempt at adding mod scaling

This commit is contained in:
Kazhnuz 2019-10-16 14:23:38 +02:00
parent 551d9b5e49
commit af3633ca84
21 changed files with 342 additions and 198 deletions

View file

@ -13,6 +13,8 @@
<link rel="shortcut icon" href="img/favicon.png"> <link rel="shortcut icon" href="img/favicon.png">
<!-- framework utilisés --> <!-- framework utilisés -->
<link href="https://fonts.googleapis.com/css?family=Amatic+SC&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Work+Sans&display=swap" rel="stylesheet">
<link href="css/spectre.min.css" rel="stylesheet"> <link href="css/spectre.min.css" rel="stylesheet">
<link href="css/fork-awesome.css" rel="stylesheet"> <link href="css/fork-awesome.css" rel="stylesheet">

View file

@ -242,12 +242,17 @@ blockquote, pre {
} }
/* 2.2 - Global Typography */ /* 2.2 - Global Typography */
body { body {
font-family: OpenSans, sans-serif; font-family: Work Sans, WorkSans, sans-serif;
text-align: left; text-align: left;
font-size: 4.5mm; font-size: 4.75mm;
line-height: 1.5em; line-height: 1.55em;
color: #073642; color: #073642;
font-weight: 400; font-weight: 300;
}
body, body #wrapper {
background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.25) 0, rgba(255, 255, 255, 0) 1px);
background-repeat: repeat-y;
background-size: 100% 7.3625mm;
} }
.night-mode { .night-mode {
@ -260,6 +265,7 @@ strong {
em { em {
font-style: italic; font-style: italic;
font-weight: 300;
} }
a { a {
@ -272,35 +278,26 @@ a:hover, a:active {
p { p {
padding: 0; padding: 0;
padding-bottom: 1.5em; padding-bottom: 1.55em;
margin: 0; margin: 0;
} }
p:last-child { p:last-child {
padding-bottom: 0; padding-bottom: 0;
} }
ul { ul, ol {
padding: 0; padding: 0;
padding-bottom: 1.5em; padding-bottom: 1.55em;
margin: 0; margin: 0;
} }
ul ul { ul ul, ul ol, ol ul, ol ol {
padding-bottom: 0; padding-bottom: 0;
}
ul li {
margin-left: 1.5em;
}
ol {
padding: 0;
padding-bottom: 1.5em;
margin: 0; margin: 0;
} }
ol ol { ul li, ol li {
padding-bottom: 0; margin: 0;
} margin-left: 1.55em;
ol li { line-height: 1.55em;
margin-left: 1.5em;
} }
::selection { ::selection {
@ -314,60 +311,47 @@ ol li {
} }
/* 2.2 - Text Wrapper */ /* 2.2 - Text Wrapper */
.article-content { .container-typographic p, .container-typographic em, .container-typographic p em {
font-size: calc(4mm + 0.4vw);
line-height: 1.5em;
padding: 1em;
font-weight: 300; font-weight: 300;
} }
.article-content p, .article-content em, .article-content p em { .container-typographic img {
font-weight: 300;
}
.article-content img {
max-width: 100%; max-width: 100%;
height: auto; height: auto;
} }
.article-content .article-thumbnail { .container-typographic .article-thumbnail {
padding-bottom: 1em; padding-bottom: 1em;
text-align: center; text-align: center;
} }
.article-content .article-thumbnail img { .container-typographic .article-thumbnail img {
max-width: 100%; max-width: 100%;
height: auto; height: auto;
} }
.article-content .article-excerpt { .container-typographic .article-excerpt {
padding: 0.5em 0.5em 0.5em 0.5em; padding: 0.5em 0.5em 0.5em 0.5em;
font-style: italic; font-style: italic;
font-size: calc(3.5mm + 0.4vw);
} }
.article-content .article-author { .container-typographic .article-author {
margin: 0; margin: 0;
padding: 0; padding: 0;
} }
.article-content .article-author .card-meta { .container-typographic .article-author .card-meta {
margin: 0; margin: 0;
} }
.article-content .bypass-flex-fontsize { .container-typographic .bypass-flex-fontsize {
font-size: 4mm; line-height: 1.55em;
line-height: 1.5em;
} }
/* 2.3 - Titles */ /* 2.3 - Titles */
h1, h2, h3, h4, h5, h6, h7 { h1, h2, h3, h4, h5, h6, h7 {
font-family: OpenSans; font-family: Amatic SC;
text-align: left; text-align: left;
font-size: 1em; font-size: 1em;
line-height: 1.5em;
padding: 0; padding: 0;
margin: 0; margin: 0;
font-weight: 400; font-weight: 400;
} }
h1.page-title, h2.page-title, h3.page-title, h4.page-title, h5.page-title, h6.page-title, h7.page-title { h1.page-title, h2.page-title, h3.page-title, h4.page-title, h5.page-title, h6.page-title, h7.page-title {
font-family: OpenSans;
color: #6c71c4; color: #6c71c4;
font-weight: 300;
margin-bottom: 0.5em;
padding: 0;
} }
h1.page-title i, h2.page-title i, h3.page-title i, h4.page-title i, h5.page-title i, h6.page-title i, h7.page-title i { h1.page-title i, h2.page-title i, h3.page-title i, h4.page-title i, h5.page-title i, h6.page-title i, h7.page-title i {
font-size: 0.55em; font-size: 0.55em;
@ -390,45 +374,57 @@ h1.page-title-flex > a:hover, h1.page-title-flex > a:focus, h1.page-title-flex >
} }
h1 { h1 {
font-size: 3em; font-family: Amatic SC;
line-height: 1em; font-size: 15.8175mm;
padding: 0.5em 0 0.6em 0; line-height: 1.3963963964em;
padding: 0;
padding-bottom: 0.4654654655em;
font-weight: 200; font-weight: 200;
} }
h2 { h2 {
font-size: 2em; font-family: Amatic SC;
line-height: 1.5em; font-size: 12.94375mm;
padding: 0.333333em 0 0.4em 0; line-height: 1.1376146789em;
font-weight: 700; padding: 0;
padding-bottom: 0.5688073394em;
font-weight: 200;
} }
h3 { h3 {
font-size: 1.5em; font-family: Work Sans;
line-height: 1em; font-size: 10.5925mm;
padding: 0em 0 1em 0; line-height: 1.3901345291em;
font-weight: 700; padding: 0;
padding-bottom: 0.6950672646em;
font-weight: 500;
} }
h4 { h4 {
font-size: 1.5em; font-family: Work Sans;
line-height: 1em; font-size: 8.66875mm;
padding: 0em 0 1em 0; line-height: 1.698630137em;
font-weight: 600; padding: 0;
padding-bottom: 0.8493150685em;
font-weight: 500;
} }
h5 { h5 {
font-size: 1.333333em; font-family: Work Sans;
line-height: 1em; font-size: 6.83525mm;
padding: 0.1em 0 1.133333em 0; line-height: 1.0771369006em;
font-weight: 600; padding: 0;
padding-bottom: 1.0771369006em;
font-weight: 500;
} }
h6 { h6 {
font-size: 1.1em; font-family: Work Sans;
line-height: 1.4em; font-size: 5.8045mm;
padding: 0.1em 0 1.2em 0; line-height: 1.2684124386em;
font-weight: 600; padding: 0;
padding-bottom: 1.2684124386em;
font-weight: 800;
} }
/* 2.4 - hr */ /* 2.4 - hr */
@ -447,7 +443,7 @@ blockquote, .quote, .well {
border-width: 0 0 0 0em; border-width: 0 0 0 0em;
border-style: none; border-style: none;
border-radius: 0px; border-radius: 0px;
margin: -0.75em -0.2em 0.75em -0.2em; margin: 0.75em -0.325em 0.75em -0.325em;
padding: 0.75em 1em 0.75em 1em; padding: 0.75em 1em 0.75em 1em;
max-width: 100%; max-width: 100%;
background-color: #eee8d5; background-color: #eee8d5;
@ -459,7 +455,7 @@ pre, .pre, .well-pre {
border-width: 0 0 0 0em; border-width: 0 0 0 0em;
border-style: none; border-style: none;
border-radius: 0px; border-radius: 0px;
margin: -0.75em -0.2em 0.75em -0.2em; margin: 0.75em -0.325em 0.75em -0.325em;
padding: 0.75em 1em 0.75em 1em; padding: 0.75em 1em 0.75em 1em;
max-width: 100%; max-width: 100%;
background-color: #eee8d5; background-color: #eee8d5;
@ -472,6 +468,11 @@ code {
color: #dc322f; color: #dc322f;
} }
.container-typographic {
max-width: 800px;
margin: auto;
}
/* 2.6 - Special styling */ /* 2.6 - Special styling */
mark { mark {
border-radius: 0.2em; border-radius: 0.2em;
@ -573,8 +574,11 @@ mark {
/* ------------------ HEADERS ------------------- */ /* ------------------ HEADERS ------------------- */
#page-header { #page-header {
background: #2aa198 url("../img/background.png") center bottom repeat-x; background: #2aa198 url("../img/background.png") center bottom repeat-x;
height: 350px; height: 22.5em;
border-top: 6px solid #073642; border-top: 6px solid #073642;
background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.25) 0, rgba(255, 255, 255, 0) 1px);
background-repeat: repeat-y;
background-size: 100% 1.5em;
} }
#page-header .columns { #page-header .columns {
max-width: 1024px; max-width: 1024px;
@ -596,7 +600,7 @@ header h1 {
.navbar { .navbar {
border-left: 0; border-left: 0;
border-right: 0; border-right: 0;
padding: 1em; padding: 0.75em;
color: #fdf6e3; color: #fdf6e3;
} }
.navbar a { .navbar a {
@ -671,8 +675,9 @@ ul.social li a:hover {
background-color: #eee8d5; background-color: #eee8d5;
box-shadow: 0px 2px 10px rgba(0, 0, 0, 0); box-shadow: 0px 2px 10px rgba(0, 0, 0, 0);
border: none; border: none;
margin-bottom: 1.2em; margin: 0;
padding: 1em; margin-bottom: 1.5em;
padding: 1.5em;
} }
.card .card-body { .card .card-body {
padding: 0; padding: 0;
@ -684,9 +689,9 @@ ul.social li a:hover {
font-size: 1.1em; font-size: 1.1em;
font-weight: 600; font-weight: 600;
border-radius: 0; border-radius: 0;
padding: 0.5em; padding: 0.75em;
padding-bottom: 0.5em !important; padding-bottom: 0.75em !important;
margin-left: -2em; margin-left: -3em;
} }
.card-header h1, .card-header h2, .card-header h3, .card-header h4, .card-header h5, .card-header h6, .card-header h7, .card-header h8, .card-header h9, .card-header h10 { .card-header h1, .card-header h2, .card-header h3, .card-header h4, .card-header h5, .card-header h6, .card-header h7, .card-header h8, .card-header h9, .card-header h10 {
font-size: 1em; font-size: 1em;
@ -703,16 +708,17 @@ ul.social li a:hover {
background-color: #eee8d5; background-color: #eee8d5;
box-shadow: 0px 2px 10px rgba(0, 0, 0, 0); box-shadow: 0px 2px 10px rgba(0, 0, 0, 0);
border: none; border: none;
margin-bottom: 1.2em; margin: 0;
padding: 0.66em; margin-bottom: 1.5em;
padding: 0.75em;
} }
.smallcard-header, .toast-header, .menu-header { .smallcard-header, .toast-header, .menu-header {
font-size: 1.1em; font-size: 1.1em;
font-weight: 600; font-weight: 600;
border-radius: 0; border-radius: 0;
padding: 0.5em; padding: 0.75em;
padding-bottom: 0.5em !important; padding-bottom: 0.75em !important;
margin-left: -2em; margin-left: -3em;
} }
.smallcard-header h1, .smallcard-header h2, .smallcard-header h3, .smallcard-header h4, .smallcard-header h5, .smallcard-header h6, .smallcard-header h7, .smallcard-header h8, .smallcard-header h9, .smallcard-header h10, .toast-header h1, .toast-header h2, .toast-header h3, .toast-header h4, .toast-header h5, .toast-header h6, .toast-header h7, .toast-header h8, .toast-header h9, .toast-header h10, .menu-header h1, .menu-header h2, .menu-header h3, .menu-header h4, .menu-header h5, .menu-header h6, .menu-header h7, .menu-header h8, .menu-header h9, .menu-header h10 { .smallcard-header h1, .smallcard-header h2, .smallcard-header h3, .smallcard-header h4, .smallcard-header h5, .smallcard-header h6, .smallcard-header h7, .smallcard-header h8, .smallcard-header h9, .smallcard-header h10, .toast-header h1, .toast-header h2, .toast-header h3, .toast-header h4, .toast-header h5, .toast-header h6, .toast-header h7, .toast-header h8, .toast-header h9, .toast-header h10, .menu-header h1, .menu-header h2, .menu-header h3, .menu-header h4, .menu-header h5, .menu-header h6, .menu-header h7, .menu-header h8, .menu-header h9, .menu-header h10 {
font-size: 1em; font-size: 1em;
@ -903,11 +909,12 @@ ul.social li a:hover {
* *
*/ */
.btn { .btn {
padding: 1em; padding: 1.5em;
padding-top: 0.5em; padding-top: 0.75em;
padding-bottom: 0.5em; padding-bottom: 0.75em;
height: auto; height: auto;
margin: 0.6666666667em; margin: 0.75em;
margin-bottom: 1em;
border: 0px solid rgba(0, 0, 0, 0.3); border: 0px solid rgba(0, 0, 0, 0.3);
border-radius: 0px 0px 0px 0px; border-radius: 0px 0px 0px 0px;
position: relative; position: relative;
@ -922,8 +929,8 @@ ul.social li a:hover {
content: " "; content: " ";
position: absolute; position: absolute;
top: 0; top: 0;
left: -0.6666666667em; left: -0.75em;
right: -0.6666666667em; right: -0.75em;
bottom: 0; bottom: 0;
z-index: -1; z-index: -1;
transform: skewX(-15deg); transform: skewX(-15deg);
@ -941,11 +948,12 @@ ul.social li a:hover {
} }
.label, label.label, a.label, .chip, a.chip { .label, label.label, a.label, .chip, a.chip {
padding: 0.4em; padding: 0.375em;
padding-top: 0.2em; padding-top: 0.1875em;
padding-bottom: 0.2em; padding-bottom: 0.1875em;
height: auto; height: auto;
margin: 0.2666666667em; margin: 0.1875em;
margin-bottom: 0.25em;
border: 0px solid rgba(0, 0, 0, 0.3); border: 0px solid rgba(0, 0, 0, 0.3);
border-radius: 0px 0px 0px 0px; border-radius: 0px 0px 0px 0px;
position: relative; position: relative;
@ -959,8 +967,8 @@ ul.social li a:hover {
content: " "; content: " ";
position: absolute; position: absolute;
top: 0; top: 0;
left: -0.2666666667em; left: -0.1875em;
right: -0.2666666667em; right: -0.1875em;
bottom: 0; bottom: 0;
z-index: -1; z-index: -1;
transform: skewX(-15deg); transform: skewX(-15deg);
@ -988,7 +996,7 @@ ul.social li a:hover {
} }
.btn-toolbar { .btn-toolbar {
padding: 0 1em; padding: 0 1.5em;
} }
.btn-group { .btn-group {
@ -998,49 +1006,38 @@ ul.social li a:hover {
} }
.btn-group .btn { .btn-group .btn {
margin: 0 0.6166666667em 0 0.6166666667em !important; margin: 0 0.95em 0 0.95em !important;
} }
/* ------------------ BREADCRUMB ------------------- */ /* ------------------ BREADCRUMB ------------------- */
ul.breadcrumb, ol.breadcrumb, .breadcrumb { ul.breadcrumb, ol.breadcrumb, .breadcrumb {
position: relative; padding-top: 0em;
z-index: 1;
overflow: visible;
padding: 0px;
background-color: transparent; background-color: transparent;
margin-bottom: 1.33em; margin: 0;
} padding-bottom: 1.5em;
ul.breadcrumb:before, ol.breadcrumb:before, .breadcrumb:before {
content: " ";
position: absolute;
top: 0;
left: -0.6666666667em;
right: -0.6666666667em;
bottom: 0;
z-index: -1;
transform: skewX(-15deg);
} }
.breadcrumb li.breadcrumb-item { .breadcrumb li.breadcrumb-item {
margin: 0 !important; padding: 0;
padding: 0 !important;
} }
.breadcrumb li.breadcrumb-item:before { .breadcrumb li.breadcrumb-item:before {
display: none; display: none;
} }
.breadcrumb li.breadcrumb-item a, .breadcrumb li.breadcrumb-item span { .breadcrumb li.breadcrumb-item a, .breadcrumb li.breadcrumb-item span {
padding: 1em; display: inline-block;
padding-top: 0.5em; padding: 1.5em;
padding-bottom: 0.5em; padding-top: 0.75em;
padding-bottom: 0.75em;
height: auto; height: auto;
margin: 0.6666666667em; margin: 0.75em;
margin-bottom: 1em;
border: 0px solid rgba(0, 0, 0, 0.3); border: 0px solid rgba(0, 0, 0, 0.3);
border-radius: 0px 0px 0px 0px; border-radius: 0px 0px 0px 0px;
position: relative; position: relative;
z-index: 1; z-index: 1;
overflow: visible; overflow: visible;
color: #073642; color: #073642;
margin: 0 0.6666666667em 0 0.6666666667em !important; margin: 0 0.6em 0 0.6em;
} }
.breadcrumb li.breadcrumb-item a:hover, .breadcrumb li.breadcrumb-item a:active, .breadcrumb li.breadcrumb-item a:focus, a:hover > .breadcrumb li.breadcrumb-item a, a:active > .breadcrumb li.breadcrumb-item a, a:focus > .breadcrumb li.breadcrumb-item a, .breadcrumb li.breadcrumb-item span:hover, .breadcrumb li.breadcrumb-item span:active, .breadcrumb li.breadcrumb-item span:focus, a:hover > .breadcrumb li.breadcrumb-item span, a:active > .breadcrumb li.breadcrumb-item span, a:focus > .breadcrumb li.breadcrumb-item span { .breadcrumb li.breadcrumb-item a:hover, .breadcrumb li.breadcrumb-item a:active, .breadcrumb li.breadcrumb-item a:focus, a:hover > .breadcrumb li.breadcrumb-item a, a:active > .breadcrumb li.breadcrumb-item a, a:focus > .breadcrumb li.breadcrumb-item a, .breadcrumb li.breadcrumb-item span:hover, .breadcrumb li.breadcrumb-item span:active, .breadcrumb li.breadcrumb-item span:focus, a:hover > .breadcrumb li.breadcrumb-item span, a:active > .breadcrumb li.breadcrumb-item span, a:focus > .breadcrumb li.breadcrumb-item span {
text-decoration: none; text-decoration: none;
@ -1049,8 +1046,8 @@ ul.breadcrumb:before, ol.breadcrumb:before, .breadcrumb:before {
content: " "; content: " ";
position: absolute; position: absolute;
top: 0; top: 0;
left: -0.6666666667em; left: -0.75em;
right: -0.6666666667em; right: -0.75em;
bottom: 0; bottom: 0;
z-index: -1; z-index: -1;
transform: skewX(-15deg); transform: skewX(-15deg);

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -13,6 +13,8 @@
<link rel="shortcut icon" href="img/favicon.png"> <link rel="shortcut icon" href="img/favicon.png">
<!-- framework utilisés --> <!-- framework utilisés -->
<link href="https://fonts.googleapis.com/css?family=Amatic+SC&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Work+Sans&display=swap" rel="stylesheet">
<link href="css/spectre.min.css" rel="stylesheet"> <link href="css/spectre.min.css" rel="stylesheet">
<link href="css/fork-awesome.css" rel="stylesheet"> <link href="css/fork-awesome.css" rel="stylesheet">
@ -77,7 +79,7 @@
<p class="align-center"><a href="#" class="btn btn-warning">Télécharger ce thème</a></p> <p class="align-center"><a href="#" class="btn btn-warning">Télécharger ce thème</a></p>
<h2>Contenu : Lorem Ipsum</h2> <h2>Contenu : Lorem Ipsum. Ceci est un titre long afin de tester comment la longueur d'un titre peut poser soucis d'un point de vue de l'alignement vertical.</h2>
<h3>Titre de niveau 3</h3> <h3>Titre de niveau 3</h3>
<h4>Titre de niveau 4</h4> <h4>Titre de niveau 4</h4>

View file

@ -13,6 +13,8 @@
<link rel="shortcut icon" href="img/favicon.png"> <link rel="shortcut icon" href="img/favicon.png">
<!-- framework utilisés --> <!-- framework utilisés -->
<link href="https://fonts.googleapis.com/css?family=Amatic+SC&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Work+Sans&display=swap" rel="stylesheet">
<link href="css/spectre.min.css" rel="stylesheet"> <link href="css/spectre.min.css" rel="stylesheet">
<link href="css/fork-awesome.css" rel="stylesheet"> <link href="css/fork-awesome.css" rel="stylesheet">

View file

@ -7,8 +7,8 @@
$color-button-light: $color-light; $color-button-light: $color-light;
$color-button-dark: $color-dark; $color-button-dark: $color-dark;
$button_large: 1em; $button_large: 1.5em;
$button_small: 0.40em; $button_small: 0.375em;
@mixin biseau($size) { @mixin biseau($size) {
position: relative; position: relative;
@ -19,8 +19,8 @@ $button_small: 0.40em;
content: " "; content: " ";
position: absolute; position: absolute;
top:0; top:0;
left:-$size/1.5; left:-$size/2;
right:-$size/1.5; right:-$size/2;
bottom:0; bottom:0;
z-index:-1; z-index:-1;
transform: skewX(-15deg); transform: skewX(-15deg);
@ -33,7 +33,8 @@ $button_small: 0.40em;
padding-top: $size/2; padding-top: $size/2;
padding-bottom:$size/2; padding-bottom:$size/2;
height:auto; height:auto;
margin: $size/1.5; margin: $size/2;
margin-bottom:$size/1.5;
@include borders(); @include borders();
@include border-radius(); @include border-radius();
@ -118,24 +119,23 @@ $grouped-test: $button-large/1.5 - 0.05em ;
/* ------------------ BREADCRUMB ------------------- */ /* ------------------ BREADCRUMB ------------------- */
ul.breadcrumb, ol.breadcrumb, .breadcrumb { ul.breadcrumb, ol.breadcrumb, .breadcrumb {
@include biseau($button-large); padding-top: 0em;
padding: 0px;
background-color:transparent; background-color:transparent;
margin-bottom: 1.33em; margin: 0;
padding-bottom:1.5em;
} }
.breadcrumb li.breadcrumb-item { .breadcrumb li.breadcrumb-item {
margin:0!important; padding:0;
padding:0!important;
&:before { &:before {
display:none; display:none;
} }
a, span { a, span {
display:inline-block;
@include button($button-large); @include button($button-large);
@include button-fullcontrol($color-light2, darken($color-light2, 5%), $color-dark2); @include button-fullcontrol($color-light2, darken($color-light2, 5%), $color-dark2);
margin:0 $button-large/1.5 0 $button-large/1.5!important; margin:0 $button-large/2.5 0 $button-large/2.5;
&:before { &:before {
content: " "!important; content: " "!important;
@ -146,6 +146,7 @@ ul.breadcrumb, ol.breadcrumb, .breadcrumb {
@include button-fullcontrol($color-primary, $color-primary, $color-light); @include button-fullcontrol($color-primary, $color-primary, $color-light);
} }
} }
} }

View file

@ -5,15 +5,16 @@
* *
*/ */
$card-bigpad: 1em; $card-bigpad: 1.5em;
$card-smallpad: 0.66em; $card-smallpad: 0.75em;
@mixin card($size) { @mixin card($size) {
@include border-radius(); @include border-radius();
background-color: $color-light2; background-color: $color-light2;
box-shadow: $large-shadow; box-shadow: $large-shadow;
border: none; border: none;
margin-bottom:1.2em; margin:0;
margin-bottom:1.5em;
padding: $size; padding: $size;
} }

View file

@ -1,7 +1,7 @@
/* 2.1 - Font Face */ /* 2.1 - Font Face */
$basefont: OpenSans, sans-serif; $basefont: Work Sans, WorkSans, sans-serif;
$titlefont: OpenSans, sans-serif; $titlefont: AmaticSC, Open Sans, sans-serif;
/* 2.1.1 - OpenSans */ /* 2.1.1 - OpenSans */

View file

@ -32,9 +32,13 @@
#page-header { #page-header {
background: $color-turquoise url('../img/background.png') center bottom repeat-x; background: $color-turquoise url('../img/background.png') center bottom repeat-x;
height:350px; height:15*1.5em;
border-top: 6px solid $color-dark2; border-top: 6px solid $color-dark2;
@include limitedSize(); @include limitedSize();
background-image: linear-gradient(to bottom, rgba(0,0,0,0.25) 0, rgba(255, 255, 255, 0) 1px);
background-repeat: repeat-y;
background-size: 100% 1.5em;
} }
@ -53,7 +57,7 @@ header h1 {
.navbar { .navbar {
border-left: 0; border-left: 0;
border-right: 0; border-right: 0;
padding: 1em; padding: 0.75em;
color: $color-light; color: $color-light;
a { a {
color: $color-light; color: $color-light;

View file

@ -10,19 +10,28 @@
/* 2.2 - Global Typography */ /* 2.2 - Global Typography */
$baseline: 1.55;
$base_lineheight: $baseline * 1em;
$base_fontsize: 4.75mm;
@mixin paragraph() { @mixin paragraph() {
padding:0; padding:0;
padding-bottom:1.5em; padding-bottom: $base_lineheight;
margin: 0; margin: 0;
} }
body { body {
font-family: $basefont; font-family: $basefont;
text-align: left; text-align: left;
font-size: 4.5mm; font-size: $base_fontsize;
line-height: 1.5em; line-height: $base_lineheight;
color: $color-font; color: $color-font;
font-weight: 400; font-weight: 300;
&, #wrapper {
background-image: linear-gradient(to bottom, rgba(0,0,0,0.25) 0, rgba(255, 255, 255, 0) 1px);
background-repeat: repeat-y;
background-size: 100% $baseline * $base_fontsize;}
} }
.night-mode { .night-mode {
@ -34,7 +43,8 @@ strong {
} }
em { em {
font-style: italic; font-style: italic;
font-weight: 300;
} }
a { a {
@ -52,37 +62,25 @@ p {
} }
} }
ul { ul, ol {
@include paragraph(); @include paragraph();
ul { ul, ol {
padding-bottom:0; padding-bottom:0;
margin:0;
} }
li { li {
margin-left:1.5em; margin:0;
margin-left: $base_lineheight;
line-height: $base_lineheight;
} }
} }
ol {
@include paragraph();
ol {
padding-bottom:0;
}
li {
margin-left:1.5em;
}
}
::selection { background: $color-selection; color: $color-light; } ::selection { background: $color-selection; color: $color-light; }
::-moz-selection { background: $color-selection; color: $color-light; } ::-moz-selection { background: $color-selection; color: $color-light; }
/* 2.2 - Text Wrapper */ /* 2.2 - Text Wrapper */
.article-content { .container-typographic {
font-size: calc(4mm + 0.4vw);
line-height: 1.5em;
padding: 1em;
font-weight:300;
p, em, p em { p, em, p em {
font-weight:300; font-weight:300;
} }
@ -104,7 +102,6 @@ ol {
.article-excerpt { .article-excerpt {
padding: 0.5em 0.5em 0.5em 0.5em; padding: 0.5em 0.5em 0.5em 0.5em;
font-style: italic; font-style: italic;
font-size: calc(3.5mm + 0.4vw);
} }
.article-author { .article-author {
margin:0; margin:0;
@ -115,35 +112,34 @@ ol {
} }
.bypass-flex-fontsize { .bypass-flex-fontsize {
font-size: 4mm; line-height: $base_lineheight;
line-height: 1.5em;
} }
} }
/* 2.3 - Titles */ /* 2.3 - Titles */
@mixin title($size, $height, $top, $bottom, $weight) { @mixin newTitle($font, $size, $lineNumber, $weight) {
font-size: $size; $linesize: $lineNumber * $baseline;
line-height: $height; $lineheight: $linesize / $size;
padding: $top 0 $bottom 0; $padding: $lineheight / $lineNumber;
font-weight: $weight; font-family: $font;
font-size: $size * $base_fontsize;
line-height: $lineheight * 1em;
padding: 0;
padding-bottom: $padding * 1em;
font-weight: $weight;
} }
h1, h2, h3, h4, h5, h6, h7 { h1, h2, h3, h4, h5, h6, h7 {
font-family: OpenSans; font-family: Amatic SC;
text-align: left; text-align: left;
font-size: 1em; font-size: 1em;
line-height: 1.5em;
padding:0; padding:0;
margin:0; margin:0;
font-weight:400; font-weight:400;
&.page-title { &.page-title {
font-family: OpenSans;
color: $color-primary; color: $color-primary;
font-weight: 300;
margin-bottom: 0.5em;
padding: 0;
i { i {
font-size: 0.55em; font-size: 0.55em;
@ -170,27 +166,29 @@ h1, h2, h3, h4, h5, h6, h7 {
} }
h1 { h1 {
@include title(3em, 1em, 0.5em, 0.6em, 200); //@include title(3.33em, 1.2em, 0.0em, 0.2em, 200);
@include newTitle(Amatic SC, 3.33, 3, 200);
} }
h2 { h2 {
@include title(2em, 1.5em, 0.333333em, 0.4em, 700); //@include title(2.725em, 1.125em, 0em, 0.5625em, 200);
@include newTitle(Amatic SC, 2.725, 2, 200);
} }
h3 { h3 {
@include title(1.5em, 1em, 0em, 1em, 700); @include newTitle(Work Sans, 2.23, 2, 500);
} }
h4 { h4 {
@include title(1.5em, 1em, 0em, 1em, 600); @include newTitle(Work Sans, 1.825, 2, 500);
} }
h5 { h5 {
@include title(1.333333em, 1em, 0.1em, 1.133333em, 600); @include newTitle(Work Sans, 1.439, 1, 500);
} }
h6 { h6 {
@include title(1.1em, 1.4em, 0.1em, 1.2em, 600); @include newTitle(Work Sans, 1.222, 1, 800);
} }
/* 2.4 - hr */ /* 2.4 - hr */
@ -208,17 +206,17 @@ hr {
/* 2.5 - Wells and quotes */ /* 2.5 - Wells and quotes */
@mixin well() { @mixin well() {
border-width: 0 0 0 0em; border-width: 0 0 0 0em;
border-style: none; border-style: none;
border-radius: 0px; border-radius: 0px;
margin: -0.75em -0.2em 0.75em -0.2em; margin: 0.75em -0.325em 0.75em -0.325em;
padding: 0.75em 1em 0.75em 1em; padding: 0.75em 1em 0.75em 1em;
max-width: 100%; max-width: 100%;
background-color: $color-light2; background-color: $color-light2;
font-style: italic; font-style: italic;
color: $color-dark2; color: $color-dark2;
} }
blockquote, .quote, .well { blockquote, .quote, .well {
@ -230,8 +228,13 @@ pre, .pre, .well-pre {
} }
code { code {
background:transparent; background:transparent;
color: $color-red; color: $color-red;
}
.container-typographic {
max-width: 800px;
margin:auto;
} }

132
writing-test.html Normal file
View file

@ -0,0 +1,132 @@
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8">
<title>Kazhnuz Space</title>
<!-- meta -->
<meta name="description" content="">
<meta name="author" content="">
<!-- mon icon -->
<link rel="shortcut icon" href="img/favicon.png">
<!-- framework utilisés -->
<link href="https://fonts.googleapis.com/css?family=Amatic+SC&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Work+Sans&display=swap" rel="stylesheet">
<link href="css/spectre.min.css" rel="stylesheet">
<link href="css/fork-awesome.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
</head>
<body>
<div id="wrapper">
<header class="container-fluid" id="page-header">
<div class="columns">
<div class="column col-6">
<h1>Blue Sky</h1>
</div>
<div class="column col-md-6">
<nav class="navbar">
<section class="navbar-section">
</section>
<section class="navbar-section">
<a href="..." class="btn btn-link">Docs</a>
<a href="..." class="btn btn-link">GitHub</a>
<a href="..." class="btn btn-link">GitHub</a>
</section>
</nav>
</div>
</div>
</header>
<section class="container">
<article class="container-typographic">
<h1 class="page-title">Nom de l'article :</h1>
<ul>
<li>1 - Titre de niveau 3
<ul>
<li>1.1 - Titre de niveau 4</li>
<li>1.2 - Titre de niveau 4</li>
<li>1.3 - Titre de niveau 4</li>
</ul>
</li>
<li>2 - Titre de niveau 3</li>
</ul>
<h2>Introduction : Lorem Ipsum</h2>
<p><em>Lorem ipsum dolor sit amet<sup><a href="#1">[1]</a></sup>, consectetur adipiscing elit. Praesent varius ullamcorper diam, non sagittis lectus rutrum id. Integer eros urna, egestas et libero a, finibus egestas odio. Nunc vel hendrerit quam, eget malesuada sem. Sed hendrerit ligula pharetra leo aliquam volutpat. Integer auctor urna ac convallis laoreet. Nunc vestibulum ipsum sed tortor aliquam porta. Cras nunc est, lobortis in est at, rhoncus auctor nunc. Sed dignissim erat non sollicitudin ultricies. Integer vel consectetur urna. Etiam fermentum ligula vitae nunc viverra, a fringilla sem aliquam. Suspendisse potenti. Morbi sem mi, malesuada quis odio vitae, suscipit congue metus. Sed ut ullamcorper urna, eget molestie est. Sed pulvinar justo ac urna consectetur fringilla. Donec tristique eget leo sit amet mollis.</em></p>
<p class="align-center"><a href="#" class="btn btn-warning">Télécharger ce thème</a></p>
<h2>Contenu : Lorem Ipsum. Ceci est un titre long afin de tester comment la longueur d'un titre peut poser soucis d'un point de vue de l'alignement vertical.</h2>
<h3>Titre de niveau 3</h3>
<h4>Titre de niveau 4</h4>
<h4>Titre de niveau 4</h4>
<h4>Titre de niveau 4</h4>
<h3>Titre de niveau 3</h3>
<p>Proin bibendum felis sit amet nisl iaculis, <strong>vel blandit purus dictum</strong>. Maecenas ullamcorper tortor ac dolor pulvinar, id imperdiet arcu suscipit. <mark>Sed posuere lectus eu orci tristique maximus</mark>. Nulla facilisi. Aenean sed fermentum nisl. Donec sodales ligula eu est finibus, eu posuere ligula condimentum. Morbi arcu magna, varius id justo ac, aliquam luctus magna. Pellentesque a velit et ipsum euismod congue eget eu sem. <del>Nulla luctus est nec arcu volutpat blandit.</del> Quisque egestas, elit eu tempus tincidunt, mi libero porta purus, eget lobortis metus erat a dolor. Integer ac turpis lacinia, interdum nisl non, feugiat libero.</p>
<blockquote><p>Cras malesuada, metus at viverra molestie, mi ligula sodales tellus, vitae facilisis ante est vitae dolor. Donec feugiat non est eget elementum. Nullam in erat et arcu tincidunt maximus. Nullam nibh orci, egestas eu ex non, viverra pretium magna. Proin convallis, risus eu condimentum luctus, ante dui mattis eros, a varius risus diam sed nisl. Ut malesuada ipsum in augue accumsan ullamcorper. Phasellus efficitur augue in venenatis sollicitudin. Integer at consectetur arcu.</p></blockquote>
<pre><code>Vivamus tincidunt dolor quis consectetur dapibus.
Ut metus risus, lobortis non venenatis in, ultricies a orci.
In suscipit ante et aliquet pretium.
Integer diam dui, rutrum vitae risus ultricies, varius vulputate magna.
In id suscipit elit.</code></pre>
<p id="1">[1] : Sed et odio volutpat, convallis est et, interdum sapien.</p>
</article>
</section>
</div>
<footer class="container">
<ul class="social">
<li class="social-li"><a class="social-link" href="https://twitter.com/kazhnuz" alt="Twitter"><i class="fa fa-fw fa-twitter"></i></a></li>
<li class="social-li"><a class="social-link" href="https://octodon.social/users/kazhnuz" alt="Mastodon"><i class="fa fa-fw fa-mastodon"></i></a></li>
<li class="social-li"><a class="social-link" href="#" alt="Diaspora"><i class="fa fa-fw fa-diaspora"></i></a></li>
<li class="social-li"><a class="social-link" href="#" alt="DeviantART"><i class="fa fa-fw fa-deviantart"></i></a></li>
<li class="social-li"><a class="social-link" href="#" alt="Github"><i class="fa fa-fw fa-github"></i></a></li>
<li class="social-li"><a class="social-link" href="#" alt="Gitlab"><i class="fa fa-fw fa-gitlab"></i></a></li>
</ul>
<div class="columns">
<div class="column col-md-4">
<p>Ce theme est diffusé sous licence <strong>Creative Common Attribution - Partage à l'Identique 4.0</strong> - hors mention contraire.</p>
<p>Cette licence vous autorise à partager et copier mes travaux, tant que vous me citiez en source, et que vous autorisez la même chose pour les travaux qui en seraient dérivés. N'hésitez pas à partager ! <i style="color:#FF0000" class="fa fa-heart"></i></p>
</div>
<div class="column col-md-4">
<p>Theme réalisé avec le quadriciel <a href="https://getbootstrap.com/">Bootstrap4</a> et la banque d'icone <a href="https://forkawesome.github.io/Fork-Awesome/">Fork-Awesome</a>.</p>
</div>
<div class="column col-md-4">
<p>Lorem Ipsum.</p>
</div>
</div>
</footer>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="js/bootstrap.min.js"></script>
</body>
</html>