theread.me/_sass/_layout.scss

203 lines
2.7 KiB
SCSS
Raw Normal View History

2015-03-29 06:14:53 +00:00
body {
background: #FFF7EC;
height: auto;
padding-bottom: 5rem;
}
2015-04-12 16:30:11 +00:00
.share-page {
padding: 10px 50px;
background: rgba(0, 0, 0, 0.1);
border-radius: 5px;
margin: 50px 0;
2017-02-23 12:38:14 +00:00
a {
margin-left: 1rem;
}
2015-04-12 16:30:11 +00:00
}
2015-03-29 06:14:53 +00:00
header {
width: 100%;
text-align: center;
padding-top: $spacing-unit;
img {
// border-radius: 50%;
margin: $spacing-unit auto;
// border: 1px solid #F5DFC3;
}
h1 {
font-size: 4rem;
2016-11-09 12:27:01 +00:00
font-family: $head-font-family;
text-transform: lowercase;
2015-03-29 06:14:53 +00:00
}
h1 a, & > a {
text-decoration: none;
color: $text-color !important;
&:hover {
border: none;
}
}
nav {
margin-top: 1rem;
2019-03-24 03:54:31 +00:00
margin-bottom: 1rem;
2015-03-29 06:14:53 +00:00
}
nav a {
margin: 0 1rem;
}
a:visited {
color: $brand-color;
}
}
.page-heading {
text-align: center;
font-style: italic;
2016-11-09 12:27:01 +00:00
width: 20%;
height: 1px;
border: 1px dotted rgba(0, 0, 0, 0.1);
2019-03-24 03:54:31 +00:00
margin: 2rem auto 5rem;
2015-03-29 06:14:53 +00:00
}
.post-list, .post-header {
list-style: none;
margin-left: 0;
margin-bottom: 5rem;
h2, h1 {
text-align: center;
}
2017-02-23 12:38:14 +00:00
2015-03-29 06:14:53 +00:00
.post-meta {
font-size: $small-font-size;
display: block;
text-align: center;
margin-bottom: 2rem;
2017-02-23 12:38:14 +00:00
span {
margin-left: 1rem;
margin-right: 1rem;
}
2015-03-29 06:14:53 +00:00
}
}
article p img {
margin: 2rem auto;
display: block;
&.inline {
display: inline;
margin: 0.1rem;
}
2015-03-29 06:14:53 +00:00
}
2015-07-26 09:58:08 +00:00
strong {
font-weight: bold;
}
.post article h1 {
font-weight: bold;
}
2015-07-26 09:58:08 +00:00
.post-list li {
margin-top: 100px;
}
.post-list li:first-of-type {
margin-top: 0;
}
2015-03-29 06:14:53 +00:00
.post-list h2 {
font-size: 1.5rem;
}
.post article h2 {
font-size: 1.3rem;
}
2015-07-31 05:51:07 +00:00
.post-content [id] {
position: relative;
&:hover .heading-link {
opacity: 1;
}
}
2018-04-27 13:42:01 +00:00
.lang-fa {
2018-04-27 12:20:58 +00:00
font-family: $base-font-family;
direction: rtl !important;
.post-content {
text-align: right;
font-size: 1.05em;
line-height: 1.718em;
}
.share-page {
direction: ltr;
}
}
2015-07-31 05:51:07 +00:00
.post-content .heading-link {
display: block;
position: absolute;
width: 15px;
height: 15px;
left: -30px;
top: 10px;
padding-right: 30px;
background: url(/img/link.svg) no-repeat;
background-size: contain;
opacity: 0;
transition: opacity 0.3s ease;
&:hover {
border: none;
}
}
2015-03-29 06:14:53 +00:00
article .image-caption {
display: block;
text-align: center;
font-size: 10pt;
color: $grey-color;
margin-top: -1.5rem;
}
.rss-subscribe {
text-align: center;
}
hr {
border: none;
border-top: 1px solid lighten($grey-color, 20%);
margin: 1.5rem 0;
}
.channel {
#mahdi * {
fill: #000000 !important;
}
& > a::before {
content: 'BroadcastChannels rock';
color: white;
position: absolute;
top: 250px;
left: calc(50% - 83px);
font-size: 15px;
text-shadow: 0 0 1px white;
}
}
.centered {
margin: 2rem auto;
display: block;
}