improvement: make sure that too small page are handled correctly
This commit is contained in:
parent
e2b99475e6
commit
c0cfa3df07
4 changed files with 120 additions and 1 deletions
100
minimal.html
Normal file
100
minimal.html
Normal file
|
@ -0,0 +1,100 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="fr">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>Blue Sky, by Kazhnuz</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="css/bootstrap.css" rel="stylesheet">
|
||||||
|
<link href="css/fork-awesome.css" rel="stylesheet">
|
||||||
|
|
||||||
|
<link href="style.css" rel="stylesheet">
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<div id="wrapper">
|
||||||
|
<header id="page-header">
|
||||||
|
<nav class="navbar navbar-expand-lg navbar-dark navbar-transparent">
|
||||||
|
<a class="navbar-brand" href="#">Blue Sky</a>
|
||||||
|
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
||||||
|
<span class="navbar-toggler-icon"></span>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||||
|
<ul class="navbar-nav mr-auto">
|
||||||
|
<li class="nav-item active">
|
||||||
|
<a class="nav-link" href="#">Accueil</a>
|
||||||
|
</li>
|
||||||
|
<li class="nav-item">
|
||||||
|
<a class="nav-link" href="#">Exemple de page</a>
|
||||||
|
</li>
|
||||||
|
<li class="nav-item dropdown">
|
||||||
|
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||||
|
Galleries
|
||||||
|
</a>
|
||||||
|
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
|
||||||
|
<a class="dropdown-item" href="#">Truc 1</a>
|
||||||
|
<a class="dropdown-item" href="#">Truc 2</a>
|
||||||
|
<div class="dropdown-divider"></div>
|
||||||
|
<a class="dropdown-item" href="#">Voir gallerie entière</a>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
<div class="title_area">
|
||||||
|
<h1>Blue Sky</h1>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<div id="global-area" class="index-layout">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<footer id="page-footer">
|
||||||
|
|
||||||
|
<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="row">
|
||||||
|
<div class="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="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="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>
|
|
@ -32,10 +32,19 @@ $wrapper-padding: $baselinerem * 3;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* 02.0 - Global page layout */
|
||||||
|
|
||||||
|
body {
|
||||||
|
display: flex;
|
||||||
|
min-height: 100vh;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* 02.1 - Wrapper et page totale */
|
/* 02.1 - Wrapper et page totale */
|
||||||
|
|
||||||
#wrapper {
|
#wrapper {
|
||||||
|
flex: 1 0 auto;
|
||||||
background: $background-color url('img/background.png') center bottom repeat-x;
|
background: $background-color url('img/background.png') center bottom repeat-x;
|
||||||
|
|
||||||
|
|
||||||
|
@ -106,6 +115,7 @@ header h1 {
|
||||||
|
|
||||||
#page-footer {
|
#page-footer {
|
||||||
margin-top: $baselinerem;
|
margin-top: $baselinerem;
|
||||||
|
padding-bottom: $baselinerem;
|
||||||
@include row();
|
@include row();
|
||||||
padding-left:$wrapper-padding;
|
padding-left:$wrapper-padding;
|
||||||
padding-right:$wrapper-padding;
|
padding-right:$wrapper-padding;
|
||||||
|
|
|
@ -467,8 +467,16 @@ mark {
|
||||||
* Cela permet de définir les différents éléments qui composeront la page totale
|
* Cela permet de définir les différents éléments qui composeront la page totale
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
/* 02.0 - Global page layout */
|
||||||
|
body {
|
||||||
|
display: flex;
|
||||||
|
min-height: 100vh;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
/* 02.1 - Wrapper et page totale */
|
/* 02.1 - Wrapper et page totale */
|
||||||
#wrapper {
|
#wrapper {
|
||||||
|
flex: 1 0 auto;
|
||||||
background: #42a0f3 url("img/background.png") center bottom repeat-x;
|
background: #42a0f3 url("img/background.png") center bottom repeat-x;
|
||||||
padding-left: 2.25rem;
|
padding-left: 2.25rem;
|
||||||
padding-right: 2.25rem;
|
padding-right: 2.25rem;
|
||||||
|
@ -546,6 +554,7 @@ header h1 {
|
||||||
/* 02.3 - Footer */
|
/* 02.3 - Footer */
|
||||||
#page-footer {
|
#page-footer {
|
||||||
margin-top: 1.5rem;
|
margin-top: 1.5rem;
|
||||||
|
padding-bottom: 1.5rem;
|
||||||
max-width: 1600px;
|
max-width: 1600px;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
padding-left: 4.5rem;
|
padding-left: 4.5rem;
|
||||||
|
|
File diff suppressed because one or more lines are too long
Reference in a new issue