/*! Theme Name: blogitAD Theme URI: http://achyut.xyz/wordpressthemes/blogitad/ Author: Underscores.me Author URI: http://achyut.xyz/ Description: Description Version: 1.0.1 License: GNU General Public License v2 or later License URI: LICENSE Text Domain: blogitad Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. blogitAD is based on Underscores https://underscores.me/, (C) 2012-2017 Automattic, Inc. Underscores is distributed under the terms of the GNU GPL v2 or later. Normalizing styles have been helped along thanks to the fine work of Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/ ---------------------------------------------------------------- >>> TABLE OF CONTENTS: ---------------------------------------------------------------- */ /* overall ##############################################################################################################*/ :root { --themecolor: rgba(196, 47, 2, 0.986); --focuswidth: 70vw; } body.home, body.archive { display: flex; } body, article, a, h1, h2, h3, p, img, ul, li { margin: 0; padding: 0; } ul li { list-style-type: none; } /*home ##############################################################################################################*/ /* left column ##############################################################################################################*/ .home #focusedArticle, .archive #focusedArticle, .single article:nth-child(1) { width: var(--focuswidth); text-align: center; } .home #focusedArticle #imageWrapper ,.archive #focusedArticle #imageWrapper { width: 100%; } .home #focusedArticle #imageWrapper2 ,.archive #focusedArticle #imageWrapper2 { background: rgba(255, 255, 255, 0.3); } .home #focusedArticle img ,.archive #focusedArticle img { max-width: 100%; max-height: 70vh; } .home .focussedhead ,.archive .focussedhead { bottom: 0; border-top: 1px solid var(--themecolor); border-bottom: 1px solid var(--themecolor); } .home #focusedArticle .entry-title ,.archive #focusedArticle .entry-title { font-size: 2em; } .home #focusedArticle .entry-content,.archive #focusedArticle .entry-content,.single .entry-content { padding: 2%; text-align: justify; font-size: 1.05em; line-height: 1.6em; } .home #focusedArticle .entry-meta,.archive #focusedArticle .entry-meta { padding-top: 0; } .home #goToSite ,.archive #goToSite { display: block; font-size: 1.3em; padding: 1em; background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0)); text-decoration: none; border-bottom: 1px solid var(--themecolor); border-top: 1px solid var(--themecolor); color: var(--themecolor); } .home #focusedArticle .entry-content img,.archive #focusedArticle .entry-content img{ max-width: 90% !important; margin: 1em; padding: 1em; } figure{ max-width: 100%; } /* right column ##############################################################################################################*/ /* header #################################*/ #masthead { display: flex; justify-content: space-between; background: rgba(0, 0, 0, 0.8); color: white; padding-right: 1em; max-height: 100px; margin-top: 0; } .home.admin-bar #masthead,.archive.admin-bar #masthead{ margin-top: 30px; } .site-branding { height: 100px; text-align: center; padding: 1% 8%; } #site-navigation { align-self: center; } .site-title{ text-align: left; } .site-title a { text-decoration: none; color: var(--themecolor); font-weight: bold; font-size: 2.5em; } .home .site-title a{ font-size: 1.1em; } .archive .page-title{ text-align: center; } #menuhead { cursor: pointer; } .menu { position: fixed; min-width: 10em; right: 0; background: rgba(0, 0, 0, 0.8); } .menu li a { color: white; margin-left: 1em; } .menu li li a { margin-left: 2em; } .menu li li li a { margin-left: 3em; } .menu-item { list-style-type: none; margin-top: 1em; margin-bottom: 1em; } .menu li:hover { background: rgba(255, 255, 255, 0.5); } .menu li:hover a { color: black; } .menu-header-menu-container { background: rgba(0, 0, 0, 0.3); display: inline-block; margin-left: 8%; } .menu li a { text-decoration: none; } #menusymbol { width: 1.5em; fill: white; } /*aside ########################################################*/ select{ width: 100%; font-size: 0.9em; } .widget-title{ text-align: center; margin: 2%; } section{ font-size: 1.2em; line-height: 2.1em; } /*content ###################################################*/ .home #page ,.archive #page { position: fixed; right: 0px; top:0px; width: calc(100% - var(--focuswidth)); height: calc(100vh); background: white; background: rgba(0, 0, 0, 0.1); } .home #page #content ,.archive #page #content { overflow: scroll; height: calc(100vh - 100px) } .home #page article ,.archive #page article { height: 4em; padding: 1em 0; cursor: pointer; padding-left: 8%; } .home #page .entry-title ,.archive #page .entry-title { margin: 0; font-size: 1.2em; font-weight: normal; } .home #page .entry-meta ,.archive #page .entry-meta { padding-left: 1em; } .home #page img,.archive #page img, #page .fakeimage { height: 3.9em; width: auto; width: 6em; float: left; margin: 0 0.5em; } .home #page .has-post-thumbnail .fakeimage ,.archive #page .has-post-thumbnail .fakeimage { display: none; } .home #page .fakeimage ,.archive #page .fakeimage { width: 6em; background: black; } .home #page .entry-content ,.archive #page .entry-content { display: none; } .home #page article a ,.archive #page article a { text-decoration: none; color: black; font-size: 1em; pointer-events: none; } .home .site-info a ,.archive .site-info a { text-decoration: none; } .home .navigation h2 ,.archive .navigation h2 { display: none; } .home .nav-links,.archive .nav-links { display: flex; width: 100%; justify-content: space-around; flex-direction: row-reverse; } section { padding: 1vh 3vw; list-style-type: none; border-top: 1px solid var(--themecolor); } /*bottom ###########################################################################*/ .site-info{ text-align: center; font-size: 0.4em; } /*single ##############################################################################################################*/ .single { font-size: 1.1em; } .single #focusedArticle, .page #focusedArticle { display: none; } .single article { width: 98vw; } .single .site-branding a, .page .site-branding a { font-size: 2.1em; } .single .post-thumbnail img { width: 100%; height: auto; } .single .entry-content, .page article { text-align: justify; padding: 2%; } .single .navigation h2 { display: none; } .single aside{ background:rgba(0, 0, 0, 0.1); } .single .nav-links { display: flex; width: var(--focuswidth); justify-content: space-between; } .single .nav-links div{ margin: 1em; } #comments { width: var(--focuswidth); border-top: 1px solid var(--themecolor); border-bottom: 1px solid var(--themecolor); margin-top: 2em; } #respond{ padding:2em; border-top: 1px solid var(--themecolor); margin-top: 2em; } #comments h2{ margin: 2em; } #comments input, #comments textarea { width: 50%; } #comments #submit { width: 100%; } #comments .comment-metadata { font-size: 0.5em; } #commentform p { display: flex; justify-content: space-between; padding: 1em; } .comment-list article:nth-child(n+1) { width: auto; text-align: justify; padding: 1em; } .comment-list .comment-meta { float: left; margin: 0.5em 2em; } .comment-list li{ margin: 1em; } .comment-list li:nth-child(odd){ background: rgba(0, 0, 0, 0.1); } .reply a{ background: rgba(0, 0, 0, 0.1); padding: 0.5em; display: block; text-align: center; } .reply a:hover{ background: rgba(0, 0, 0, 0.2); } /* page ##############################################################################################################*/ .page #content,.single #content { width: var(--focuswidth); } .page aside,.single aside { position: absolute; right: 0; top: 100px; width: calc(100% - var(--focuswidth)); } .page.admin-bar aside,.single.admin-bar aside { top: 135px; } #fourgrid, #modal { display: none; } @media only screen and (max-width: 780px) { :root { --focuswidth: 100vw; } html,body{ position: relative; overflow: hidden; height: 100vh; width: 100vw; } .menu{ position: absolute; left: 0; right: auto; width: auto; } #menusymbol{ margin-left: 1em; } #focusedArticle{ overflow: scroll; height: 100vh; width: 100vw; } .home #page,.archive #page, .page aside { position: absolute; width: 85vw; right: -85vw; height: auto; background: rgba(255, 255, 255, 0.8); } .home #page.vis,.archive #page.vis, .page aside.vis { right: 0px; transition: 1s; } .home #page #content, .archive #page #content { height: calc(100vh - 100px); } #masthead { flex-direction: row-reverse; justify-content: space-between; margin: 0; } #fourgrid { display: block; background: var(--themecolor); width: 2em; padding: 1em; fill: white; position: fixed; top: 1em; left: calc(100vw - 3em); border-radius: 30%; } .home.admin-bar #masthead,.archive.admin-bar #masthead{ margin-top: 46px; } .admin-bar #fourgrid { top: 35px; } #modal { background: rgba(0, 0, 0, 0.8); width: 100vw; height: 100vh; position: fixed; fill: white; top: 0px; right: 0; } #modal.vis { display: block; } } .wp-caption, .wp-caption-text, .sticky, .gallery-caption, .bypostauthor,.alignleft,.alignright,.aligncenter { background: rgba(0, 0, 0, 0); } .skip-link, .menu-toggle, .screen-reader-text, .smallscreen { display: none; } code{ background: rgba(0,0,0,0.1); margin: 5px; padding: 1px; }