| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532 |
- @import "variables.less";
- html, body {
- width: 100%;
- height: 100%;
- }
- h1,
- h2,
- h3,
- h4,
- h5,
- h6 {
- font-weight: 300;
- line-height: 1.1;
- }
- h1{
- font-size: 2.4em
- }
- h2 {
- font-size: 2em
- }
- h3 {
- font-size: 1.6em
- }
- h4 {
- font-size: 1.36em
- }
- h5 {
- font-size: 1.2em
- }
- h6 {
- font-size: 1.1em
- }
- body {
- margin: 0;
- padding: 0;
- background-color: @body-bg;
- color: @text-color;
- font-family: @sans;
- font-size: 1.02em;
- line-height: 1.2em;
- }
- a {
- color: @link-color;
- text-decoration: none;
- }
- a:hover {
- color: @link-hover-color;
- }
- hr {
- color: @light-grey;
- background-color: @light-grey;
- height: 1px;
- border: none;
- margin-top: 40px;
- margin-bottom: 40px;
- }
- img {
- max-width: 100%;
- }
- aside {
- background-color: @sidebar-bg;
- color: @sidebar-text-color;
- text-align: center;
- a {
- color: @sidebar-link-color;
- }
- a:hover {
- color: @sidebar-link-hover-color;
- }
- div {
- padding: 20px;
- margin: 0;
- img {
- border-radius: 50%;
- max-width: 140px;
- }
- h1 {
- margin: 15px 0 5px 0;
- }
- p {
- margin: 0 0 15px 0;
- font-size: .92em;
- }
- }
- nav {
- ul {
- li {
- display: inline;
- line-height: 1.6em;
- font-size: 1.28em;
- text-transform: lowercase;
- }
- }
- }
- }
- main {
- nav {
- text-align: center;
- text-transform: uppercase;
- font-size: .72em;
- padding: 14px 0 14px 0;
- border-bottom: @nav-border-color 1px solid;
- }
- nav, .translations {
- a {
- padding: 0 4px 0 4px;
- border-left: @nav-border-color 1px solid;
- border-right: @nav-border-color 1px solid;
- }
- :first-child {
- border-left: none;
- }
- :last-child {
- border-right: none;
- }
- }
- .neighbors {
- margin: 4% 0% 4% 0%;
- height: 20px;
- }
- .pagination {
- margin: 4% 8% 4% 8%;
- height: 20px;
- }
- .social-share {
- p {
- font-size: .8em;
- }
- }
- article {
- margin: 0 8% 2% 8%;
- header {
- h1, h2 {
- margin-bottom: 0;
- }
- p {
- color: @header-text-color;
- font-size: 0.86em;
- }
- .translations {
- float: right;
- .active {
- font-weight: 600;
- }
- }
- }
- code, kbd, samp, pre {
- font-family: @mono;
- }
- blockquote, pre {
- background-color: rgba(128,128,128,0.05);
- border-top-right-radius: 5px;
- border-bottom-right-radius: 5px;
- border-left: 8px solid rgba(128,128,128,0.075);
- border-left-width: 10px;
- }
- blockquote {
- padding: 10px 20px;
- font-weight: 300;
- font-size: 1.1em;
- }
- pre {
- padding: 4px;
- font-size: .9em;
- overflow-x: auto;
- }
- samp {
- white-space: pre;
- display: block;
- overflow-x: auto;
- }
- kbd {
- padding: .1em .6em;
- border: 1px solid rgba(63,63,63,0.25);
- box-shadow: 0 1px 0 rgba(63,63,63,0.25);
- background-color: #fff;
- color: #333;
- border-radius: 3px;
- display: inline-block;
- margin: 0 .1em;
- white-space: nowrap;
- font-size: .78em;
- }
- *:not(pre) > code {
- font-size: .8em;
- white-space: nowrap;
- color: #c25;
- padding: 1px 3px;
- background-color: #f7f7f9;
- border: 1px solid #e1e1e8;
- border-radius: 3px;
- }
- .comment-count {
- font-size: .8em;
- }
- table {
- border-collapse: collapse;
- border-spacing: 0;
- thead:first-child tr:first-child th {
- border-top: 0;
- }
- th, td {
- padding: 8px;
- line-height: 20px;
- vertical-align: top;
- border-top: 1px solid #ddd;
- }
- }
- }
- footer {
- padding-top: 4px;
- border-top: @footer-border-color 1px solid;
- p {
- margin: 2px;
- text-align: center;
- padding: 0 40px 0 40px;
- color: @footer-text-color;
- font-size: 11px;
- }
- }
- }
- .tag-cloud {
- a {
- background-color: @tag-bg;
- padding: .2em .6em .2em;
- font-size: .74em;
- line-height: 1;
- color: @tag-text-color;
- text-align: center;
- white-space: nowrap;
- vertical-align: baseline;
- border-radius: .25em;
- }
- a:hover {
- background-color: @tag-hover-color;
- }
- }
- a.btn {
- background-color: @btn-bg;
- padding: .6em .6em;
- font-size: .8em;
- line-height: 1;
- color: @btn-text-color;
- text-align: center;
- white-space: nowrap;
- vertical-align: baseline;
- border-radius: .25em;
- }
- a.btn:hover {
- background-color: @btn-hover-color;
- }
- .center, .text-center {
- text-align: center;
- }
- .img-center {
- margin-left: auto;
- margin-right: auto;
- display: block;
- }
- .align-center {
- margin-left: auto;
- margin-right: auto;
- display: block;
- }
- .float-left {
- float: left;
- }
- .float-right {
- float: right;
- }
- div.related-posts {
- margin: 15px 0 15px 0;
- padding-bottom: 20px;
- border-top: @rel-post-border-color 1px solid;
- border-bottom: @rel-post-border-color 1px solid;
- h4 {
- margin: 20px 0 25px 0;
- }
- ul {
- font-size: 1.1em;
- padding-left: 12px;
- li {
- padding: 4px 0 4px 0;
- }
- }
- }
- ul.list, ul.social, ul.related-posts {
- list-style-type: none;
- margin: 0;
- padding: 0;
- }
- ul.list {
- padding: 1em 0 1em 0;
- li {
- padding: 4px;
- }
- }
- ul.social {
- font-size: 1.6em;
- padding-top: 20px;
- li {
- display: inline;
- }
- a:hover {
- z-index: 2;
- -webkit-transform: translateY(-5px);
- transform: translateY(-5px);
- }
- a {
- display: inline-block;
- width: 36px;
- height: 36px;
- border-radius: 100%;
- text-align: center;
- font-size: .8em;
- line-height: 36px;
- }
- a.sc-facebook {
- background-color: @facebook-bg-color;
- }
- a.sc-google {
- background-color: @google-bg-color;
- }
- a.sc-instagram {
- background-color: @instagram-bg-color;
- }
- a.sc-pinterest {
- background-color: @pinterest-bg-color;
- }
- a.sc-linkedin {
- background-color: @linkedin-bg-color;
- }
- a.sc-medium {
- background-color: @medium-bg-color;
- }
- a.sc-rss {
- background-color: @rss-bg-color;
- }
- a.sc-stack-overflow {
- background-color: @stack-overflow-bg-color;
- }
- a.sc-tumblr {
- background-color: @tumblr-bg-color;
- }
- a.sc-twitter {
- background-color: @twitter-bg-color;
- }
- a.sc-youtube {
- background-color: @youtube-bg-color;
- }
- a.sc-github, a.sc-github-alt {
- background-color: @github-bg-color;
- }
- a.sc-envelope-o {
- background-color: @email-bg-color;
- }
- a.sc-reddit {
- background-color: @reddit-bg-color;
- }
- a.sc-soundcloud {
- background-color: @soundcloud-bg-color;
- }
- a.sc-gitlab {
- background-color: @gitlab-bg-color;
- }
- a.sc-xing {
- background-color: @xing-bg-color;
- }
- a.sc-bitbucket {
- background-color: @bitbucket-bg-color;
- }
- }
- .ads-aside {
- display: inline-block;
- height: 90px;
- width: 70%;
- }
- .ads-responsive {
- display: inline-block;
- margin: 6px 0 6px 0;
- width: 90%;
- height: 70px;
- margin-left: 5%;
- }
- //
- // Desktop
- //
- @media screen and (min-width: 768px) {
- aside {
- width: 25%;
- height: 100%;
- position: fixed;
- top: 0;
- left: 0;
- overflow-y: auto;
- div {
- padding: 36px 18px;
- nav {
- ul {
- li {
- padding: 0 !important;
- display: block;
- }
- }
- }
- ul.social {
- padding-top: 32px;
- }
- }
- }
- main {
- width: 75%;
- height: 100%;
- position: absolute;
- top: 0;
- left: 25%;
- article {
- &.single {
- min-height: 80%;
- }
- ul.list {
- li {
- padding: 2px;
- }
- }
- }
- }
- .ads-aside {
- height: 250px;
- }
- .ads-responsive {
- height: 90px;
- }
- }
|