Fix an issue missing page height

This commit is contained in:
Tsubasa Takayama 2019-03-13 13:38:36 +09:00
parent 17b734e7e0
commit 82184929e3
No known key found for this signature in database
GPG key ID: 727DC1973501412D
5 changed files with 9 additions and 5 deletions

View file

@ -17,7 +17,7 @@
{% endif %} {% endif %}
<!doctype html> <!doctype html>
<html> <html class="min-height-full">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="description" content="{{ meta_description }}" /> <meta name="description" content="{{ meta_description }}" />
@ -25,4 +25,4 @@
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link href="{{ "/assets/styles.css" | relative_url }}" rel="stylesheet" type="text/css"> <link href="{{ "/assets/styles.css" | relative_url }}" rel="stylesheet" type="text/css">
</head> </head>
<body class="bg-white" {% if site.style == 'dark' %}style="background-color: #2f363d !important"{% endif %}> <body class="bg-white min-height-full" {% if site.style == 'dark' %}style="background-color: #2f363d !important"{% endif %}>

View file

@ -11,7 +11,7 @@
</div> </div>
</div> </div>
{% else %} {% else %}
<div class="d-md-flex {% unless site.style == 'dark' %}border-md-bottom{% endunless %}"> <div class="d-md-flex min-height-full {% unless site.style == 'dark' %}border-md-bottom{% endunless %}">
<div class="flex-self-stretch {% if site.style == 'dark' %}bg-gray-dark{% else %}border-md-right border-gray-light bg-white{% endif %} col-md-5 col-lg-4 col-xl-3 px-4 px-md-6 px-lg-7 py-6"> <div class="flex-self-stretch {% if site.style == 'dark' %}bg-gray-dark{% else %}border-md-right border-gray-light bg-white{% endif %} col-md-5 col-lg-4 col-xl-3 px-4 px-md-6 px-lg-7 py-6">
{% include masthead.html metadata=true %} {% include masthead.html metadata=true %}
</div> </div>

View file

@ -25,7 +25,7 @@
{% endunless %} {% endunless %}
</div> </div>
{% else %} {% else %}
<div class="d-md-flex {% unless site.style == 'dark' %}border-md-bottom{% endunless %}"> <div class="d-md-flex min-height-full {% unless site.style == 'dark' %}border-md-bottom{% endunless %}">
<div class="flex-self-stretch {% if site.style == 'dark' %}bg-gray-dark{% else %}border-md-right border-gray-light bg-white{% endif %} col-md-5 col-lg-4 col-xl-3 px-4 px-md-6 px-lg-7 py-6"> <div class="flex-self-stretch {% if site.style == 'dark' %}bg-gray-dark{% else %}border-md-right border-gray-light bg-white{% endif %} col-md-5 col-lg-4 col-xl-3 px-4 px-md-6 px-lg-7 py-6">
{% include masthead.html metadata=true %} {% include masthead.html metadata=true %}
</div> </div>

View file

@ -47,7 +47,7 @@
</div> </div>
</div> </div>
{% else %} {% else %}
<div class="d-md-flex {% unless site.style == 'dark' %}border-md-bottom{% endunless %}"> <div class="d-md-flex min-height-full {% unless site.style == 'dark' %}border-md-bottom{% endunless %}">
<div class="flex-self-stretch {% if site.style == 'dark' %}bg-gray-dark{% else %}border-md-right border-gray-light bg-white{% endif %} col-md-5 col-lg-4 col-xl-3 px-4 px-md-6 px-lg-7 py-6"> <div class="flex-self-stretch {% if site.style == 'dark' %}bg-gray-dark{% else %}border-md-right border-gray-light bg-white{% endif %} col-md-5 col-lg-4 col-xl-3 px-4 px-md-6 px-lg-7 py-6">
{% include masthead.html metadata=true %} {% include masthead.html metadata=true %}
</div> </div>

View file

@ -37,3 +37,7 @@
padding-left: 16px; padding-left: 16px;
} }
} }
.min-height-full {
min-height: 100vh;
}