/* ---------------------------------------- */ /* Base Template -------------------------- */ @base_white : #efefef; @base_black : #333; // default should be #111 @gradient-top-black : linear-gradient(to bottom, fade(@base_black, 85%) 0%, fade(@base_black, 0%) 100%); @gradient-bot-black : linear-gradient(to top, fade(@base_black, 85%) 0%, fade(@base_black, 0%) 100%); @gradient-top-white : ; @gradient-bot-white : ; /* ---------------------------------------- */ /* Fonts ---------------------------------- */ @font-face { font-family: 'GC Sans'; font-weight: 100; src: url('../fonts/work-sans/WorkSans-Hairline.otf'); /* IE9 Compat Modes */ src: url('../fonts/work-sans/WorkSans-Hairline.otf') format('embedded-opentype'), /* IE6-IE8 */ url('../fonts/work-sans/WorkSans-Hairline.otf') format('woff2'), /* Super Modern Browsers */ url('../fonts/work-sans/WorkSans-Hairline.otf') format('woff'), /* Pretty Modern Browsers */ url('../fonts/work-sans/WorkSans-Hairline.otf') format('truetype'), /* Safari, Android, iOS */ url('../fonts/work-sans/WorkSans-Hairline.otf') format('svg'); /* Legacy iOS */ } @font-face { font-family: 'GC Sans'; font-weight: 300; src: url('../fonts/work-sans/WorkSans-Light.otf'); /* IE9 Compat Modes */ src: url('../fonts/work-sans/WorkSans-Light.otf') format('embedded-opentype'), /* IE6-IE8 */ url('../fonts/work-sans/WorkSans-Light.otf') format('woff2'), /* Super Modern Browsers */ url('../fonts/work-sans/WorkSans-Light.otf') format('woff'), /* Pretty Modern Browsers */ url('../fonts/work-sans/WorkSans-Light.otf') format('truetype'), /* Safari, Android, iOS */ url('../fonts/work-sans/WorkSans-Light.otf') format('svg'); /* Legacy iOS */ } @font-face { font-family: 'GC Sans'; font-weight: 500; src: url('../fonts/work-sans/WorkSans-Regular.otf'); /* IE9 Compat Modes */ src: url('../fonts/work-sans/WorkSans-Regular.otf') format('embedded-opentype'), /* IE6-IE8 */ url('../fonts/work-sans/WorkSans-Regular.otf') format('woff2'), /* Super Modern Browsers */ url('../fonts/work-sans/WorkSans-Regular.otf') format('woff'), /* Pretty Modern Browsers */ url('../fonts/work-sans/WorkSans-Regular.otf') format('truetype'), /* Safari, Android, iOS */ url('../fonts/work-sans/WorkSans-Regular.otf') format('svg'); /* Legacy iOS */ } @font-face { font-family: 'GC Sans'; font-weight: 700; src: url('../fonts/work-sans/WorkSans-SemiBold.otf'); /* IE9 Compat Modes */ src: url('../fonts/work-sans/WorkSans-SemiBold.otf') format('embedded-opentype'), /* IE6-IE8 */ url('../fonts/work-sans/WorkSans-SemiBold.otf') format('woff2'), /* Super Modern Browsers */ url('../fonts/work-sans/WorkSans-SemiBold.otf') format('woff'), /* Pretty Modern Browsers */ url('../fonts/work-sans/WorkSans-SemiBold.otf') format('truetype'), /* Safari, Android, iOS */ url('../fonts/work-sans/WorkSans-SemiBold.otf') format('svg'); /* Legacy iOS */ } @font-face { font-family: 'GC Sans'; font-weight: 900; src: url('../fonts/work-sans/WorkSans-ExtraBold.otf'); /* IE9 Compat Modes */ src: url('../fonts/work-sans/WorkSans-ExtraBold.otf') format('embedded-opentype'), /* IE6-IE8 */ url('../fonts/work-sans/WorkSans-ExtraBold.otf') format('woff2'), /* Super Modern Browsers */ url('../fonts/work-sans/WorkSans-ExtraBold.otf') format('woff'), /* Pretty Modern Browsers */ url('../fonts/work-sans/WorkSans-ExtraBold.otf') format('truetype'), /* Safari, Android, iOS */ url('../fonts/work-sans/WorkSans-ExtraBold.otf') format('svg'); /* Legacy iOS */ } /* Global --------------------------------- */ body { position: relative; font-family: "GC Sans"; font-weight: 300; font-size: 16px; } body a { text-decoration: none; } .tmpl-light a:hover { color: @base_black; } .tmpl-dark a:hover { color: @base_white; } .tmpl-light { background-color: @base_white; color: @base_black; } .tmpl-dark { background-color: @base_black; color: @base_white } body.tmpl-dark h1, body.tmpl-dark h2, body.tmpl-dark h3, body.tmpl-dark h4, body.tmpl-dark h5, body.tmpl-dark h6 { color: white; } .cover { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center center; background-repeat: no-repeat; } section { position: relative; } section#blogroll, section#article-body { padding: 40px 0; } .button { position: relative; display: inline-block; padding: .5em 1em; border-radius: 2px; cursor: pointer; transition: .5s ease box-shadow, .5s ease color; } .button.wide { display: block; } .button.icon { padding-left: 2.5em; } .button.icon .icon, span.icon { position: absolute; height: 100%; width: 2em; top: 0; left: .5em; background-position: center center; background-size: 50% 50%; background-repeat: no-repeat; transition: .5s ease background; } span.icon { left: 0; } .button.icon:hover .icon { transition: .1s ease background; } .button:hover { transition: .1s ease box-shadow, .1s ease color; } .tmpl-light .button { color: @base_black; box-shadow: inset 0 0 0 1px @base_black; } .tmpl-light .button:hover { color: @base_white; box-shadow: inset 0 0 0 100px @base_black; } .tmpl-dark .button { color: @base_white; box-shadow: inset 0 0 0 1px @base_white; } .tmpl-dark .button:hover { color: @base_black; box-shadow: inset 0 0 0 100px @base_white; } .in { position: relative; max-width: 1440px; margin: 0 auto; padding: 0px 40px; } .tmpl-light #site-bg .gradient { background: -moz-linear-gradient(top, fade(@base_white, 50%) 0%, @base_white 100%); /* FF3.6-15 */ background: -webkit-linear-gradient(top, fade(@base_white, 50%) 0%, @base_white 100%); /* Chrome10-25,Safari5.1-6 */ background: linear-gradient(to bottom, fade(@base_white, 50%) 0%, @base_white 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */ } .tmpl-dark #site-bg .gradient { background: -moz-linear-gradient(top, fade(@base_black, 50%) 0%, @base_black 100%); /* FF3.6-15 */ background: -webkit-linear-gradient(top, fade(@base_black, 50%) 0%, @base_black 100%); /* Chrome10-25,Safari5.1-6 */ background: linear-gradient(to bottom, fade(@base_black, 50%) 0%, @base_black 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */ } #site-bg { position: absolute; z-index: -1; top: 0px; width: 100%; opacity: 1; } #site-bg .bg { position: absolute; top: 0px; width: 100%; height: 100%; background-position: center top; background-size: cover; background-repeat: no-repeat; opacity: .5; } .tmpl-light #site-bg .gradient { overflow: hidden; box-shadow: 0px 0px 0px 100px @base_white; background: -moz-linear-gradient(top, fade(@base_white, 25%) 0%, @base_white 100%); /* FF3.6-15 */ background: -webkit-linear-gradient(top, fade(@base_white, 25%) 0%, @base_white 100%); /* Chrome10-25,Safari5.1-6 */ background: linear-gradient(to bottom, fade(@base_white, 25%) 50%, @base_white 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */ } .tmpl-dark #site-bg .gradient { overflow: hidden; box-shadow: 0px 0px 0px 100px @base_black; background: -moz-linear-gradient(top, fade(@base_black, 25%) 0%, @base_black 100%); /* FF3.6-15 */ background: -webkit-linear-gradient(top, fade(@base_black, 25%) 0%, @base_black 100%); /* Chrome10-25,Safari5.1-6 */ background: linear-gradient(to bottom, fade(@base_black, 25%) 0%, @base_black 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */ } .ad { text-align: center; margin-bottom: 40px; } /* ---------------------------------------- */ /* GL Bar --------------------------------- */ #gl-bar { font-size: 14px; padding: 7px; } #gl-bar .in { max-width: unset; } #gl-bar #gl-logo { float: left; width: 90px; margin: 4px 0 0; } #gl-bar nav ul { margin: 0px; padding: 0px; text-align: right; } #gl-bar nav ul li { display: inline; list-style: none; } /* -- Dark GL Bar Icons -- */ #gl-bar nav ul li a.account { background-image: url("../images/gl-bar/icon-account-dark.svg"); } #gl-bar nav ul li a.home { background-image: url("../images/gl-bar/icon-home-dark.svg"); } #gl-bar nav ul li a.flag { background-image: url("../images/gl-bar/icon-flag-dark.svg"); } #gl-bar nav ul li a.edit { background-image: url("../images/gl-bar/icon-edit-dark.svg"); } #gl-bar nav ul li a { position: relative; display: inline-block; padding: .5em 1em .5em 2.5em; margin-left: 3px; background-size: 1em; background-position: .75em 50%; background-repeat: no-repeat; color: @base_white; background-color: fade(@base_white, 10%); border-radius: 2px; box-shadow: inset 0px 0px 0px 1px fade(@base_white, 10%); } /* ---------------------------------------- */ /* Typography ----------------------------- */ article h1, article h2, article h3, article h4, article h5, article h6 { font-weight: inherit; line-height: 1.25em; padding: 0; margin: 1em 0 .5em; } article h1 a, article h2 a, article h3 a, article h4 a, article h5 a, article h6 a { font-weight: 300; } article h1 { font-size: 2.5em; } article h2 { font-size: 2em; } article h3 { font-size: 1.5em; } article ol, article ul { margin: 0; padding: 0; } article > ol, article > ul { padding-left: 1.5em; } article ol li, article ul li { margin: .5em 0px .5em 1.5em; } article p { font-size: 1em; line-height: 1.666em; padding: 0; margin: 1em 0; } article > p:first-of-type, article description p { font-size: 1.5em; line-height: 1.25em; margin-top: 0; } .tmpl-light article > p:first-of-type, .tmpl-light article description p { color: fade(@base_black, 50%); } .tmpl-dark article > p:first-of-type, .tmpl-dark article description p { color: fade(@base_white, 50%); } article hr { border: none; height: 1px; margin: 1em 0; } .tmpl-light article hr { background-color: white; border-bottom: 1px solid rgba(0, 0, 0, .1); } .tmpl-dark article hr { background-color: black; border-bottom: 1px solid rgba(255, 255, 255, .1); } article em { opacity: .5; } article blockquote { font-style: italic; font-size: 1em; line-height: 1.5em; border-radius: 3px; padding: 1em 2em; } article table { border-radius: 5px; border-spacing: 1px; overflow: hidden; } fieldset { padding: 1.5em; border-radius: 3px; border: 1px solid transparent; } fieldset legend { font-weight: 500; padding: .25em; } input[type='text'], article textarea, input[type='password'] { padding: .25em .5em; border-radius: 3px; border: none; box-shadow: 0px 2px 5px rgba(0, 0, 0, .15); } input[type='text']:focus, textarea:focus, input[type='password']:focus { background: white; } input[type='reset'], input[type='submit'] { font-weight: 500; line-height: 1em; padding: .5em 1em; border-radius: 3px; border: none; } article table { max-width: 100%; } .tmpl-light article table td { font-size: 80%; background: rgba(0, 0, 0, .1); border-bottom: 1px solid rgba(0, 0, 0, .1); padding: .5em 1em; } .tmpl-dark article table td { background: rgba(255, 255, 255, .1); border-bottom: 1px solid rgba(255, 255, 255, .1); padding: .5em 1em; } .tmpl-light article table th { text-align: left; font-weight: 700; background: rgba(0, 0, 0, .2); border-bottom: 1px solid rgba(0, 0, 0, .1); padding: .5em 1em; text-shadow: 0px 1px 0px rgba(255, 255, 255, .5); } .tmpl-dark article table th { text-align: left; font-weight: 700; background: rgba(255, 255, 255, .2); border-bottom: 1px solid rgba(255, 255, 255, .1); padding: .5em 1em; text-shadow: 0px 1px 0px rgba(0, 0, 0, .5); } /* ---------------------------------------- */ /* Header --------------------------------- */ .header-spacer { display: none; } header.primary { position: absolute; width: 100%; z-index: 9999; } header.primary .in { padding-top: 32px; padding-bottom: 32px; } header.primary .overlay-a { background: @gradient-top-black; } logo { display: block; float: left; } logo a { display: block; min-height: 54px; width: 300px; background-repeat: no-repeat; background-size: contain; background-position: left center; } header.primary nav { text-align: right; } header.primary nav ul { padding: 0; margin: 0; display: inline-block; } header.primary nav ul li { display: block; float: left; list-style: none; } header.primary nav ul li a { font-weight: 500; letter-spacing: 1px; text-transform: uppercase; display: inline-table; color: @base_white; padding: 1em; text-shadow: 1px 1px 1px fade(@base_black, 25%); } header.primary .menu-button { display: none; position: absolute; right: 2em; top: 2em; width: 40px; height: 40px; background: url("../images/icon/menu-white.svg") center center / 24px no-repeat; cursor: pointer; } header.primary .menu { width: ~"calc(100% - 300px)"; float: right; } /* ---------------------------------------- */ /* DL ------------------------------------- */ #dl ul.hero-slider { min-height: 720px; padding: 0; margin: 0; } #dl .slide { min-height: 720px; display: block; position: relative; list-style: none; padding: 0; margin: 0; background-position: center center; background-repeat: no-repeat; background-size: cover; } #dl .slide .text { position: absolute; bottom: 0; padding-bottom: 40px; color: @base_white; background: @gradient-bot-black; width: 100%; } /* ---------------------------------------- */ /* Blogroll ------------------------------- */ #blogroll article { position: relative; float: left; clear: left; width: ~"calc(100% - 320px)"; margin-bottom: 4em; } #blogroll article h2 { margin-top: 0; } .tmpl-light #blogroll article h2 a { color: @base_black; } .tmpl-dark #blogroll article h2 a { color: @base_white; } #blogroll .article-pic { position: relative; float: left; display: block; margin-right: 20px; width: 50%; background-size: cover; background-repeat: no-repeat; background-position: center center; overflow: hidden; border-radius: 2px; box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, .15); } .tmpl-light #blogroll .article-pic .overlay { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); } article .spacer, img.spacer { display: block; width: 100%; } #blogroll article ul.tags { position: absolute; top: 0; left: 0; margin: 0; padding: .5em; } article ul.tags li { display: inline; margin: 0; padding: 0; } #blogroll article ul.tags li a { display: inline-block; color: white; text-transform: uppercase; font-size: .75em; line-height: 1em; font-weight: 300; background: fade(@base_black, 75%); padding: .5em .5em .4em; border-radius: 2px; box-shadow: inset 0 0 0 1px fade(@base_black, 25%); } article .by-line a.button { margin-bottom: 1em; } article ul.tags li a:before { content: "# "; } #blogroll article .comments { position: absolute; top: 0; right: 0; margin: .5em; padding: .5em .5em .4em 2em; border-radius: 2px; font-size: .75em; font-weight: 300; color: @base_white; background-color: fade(@base_black, 90%); } #blogroll article .comments:hover { background-color: @base_black; } #blogroll article .comments .icon { background-image: url("../images/icon/comments-white.svg"); } #blogroll article:nth-of-type(1), #blogroll article:nth-of-type(2) { clear: none; margin-right: 20px; width: ~"calc((100% - 20px) / 2)"; } #blogroll article:nth-of-type(3), #blogroll article:nth-of-type(4), #blogroll article:nth-of-type(5) { clear: none; margin-right: 20px; width: ~"calc((100% - 40px) / 3)"; } #blogroll article:nth-of-type(1) .article-pic, #blogroll article:nth-of-type(2) .article-pic, #blogroll article:nth-of-type(3) .article-pic, #blogroll article:nth-of-type(4) .article-pic, #blogroll article:nth-of-type(5) .article-pic { width: 100%; max-width: 100%; float: none; } #blogroll article:nth-of-type(2), #blogroll article:nth-of-type(5) { margin-right: 0; } #blogroll article .text { margin-left: ~"calc(50% + 20px)"; } #blogroll article:nth-of-type(1) .text, #blogroll article:nth-of-type(2) .text, #blogroll article:nth-of-type(3) .text, #blogroll article:nth-of-type(4) .text, #blogroll article:nth-of-type(5) .text { margin-left: 0; } #blogroll article:nth-of-type(1) .text-container, #blogroll article:nth-of-type(2) .text-container, #blogroll article:nth-of-type(3) .text-container, #blogroll article:nth-of-type(4) .text-container, #blogroll article:nth-of-type(5) .text-container { padding-top: 1em; } #blogroll article .by-line { font-size: .75em; line-height: 1em; padding: 1em 0 0; } .tmpl-light #blogroll article .by-line { border-top: 1px solid fade(@base_black, 15%); } .tmpl-dark #blogroll article .by-line { border-top: 1px solid fade(@base_white, 15%); } #blogroll article .by-line author { margin-left: 4px; } #blogroll article .by-line author, #blogroll article .by-line time { display: inline-block; position: relative; padding-left: 1.5em; } .tmpl-light article .by-line, .tmpl-light article .by-line a { font-weight: inherit; color: fade(@base_black, 50%); } article .by-line author .icon, article .by-line time .icon { background-size: contain; background-position: left center; } .tmpl-light article .by-line time .icon { background-image: url('../images/icon/calendar-black.svg'); } .tmpl-dark article .by-line time .icon { background-image: url('../images/icon/calendar-white.svg'); } .tmpl-light article .by-line author .icon { background-image: url('../images/icon/by-line-black.svg'); } .tmpl-dark article .by-line author .icon { background-image: url('../images/icon/by-line-white.svg'); } .tmpl-light .load-more-stories .icon { background-image: url('../images/icon/more-stories-black.svg'); } .tmpl-dark .load-more-stories .icon { background-image: url('../images/icon/more-stories-white.svg'); } .tmpl-light .load-more-stories:hover .icon { background-image: url('../images/icon/more-stories-white.svg'); } .tmpl-dark .load-more-stories:hover .icon { background-image: url('../images/icon/more-stories-black.svg'); } /* ---------------------------------------- */ /* Article --------------------------------- */ .feature-image { position: relative; } .feature-image .spacer { min-height: 500px; } .feature-image h1 { position: absolute; bottom: 0; left: 0px; margin: 0; padding: .5em 40px 0; } .tmpl-light .feature-image h1 { background: @base_white; } .tmpl-dark .feature-image h1 { background: @base_black; } main .meta { float: left; text-align: center; width: 130px; font-size: .75em; margin: 0 20px 20px 0; } main .meta .author-pic { display: block; width: 130px; height: 130px; margin-bottom: 20px; border-radius: 100%; box-shadow: inset 0 0 0 2px white; background-position: center center; background-size: cover; background-repeat: no-repeat; } .tmpl-el { display: block; margin: 1.5em 170px; } article a { font-weight: 500; } article .tmpl-el a:hover { text-decoration: underline; } main aside { width: 300px; font-size: .75em; } main aside:nth-of-type(odd) { margin: 0 0 20px 20px; float: right; clear: right; } main aside:nth-of-type(even) { margin: 0 20px 20px 0; float: left; clear: left; } main figure { position: relative; padding: 0; } main figure.tmpl-el:not(.size-m) { width: ~"calc(100% + 80px)"; left: -40px; margin: 40px auto; } main figure.tmpl-el:not(.size-s) figcaption, main .gallery figcaption { position: absolute; padding: 1em; bottom: 0; left: 0; background: fade(@base_black, 75%); color: @base_white; } main figure.tmpl-el:not(.size-m) figcaption { left: 40px; } main figure .zoom { position: absolute; top: 1em; right: 1em; height: 40px; width: 40px; padding: 0; opacity: 0; pointer-events: none; transition: .5s ease opacity; } main figure .zoom .icon { width: 100%; background-image: url("../images/icon/zoom-white.svg"); } .tmpl-dark main figure .zoom:hover .icon { background-image: url("../images/icon/zoom-black.svg"); } main figure:hover .zoom { opacity: 1; pointer-events: all; transition: .1s ease opacity; } figure img { display: block; max-width: 100%; box-shadow: 0 0 10px 0 rgba(0, 0, 0, .15); } article main ul.tags.tmpl-el { margin-top: 2em; margin-bottom: 4em; } /* ---------------------------------------- */ /* Topic ---------------------------------- */ .topic-heading { position: relative; padding: 10em 0 6em; text-align: center; background: @base_black; } .topic-heading h1 { color: @base_white; } /* ---------------------------------------- */ /* Footer --------------------------------- */ footer { padding: 40px 0; } .footer-top { padding: 1.5em 0; } .tmpl-light .footer-top { border-color: fade(@base_black, 5%); } .tmpl-dark .footer-top { border-color: fade(@base_white, 5%); } footer .card { position: relative; text-align: right; width: 50%; float: right; } .tmpl-light footer { box-shadow: 0 0 0 1px rgba(0, 0, 0, .05); background: lighten(@base_white, 2.5%); } .tmpl-dark footer { box-shadow: 0 0 0 1px rgba(255, 255, 255, .05); background: darken(@base_black, 2.5%); } footer .links-block { margin-top: 1em; } footer .links-block ul { width: ~"calc((100% - 60px) / 4)"; float: left; margin: 0; margin-right: 20px; padding: 0; } footer .links-block ul:last-child { margin-right: 0; } footer .links-block ul li { list-style: none; line-height: 1.5em; } footer .links-block ul li.heading { font-size: 1.25em; font-weight: 500; padding-bottom: .5em; margin-bottom: .5em; } .tmpl-light footer .links-block ul li.heading { border-bottom: 1px solid fade(@base_black, 5%); } .tmpl-dark footer .links-block ul li.heading { border-bottom: 1px solid fade(@base_white, 5%); } /* ---------------------------------------- */ /* Responsive ----------------------------- */ @media (max-width: 1024px) { } @media (max-width: 768px) { .ad.wide { display: none; } #blogroll article, #blogroll article:nth-of-type(1), #blogroll article:nth-of-type(2), #blogroll article:nth-of-type(3), #blogroll article:nth-of-type(4), #blogroll article:nth-of-type(5) { width: 100%; margin: 0 0 4em 0 ; float: none; clear: both; } #blogroll article .article-pic, #blogroll article:nth-of-type(1) .article-pic, #blogroll article:nth-of-type(2) .article-pic, #blogroll article:nth-of-type(3) .article-pic, #blogroll article:nth-of-type(4) .article-pic, #blogroll article:nth-of-type(5) .article-pic { width: 100%; } #blogroll article .text, #blogroll article:nth-of-type(1) .text, #blogroll article:nth-of-type(2) .text, #blogroll article:nth-of-type(3) .text, #blogroll article:nth-of-type(4) .text, #blogroll article:nth-of-type(5) .text { width: 100%; margin-left: 0; float: none; clear: both; } #blogroll article .text-container, #blogroll article:nth-of-type(1) .text-container, #blogroll article:nth-of-type(2) .text-container, #blogroll article:nth-of-type(3) .text-container, #blogroll article:nth-of-type(4) .text-container, #blogroll article:nth-of-type(5) .text-container { padding-top: 1em; } .tmpl-el { margin-left: 85px; margin-right: 85px; } header.primary .menu-button { display: block; } header.primary .menu { position: absolute; top: 0; margin-top: -10px; left: 0; opacity: 0; pointer-events: none; width: 100%; float: none; clear: both; background-color: fade(@base_black, 95%); z-index: -1; transition: .5s ease opacity, .5s ease margin-top; } header .menu.active { margin-top: 0; opacity: 1; pointer-events: all; transition: .1s ease opacity, .1s ease margin-top; } header logo { float: none; clear: both; } header logo a { background-position: center center; width: 100%; } header.primary nav ul { display: block; margin-top: 7em; border-top: 1px solid black; border-bottom: 1px solid rgba(255, 255, 255, .1); } header.primary nav ul li { float: none; clear: both; } header.primary nav ul li a { display: block; text-align: center; border-bottom: 1px solid black; border-top: 1px solid rgba(255, 255, 255, .1); } footer .links-block ul { width: ~"calc((100% - 20px) / 2)"; margin-bottom: 40px; } footer .links-block ul:nth-child(2) { margin-right: 0; } } @media (max-width: 480px) { body { font-size: 14px; } header.primary .menu-button { top: 32px; right: 1em; } .in { padding: 0 20px; } .ad { margin-bottom: 20px; } section#blogroll, section#article-body, footer { padding: 20px 0; } .tmpl-el { margin-left: 0; margin-right: 0; } main .meta .author-pic { margin: 0 auto 20px; } main .meta { width: 100%; } main aside, main aside:nth-of-type(odd), main aside:nth-of-type(even) { width: 100%; margin: 0 0 20px 0; float: none; clear: both; } main figure.tmpl-el:not(.size-m) { width: ~"calc(100% + 40px)"; left: -20px; margin: 20px auto; } footer .links-block ul { width: 100%; margin-bottom: 20px; } } @media (max-width: 320px) { .in { padding: 0 10px; } .ad { margin-bottom: 10px; } section#blogroll, section#article-body, footer { padding: 10px 0; } main figure.tmpl-el:not(.size-m) { width: ~"calc(100% + 20px)"; left: -10px; margin: 10px auto; } }