2015-06-15 11:27:57 +02:00
|
|
|
/*
|
2015-07-25 09:34:51 +02:00
|
|
|
Rangitaki Project
|
|
|
|
|
2015-06-15 11:27:57 +02:00
|
|
|
The MIT License
|
|
|
|
|
|
|
|
Copyright 2015 mmk2410.
|
|
|
|
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
of this software and associated documentation files (the "Software"), to deal
|
|
|
|
in the Software without restriction, including without limitation the rights
|
|
|
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
copies of the Software, and to permit persons to whom the Software is
|
|
|
|
furnished to do so, subject to the following conditions:
|
|
|
|
|
|
|
|
The above copyright notice and this permission notice shall be included in
|
|
|
|
all copies or substantial portions of the Software.
|
|
|
|
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
|
|
THE SOFTWARE.
|
|
|
|
*/
|
2015-07-25 09:34:51 +02:00
|
|
|
/*
|
2015-06-15 11:27:57 +02:00
|
|
|
Created on : Jun 14, 2015, 6:13:38 PM
|
|
|
|
Author : mmk2410
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* BODY */
|
|
|
|
|
|
|
|
body{
|
2015-07-25 09:34:51 +02:00
|
|
|
margin-top: 94px; /* Set enough space for the header */
|
2015-06-15 11:27:57 +02:00
|
|
|
}
|
|
|
|
|
2015-07-25 09:34:51 +02:00
|
|
|
.main{ /* main content */
|
2015-06-15 11:27:57 +02:00
|
|
|
height: 100%;
|
2015-07-25 09:34:51 +02:00
|
|
|
margin-left: 0;
|
2015-06-15 11:27:57 +02:00
|
|
|
}
|
|
|
|
|
2015-07-25 09:34:51 +02:00
|
|
|
.overlay { /* overlay: used for a darker background when the navigation drawer is open */
|
2015-06-15 17:58:15 +02:00
|
|
|
opacity: 0;
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
background-color: black;
|
|
|
|
width: 100%;
|
|
|
|
z-index: 30;
|
|
|
|
height: 100%;
|
2015-07-25 09:34:51 +02:00
|
|
|
display: none; /* because the thing is hidden at the beginning and shown with js */
|
2015-06-15 17:58:15 +02:00
|
|
|
}
|
2015-07-25 09:34:51 +02:00
|
|
|
|
2015-06-15 11:27:57 +02:00
|
|
|
/* HEADER */
|
|
|
|
.header{
|
2015-07-25 09:34:51 +02:00
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
left: 0;
|
2015-06-15 11:27:57 +02:00
|
|
|
width: 100%;
|
|
|
|
height: 64px;
|
2015-06-18 20:45:49 +02:00
|
|
|
position: absolute;
|
2015-06-15 11:27:57 +02:00
|
|
|
}
|
|
|
|
|
2015-07-25 09:34:51 +02:00
|
|
|
.title{ /* title in the header */
|
2015-06-15 11:27:57 +02:00
|
|
|
color: #fff;
|
|
|
|
font-size: 23px;
|
|
|
|
text-decoration: none;
|
|
|
|
line-height: 64px;
|
|
|
|
vertical-align: middle;
|
|
|
|
left: 75px;
|
|
|
|
}
|
|
|
|
|
2015-07-25 09:34:51 +02:00
|
|
|
.title > a{ /* and a a styling */
|
2015-07-03 10:59:54 +02:00
|
|
|
text-decoration: none;
|
|
|
|
color: #fff;
|
|
|
|
}
|
|
|
|
|
2015-07-25 09:34:51 +02:00
|
|
|
.fadeout{ /* a fadeout if the title is to long */
|
2015-07-03 14:37:32 +02:00
|
|
|
position: absolute;
|
|
|
|
height: 64px;
|
2015-07-25 09:34:51 +02:00
|
|
|
top: 0;
|
|
|
|
right: 0;
|
2015-07-03 14:37:32 +02:00
|
|
|
width: 40px;
|
|
|
|
}
|
|
|
|
|
2015-07-25 09:34:51 +02:00
|
|
|
.nav-img{ /* the hamburger icon */
|
2015-06-15 11:27:57 +02:00
|
|
|
height: 26px;
|
2015-06-15 17:58:15 +02:00
|
|
|
padding: 19px;
|
|
|
|
cursor: pointer;
|
2015-06-15 11:27:57 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/* NAV DRAWER */
|
|
|
|
|
2015-07-25 09:34:51 +02:00
|
|
|
.nav{ /* the main object */
|
2015-06-15 11:27:57 +02:00
|
|
|
width: 300px;
|
|
|
|
position: fixed;
|
|
|
|
height: 100%;
|
2015-07-25 09:34:51 +02:00
|
|
|
top: 0;
|
2015-11-18 15:01:39 +01:00
|
|
|
left: -301px;
|
2015-06-15 17:58:15 +02:00
|
|
|
z-index: 40;
|
2015-06-15 11:27:57 +02:00
|
|
|
}
|
|
|
|
|
2015-07-25 09:34:51 +02:00
|
|
|
.nav-item, .nav-item-static{ /* a nav-item */
|
2015-06-15 11:27:57 +02:00
|
|
|
text-decoration: none;
|
|
|
|
text-indent: 0;
|
|
|
|
display: inline-block;
|
|
|
|
height: 48px;
|
|
|
|
vertical-align: middle;
|
|
|
|
width: 284px;
|
|
|
|
line-height: 48px;
|
|
|
|
padding-left: 16px;
|
|
|
|
transition: background-color 125ms ease-in-out 0ms;
|
|
|
|
}
|
|
|
|
|
2015-11-22 00:59:07 +01:00
|
|
|
.nav-close {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-close-img{ /* the hamburger icon */
|
|
|
|
height: 35px;
|
|
|
|
padding: 12px;
|
|
|
|
}
|
|
|
|
|
2015-07-25 09:34:51 +02:00
|
|
|
.nav-item{ /* additional setting for clickable nav items */
|
2015-06-15 11:27:57 +02:00
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
2015-07-25 09:34:51 +02:00
|
|
|
.divider{ /* a simple divider with all options. better than <hr> */
|
2015-06-15 11:27:57 +02:00
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* MAIN */
|
|
|
|
|
2015-07-25 09:34:51 +02:00
|
|
|
.card{ /* just a card */
|
2015-06-15 11:27:57 +02:00
|
|
|
margin-right: auto;
|
|
|
|
margin-left: auto;
|
2015-06-15 17:58:15 +02:00
|
|
|
width: 75%;
|
2015-06-15 11:27:57 +02:00
|
|
|
padding: 24px;
|
|
|
|
margin-bottom: 40px;
|
2015-06-15 17:58:15 +02:00
|
|
|
max-width: 1160px;
|
2015-06-15 11:27:57 +02:00
|
|
|
}
|
|
|
|
|
2015-07-25 09:34:51 +02:00
|
|
|
.card a{ /* and another a styling */
|
|
|
|
-moz-hyphens: auto;
|
|
|
|
-epub-hyphens: auto;
|
|
|
|
-ms-hyphens: auto;
|
|
|
|
-webkit-hyphens: auto;
|
|
|
|
hyphens: auto;
|
|
|
|
word-wrap: break-word; /* until here: break long links */
|
2015-06-15 11:27:57 +02:00
|
|
|
}
|
|
|
|
|
2015-07-25 09:34:51 +02:00
|
|
|
.card a:hover{ /* hovered card links; just here to help you create a own theme*/
|
2015-06-18 20:45:49 +02:00
|
|
|
|
2015-06-15 11:27:57 +02:00
|
|
|
}
|
|
|
|
|
2015-07-25 09:34:51 +02:00
|
|
|
.headline{ /* title in a card */
|
2015-06-15 11:27:57 +02:00
|
|
|
display: block;
|
|
|
|
padding-bottom: 8px;
|
|
|
|
}
|
|
|
|
|
2015-06-16 18:41:54 +02:00
|
|
|
|
2015-07-25 09:34:51 +02:00
|
|
|
.card img{ /* image in a card*/
|
|
|
|
max-width: 100%; /* regulate width */
|
|
|
|
max-height: 400px; /* regulate height */
|
|
|
|
display: block; /* centered */
|
|
|
|
margin-left: auto; /* centerd */
|
|
|
|
margin-right: auto; /* centred */
|
2015-06-16 18:41:54 +02:00
|
|
|
}
|
|
|
|
|
2015-07-25 09:34:51 +02:00
|
|
|
.date{ /* possibility to style the date */
|
2015-06-18 20:45:49 +02:00
|
|
|
|
2015-06-15 11:27:57 +02:00
|
|
|
}
|
|
|
|
|
2015-07-25 09:34:51 +02:00
|
|
|
.articletext{ /* posibitlity to style the text */
|
2015-06-18 20:45:49 +02:00
|
|
|
|
2015-06-15 11:27:57 +02:00
|
|
|
}
|
|
|
|
|
2015-07-25 09:34:51 +02:00
|
|
|
.author{ /* styling for the author */
|
2015-06-15 11:27:57 +02:00
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
2015-07-25 09:34:51 +02:00
|
|
|
.tag{ /* possibility to style the text */
|
2015-06-18 20:45:49 +02:00
|
|
|
|
2015-06-15 11:27:57 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/* FAB */
|
|
|
|
|
2015-07-25 09:34:51 +02:00
|
|
|
.fabmenu{ /* surrounds the complete fab menu */
|
2015-06-15 11:27:57 +02:00
|
|
|
position: fixed;
|
|
|
|
bottom: 20px;
|
2015-07-25 09:34:51 +02:00
|
|
|
right: 20px;
|
2015-06-15 11:27:57 +02:00
|
|
|
}
|
|
|
|
|
2015-07-25 09:34:51 +02:00
|
|
|
.fab{ /* the main fab (always visible if enabled) */
|
2015-06-15 11:27:57 +02:00
|
|
|
height: 60px;
|
|
|
|
width: 60px;
|
|
|
|
border-radius: 30px;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
2015-07-25 09:34:51 +02:00
|
|
|
.fab-img{ /* fab image for the main fab */
|
2015-06-15 11:27:57 +02:00
|
|
|
width: 28px;
|
|
|
|
padding: 15px;
|
|
|
|
}
|
|
|
|
|
2015-07-25 09:34:51 +02:00
|
|
|
.subfab{ /* a smaller fab in the fab menu */
|
2015-06-15 11:27:57 +02:00
|
|
|
height: 45px;
|
|
|
|
width: 45px;
|
|
|
|
border-radius: 30px;
|
|
|
|
margin-right: auto;
|
|
|
|
margin-left: auto;
|
|
|
|
margin-bottom: 25px;
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2015-07-25 09:34:51 +02:00
|
|
|
.subfab-img{ /* and the image for it */
|
2015-06-15 11:27:57 +02:00
|
|
|
width: 22px;
|
|
|
|
padding: 12px;
|
|
|
|
}
|
|
|
|
|
2015-12-20 17:50:22 +01:00
|
|
|
/* BUTTON */
|
|
|
|
|
|
|
|
.pag_buttons {
|
|
|
|
margin-right: auto;
|
|
|
|
margin-left: auto;
|
|
|
|
width: calc(75% + 48px);
|
|
|
|
margin-bottom: 80px;
|
|
|
|
max-width: 1160px;
|
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
|
|
|
|
.button {
|
|
|
|
text-decoration: none;
|
|
|
|
color: #fff;
|
|
|
|
line-height: 36px;
|
|
|
|
min-width: 64px;
|
|
|
|
text-align: center;
|
|
|
|
height: 36px;
|
|
|
|
padding: 8px;
|
|
|
|
margin-top: 4px;
|
|
|
|
margin-bottom: 5px;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.pag_next{
|
|
|
|
margin-left: 8px;
|
|
|
|
}
|
|
|
|
|
2015-06-15 11:27:57 +02:00
|
|
|
/* FOOTER */
|
|
|
|
|
2015-07-25 09:34:51 +02:00
|
|
|
.footer{ /* possibility for styling the footer */
|
2015-06-18 20:45:49 +02:00
|
|
|
|
2015-06-15 11:27:57 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2015-07-25 09:34:51 +02:00
|
|
|
.footer a{ /* styling of the footer a */
|
2015-06-15 11:27:57 +02:00
|
|
|
transition: border-bottom-color 150ms ease-in-out 100ms;
|
|
|
|
}
|
|
|
|
|
2015-07-25 09:34:51 +02:00
|
|
|
.footer a:hover{ /* and the hovered one*/
|
2015-06-15 11:27:57 +02:00
|
|
|
border-bottom-color: #383838;
|
2015-06-15 17:58:15 +02:00
|
|
|
}
|
2015-06-18 20:45:49 +02:00
|
|
|
|
2015-07-25 09:34:51 +02:00
|
|
|
@media screen and (min-width: 1440px) { /* make it responsive: large devices */
|
2015-06-18 20:45:49 +02:00
|
|
|
|
2015-07-25 09:34:51 +02:00
|
|
|
.nav{ /* always show navigation bar */
|
|
|
|
left: 0;
|
2015-11-22 00:59:07 +01:00
|
|
|
padding-top: 64px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-close-img {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-close {
|
|
|
|
display: none;
|
2015-06-15 17:58:15 +02:00
|
|
|
}
|
2015-06-18 20:45:49 +02:00
|
|
|
|
2015-07-25 09:34:51 +02:00
|
|
|
.nav-img{ /* always hide navigation bar icon*/
|
2015-06-15 17:58:15 +02:00
|
|
|
display: none;
|
|
|
|
}
|
2015-06-18 20:45:49 +02:00
|
|
|
|
2015-07-25 09:34:51 +02:00
|
|
|
.header{ /* move header to the right */
|
2015-06-15 17:58:15 +02:00
|
|
|
left: 300px;
|
|
|
|
}
|
2015-06-18 20:45:49 +02:00
|
|
|
|
2015-07-25 09:34:51 +02:00
|
|
|
.main{ /* move main content to the right and limit its width */
|
2015-06-15 17:58:15 +02:00
|
|
|
margin-left: 300px;
|
|
|
|
width: calc(100% - 300px);
|
|
|
|
}
|
2015-06-18 20:45:49 +02:00
|
|
|
|
2015-06-15 17:58:15 +02:00
|
|
|
}
|
|
|
|
|
2015-06-16 16:16:51 +02:00
|
|
|
|
2015-07-25 09:34:51 +02:00
|
|
|
@media screen and (max-width: 720px){ /* make it responsive: small devices */
|
2015-06-18 20:45:49 +02:00
|
|
|
|
2015-07-25 09:34:51 +02:00
|
|
|
.card{ /* wider cards */
|
2015-06-15 17:58:15 +02:00
|
|
|
width: 82%;
|
|
|
|
}
|
2015-06-18 20:45:49 +02:00
|
|
|
|
2015-12-20 17:50:22 +01:00
|
|
|
.pag_buttons {
|
|
|
|
width: calc(82% + 48px);
|
|
|
|
}
|
|
|
|
|
2015-07-25 09:34:51 +02:00
|
|
|
}
|