Material design for blog on large screens
This commit is contained in:
parent
83b4d26752
commit
96cc249f9d
19 changed files with 1327 additions and 898 deletions
241
res/css/blog.css
241
res/css/blog.css
|
@ -1,241 +0,0 @@
|
|||
/* pBlog 2.0 */
|
||||
|
||||
/*
|
||||
* 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,
|
||||
* FINESS 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.
|
||||
*
|
||||
*/
|
||||
|
||||
body{
|
||||
margin-right: 15%;
|
||||
margin-left: 15%;
|
||||
margin-bottom: 0px;
|
||||
margin-top: 100px;
|
||||
font-family: 'Roboto', sans-serif;
|
||||
font-size: 14px;
|
||||
line-height: 20px;
|
||||
letter-spacing: 0.01px;
|
||||
background-color: #ffffff;
|
||||
color: rgba(0, 0, 0, 0.87);
|
||||
}
|
||||
|
||||
img{
|
||||
max-width: 100%;
|
||||
max-height: 400px;
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
|
||||
.header{
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
float: center;
|
||||
z-index: 40;
|
||||
background: #ff4415;
|
||||
width: 100%;
|
||||
box-shadow: 0px 0px 4px 4px rgba(189, 189, 189, 0.5);
|
||||
-moz-box-shadow: 0px 0px 4px 4px rgba(189, 189, 189, 0.5);
|
||||
-webkit-box-shadow: 0px 0px 4px 4px rgba(189, 189, 189, 0.5);
|
||||
height: 60px;
|
||||
padding-right: 0px;
|
||||
padding-top: 0px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.text{
|
||||
font-family: 'Roboto', sans-serif;
|
||||
font-size: 14px;
|
||||
line-height: 20px;
|
||||
letter-spacing: 0.01px;
|
||||
background-color: #ffffff;
|
||||
z-index: 10;
|
||||
color: rgba(0, 0, 0, 0.87);
|
||||
}
|
||||
.text a{
|
||||
font-family: 'Roboto', sans-serif;
|
||||
font-size: 14px;
|
||||
line-height: 20px;
|
||||
letter-spacing: 0.01px;
|
||||
color: #ff4415;
|
||||
text-decoration: none;
|
||||
}
|
||||
section{
|
||||
margin-bottom: 50px;
|
||||
}
|
||||
|
||||
/*
|
||||
Material design flat button
|
||||
|
||||
Usage: <a class=".text_button_flat">YOUR TEXT</a>
|
||||
|
||||
9th November 2014
|
||||
*/
|
||||
.button_white {
|
||||
text-decoration: none;
|
||||
color: #000000;
|
||||
line-height: 40px;
|
||||
min-width: 70px;
|
||||
text-align: center;
|
||||
height: 40px;
|
||||
padding: 8px;
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
border-color: #a2a2a2;
|
||||
border-radius: 3px;
|
||||
margin: 4px;
|
||||
margin-bottom: 5px;
|
||||
margin-left: 5px;
|
||||
letter-spacing: 0.4px;
|
||||
font-weight: 700;
|
||||
font-size: 14px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/*
|
||||
Material design flat button
|
||||
|
||||
Usage: <a class=".text_button_flat_colored">YOUR TEXT</a>
|
||||
|
||||
9th November 2014
|
||||
*/
|
||||
.button_color {
|
||||
text-decoration: none;
|
||||
line-height: 40px;
|
||||
min-width: 70px;
|
||||
text-align: center;
|
||||
height: 40px;
|
||||
padding: 8px;
|
||||
color: #FFFFFF;
|
||||
background-color: #ff4415;
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
border-color: #ff4415;
|
||||
border-radius: 3px;
|
||||
margin: 4px;
|
||||
margin-bottom: 5px;
|
||||
margin-left: 5px;
|
||||
letter-spacing: 0.4px;
|
||||
font-weight: 700;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.title{
|
||||
padding-left:15%;
|
||||
height: 60px;
|
||||
line-height: 60px;
|
||||
display:inline-block;
|
||||
text-decoration: none;
|
||||
color: #FFFFFF;
|
||||
vertical-align: middle;
|
||||
font-size: 24px;
|
||||
overflow-x: hidden;
|
||||
max-width: 35%;
|
||||
}
|
||||
|
||||
.home{
|
||||
float: right;
|
||||
padding-right: 15%;
|
||||
height: 60px;
|
||||
line-height: 60px;
|
||||
vertical-align: middle;
|
||||
color: #fff;
|
||||
overflow-x: hidden;
|
||||
font-size: 20px;
|
||||
display: inline-block;
|
||||
text-decoration: none;
|
||||
max-width: 35%;
|
||||
}
|
||||
|
||||
.texttitle{
|
||||
font-family: 'Roboto', sans-serif;
|
||||
font-weight: 500;
|
||||
font-size: 20px;
|
||||
color: rgb(33, 33, 33);
|
||||
line-height: 24px;
|
||||
letter-spacing: 0.05px;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.texttitle:hover{
|
||||
color: #ff4415;
|
||||
}
|
||||
|
||||
.texttitlemono{
|
||||
font-family: 'Roboto', sans-serif;
|
||||
font-weight: 500;
|
||||
font-size: 20px;
|
||||
color: rgb(33, 33, 33);
|
||||
line-height: 24px;
|
||||
letter-spacing: 0.05px;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.cc{
|
||||
font-family: 'Roboto', sans-serif;
|
||||
font-size: 12px;
|
||||
line-height: 14px;
|
||||
letter-spacing: 0.01px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.cc a{
|
||||
font-family: 'Roboto', sans-serif;
|
||||
font-size: 12px;
|
||||
line-height: 14px;
|
||||
letter-spacing: 0.01px;
|
||||
color: rgba(0, 0, 0, 0.87);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.cc a:hover{
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.socialbar{
|
||||
display: inline-block;
|
||||
height: 68px;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.socialimg{
|
||||
height: 40px;
|
||||
display: inline-block;
|
||||
padding-right: 5px;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 700px){
|
||||
body {
|
||||
margin-right: 40px;
|
||||
margin-left: 20px;
|
||||
}
|
||||
.title{
|
||||
padding-left: 10px;
|
||||
max-width: 45%;
|
||||
}
|
||||
.home{
|
||||
padding-right: 10px;
|
||||
max-width: 45%;
|
||||
}
|
||||
}
|
225
res/css/rangitaki.css
Normal file
225
res/css/rangitaki.css
Normal file
|
@ -0,0 +1,225 @@
|
|||
/*
|
||||
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.
|
||||
*/
|
||||
/*
|
||||
Created on : Jun 14, 2015, 6:13:38 PM
|
||||
Author : mmk2410
|
||||
*/
|
||||
|
||||
/* BODY */
|
||||
|
||||
body{
|
||||
font-family: "Roboto", sans-serif;
|
||||
background: #f6f6f6;
|
||||
color: #383838;
|
||||
margin-top: 94px;
|
||||
}
|
||||
|
||||
.main{
|
||||
height: 100%;
|
||||
width: calc(100% - 300px);
|
||||
margin-left: 300px;
|
||||
}
|
||||
|
||||
/* HEADER */
|
||||
.header{
|
||||
background-color: #ff4415;
|
||||
position: fixed;
|
||||
top: 0px;
|
||||
right: 0px;
|
||||
left: 300px;
|
||||
width: 100%;
|
||||
height: 64px;
|
||||
box-shadow: 2px 0px 2px 2px rgba(62, 62, 62, 0.45);
|
||||
}
|
||||
|
||||
.title{
|
||||
color: #fff;
|
||||
font-size: 23px;
|
||||
text-decoration: none;
|
||||
line-height: 64px;
|
||||
vertical-align: middle;
|
||||
left: 75px;
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
.nav-img{
|
||||
left: 19px;
|
||||
top: 19px;
|
||||
height: 26px;
|
||||
position: absolute;
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* NAV DRAWER */
|
||||
|
||||
.nav{
|
||||
width: 300px;
|
||||
position: fixed;
|
||||
height: 100%;
|
||||
top: 0px;
|
||||
left: 0px;
|
||||
background-color: #fff;
|
||||
padding-top: 64px;
|
||||
border-right: 1px solid #e0e0e0;
|
||||
transition: background-color 125ms ease-in-out 0ms;
|
||||
}
|
||||
|
||||
.nav-item, .nav-item-static{
|
||||
color: #383838;
|
||||
text-decoration: none;
|
||||
text-indent: 0;
|
||||
display: inline-block;
|
||||
height: 48px;
|
||||
text-decoration: none;
|
||||
vertical-align: middle;
|
||||
width: 284px;
|
||||
line-height: 48px;
|
||||
padding-left: 16px;
|
||||
transition: background-color 125ms ease-in-out 0ms;
|
||||
}
|
||||
|
||||
.nav-item{
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.nav-item:active{
|
||||
background-color: #e2e2e2;
|
||||
}
|
||||
|
||||
.divider{
|
||||
width: 100%;
|
||||
border-bottom: 1px solid #e0e0e0;
|
||||
}
|
||||
|
||||
/* MAIN */
|
||||
|
||||
.card{
|
||||
margin-right: auto;
|
||||
margin-left: auto;
|
||||
width: 65%;
|
||||
background: #fff;
|
||||
border-radius: 2px;
|
||||
padding: 24px;
|
||||
box-shadow: 0px 1px 1.5px 1.5px rgba(62, 62, 62, 0.3);
|
||||
margin-bottom: 40px;
|
||||
}
|
||||
|
||||
.card a{
|
||||
color: #ff4415;
|
||||
text-decoration: none;
|
||||
border-bottom: 1px solid transparent;
|
||||
border-bottom-color: transparent;
|
||||
transition: border-bottom-color 150ms ease-in-out 100ms;
|
||||
}
|
||||
|
||||
.card a:hover{
|
||||
border-bottom-color: #ff4415;
|
||||
}
|
||||
|
||||
.headline{
|
||||
font-size: 24px;
|
||||
color: #383838!important;
|
||||
text-decoration: none;
|
||||
display: block;
|
||||
padding-bottom: 8px;
|
||||
border-bottom: none!important;
|
||||
}
|
||||
|
||||
.date{
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.articletext{
|
||||
font-size: 14px;
|
||||
line-height: 24px;
|
||||
}
|
||||
|
||||
.author{
|
||||
font-size: 13px;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.tag{
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
/* FAB */
|
||||
|
||||
.fabmenu{
|
||||
position: fixed;
|
||||
bottom: 20px;
|
||||
right: 20px;
|
||||
}
|
||||
|
||||
.fab{
|
||||
height: 60px;
|
||||
width: 60px;
|
||||
border-radius: 30px;
|
||||
background-color: #ff4415;
|
||||
box-shadow: 0px 1px 1.5px 1.5px rgba(62, 62, 62, 0.3);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.fab-img{
|
||||
width: 28px;
|
||||
padding: 15px;
|
||||
}
|
||||
|
||||
.subfab{
|
||||
height: 45px;
|
||||
width: 45px;
|
||||
border-radius: 30px;
|
||||
margin-right: auto;
|
||||
margin-left: auto;
|
||||
margin-bottom: 25px;
|
||||
background-color: #fff;
|
||||
box-shadow: 0px 1px 1.5px 1.5px rgba(62, 62, 62, 0.3);
|
||||
display: none;
|
||||
}
|
||||
|
||||
.subfab-img{
|
||||
width: 22px;
|
||||
padding: 12px;
|
||||
}
|
||||
|
||||
/* FOOTER */
|
||||
|
||||
.footer{
|
||||
font-size: 12px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
|
||||
.footer a{
|
||||
color: #383838;
|
||||
text-decoration: none;
|
||||
border-bottom: 1px solid transparent;
|
||||
border-bottom-color: transparent;
|
||||
transition: border-bottom-color 150ms ease-in-out 100ms;
|
||||
}
|
||||
|
||||
.footer a:hover{
|
||||
border-bottom-color: #383838;
|
||||
}
|
Reference in a new issue