123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498 |
- @import "reset.css";
- /*
- THIS CSS FILE DOES NOT CONTAIN ANY COLOR/BACKGROUND DEFINITIONS
- ALL DEFAULT STYLES ARE FOR THE SMALLEST DEVICE, A SMARTPHONE THAT REGISTERS AS min-width 320px AND LESS THAN 29em
- OR A DESKTOP BROWSER RESIZED TO 320px WIDTH
- */
- * {
- box-sizing: border-box;
- }
- html,body {
- height:100%;
- width:100%;
- }
- body {
- font-family: sans-serif;
- /* footer stay down, even with dynamic footer height:; stackoverflow.com/a/20352949 */
- display: flex;
- flex-direction: column;
- }
- style,link {
- display: none;
- }
- /* WEBKIT SPECIFIC SCROLLBAR - width */
- ::-webkit-scrollbar { width: 0.9em; }
- /*HTML tags*/
- h1 {
- font-size: 2em;
- padding: 0.5em 0;
- line-height: 140%;
- font-weight: 600;
- }
- h2 {
- font-size: 2em;
- padding: 0.5em 0;
- line-height: 140%;
- }
- h3 {
- font-size: 1.4em;
- }
- h4 {
- font-size: 1.2em;
- }
- h3,h4 {
- padding-top: 0.5em;
- line-height: 130%;
- }
- article h1:first-child {
- font-size: 2.3em;
- padding: 0.5em 0 0.2em;
- line-height: 120%;
- }
- article .content h3::before, article .content h4::before, article .content h5::before {
- content: "~";
- opacity: 0.5;
- }
- #nounderline:hover {
- text-decoration: none;
- /*
- margin-right:0;
- letter-spacing:1px;
- font-style: italic;
- */
- }
- p, .paragraph {
- padding:0.5em 0;
- /*
- make sure paragraph stays within width constraints
- */
- word-wrap: break-word;
- }
- a:hover, a:active {
- text-decoration: underline;
- }
- a, a:visited {
- text-decoration: none;
- }
- /*
- make links in article a little bold
- */
- article a {
- font-weight: 600;
- }
- em,i {
- font-style: italic;
- }
- strong,b {
- font-weight: bold;
- }
- code,pre {
- font-family: monospace;
- /*
- white-space: pre-wrap;
- */
- word-wrap: break-word;
- }
- :not(pre) > code {
- line-height: 100%;
- padding: 0 0.2em;
- vertical-align: 0.05em;
- }
- :not(.four04) > pre {
- display: inline-block; /* stackoverflow.com/a/20673961 */
- line-height:130%;
- padding: 0.3em 0.2em 0.4em 0.2em;
- margin: 0.4em 100% 0.4em 0; /* stackoverflow.com/a/48459508 */
- border-width: 0.2em;
- border-style: solid;
- overflow: auto;
- max-width:100%;
- max-height: 19.3em; /* cut off in the middle of the line, to make it more obvious that that isn't all */
- /* allows user to select ALL text in code box with 1 click: */
- /*-webkit-user-select: all; /* Chrome 49+ */
- /*-moz-user-select: all; /* Firefox 43+ */
- /*-ms-user-select: all; /* No support yet */
- /*user-select: all; /* Likely future */
- }
- pre > code {
- display: block; /* stackoverflow.com/a/20673961 */
- }
- /*
- <pre><code>-boxes will expand to full size on hover (or tap on mobile)
- */
- pre:hover {
- max-height: initial;
- }
- blockquote {
- padding: 0.3em 0.3em 0.3em 0.7em;
- border-left-width: 0.6em;
- border-left-style: double;
- margin: 0.5em 0;
- font-size: 95%;
- line-height: 125%;
- }
- kbd {
- font-family: monospace;
- padding: 0.2em 0.3em 0.1em 0.3em;
- border-width: 0.2em;
- border-style: solid;
- border-radius: 0.2em;
- margin: 0.1em;
- }
- ul,ol {
- padding: .25em 0 .25em 1.5em;
- }
- li {
- padding-top: .2em;
- }
- hr {
- height: 0;
- border-width: 2px;
- border-style: solid;
- margin: 1.5em 0;
- }
- /*
- Display only for desktop type device widths
- */
- .desktop-device {
- display:none;
- }
- /*various elements*/
- header .inner, footer .inner {
- padding: .5em;
- }
- /*HEADER*/
- header .inner {
- position:relative;
- height:60px;
- padding-right: 56px; /*leave space for header image*/
- }
- header ul, nav ul {
- list-style: none;
- padding:0;
- }
- header ul li {
- float: left;
- padding: .8em .3em .8em 0;
- font-size: 1.2em;
- }
- header ul li:last-of-type {
- padding-right: 0;
- }
- header ul li a {
- padding: .8em .5em .5em 0;
- }
- header .inner img {
- height:100%;
- -ms-interpolation-mode: nearest-neighbor;
- image-rendering: -webkit-optimize-contrast;
- image-rendering: -webkit-crisp-edges;
- image-rendering: -moz-crisp-edges;
- image-rendering: -o-crisp-edges;
- image-rendering: pixelated;
- padding:0;
- position: absolute;
- right:0;
- top:0;
- }
- /*
- not enough horizontal space on mobile/portrait:
- */
- header .inner .title {
- display:none;
- }
- /* clickable menu*/
- input#menu-icon {
- display: none;
- }
- label[for="menu-icon"] {
- display: inline-block;
- width: 100%;
- padding:0.5em;
- text-decoration: underline;
- }
- input[type=checkbox] ~ label::before {
- content: "→"
- }
- input[type=checkbox]:checked ~ label::before {
- content: "←"
- }
- nav#menu-icon {
- display: none;
- list-style: none;
- padding: .5em;
- }
- input[type=checkbox]:checked ~ nav#menu-icon {
- display: inline-block;
- }
- .flexbox {
- display:flex;
- }
- .flexbox > *:first-child {
- align-self: center;
- flex: 1 0 auto;
- }
- .flexbox > *:last-child {
- align-self: center;
- flex: 0 1 auto;
- }
- .small, aside {
- line-height: 1.4em;
- font-size: 0.8em;
- }
- .small span {
- padding: 0 0.2em;
- }
- .tag_cloud > div {
- letter-spacing: .75em;
- font-size: 0.9em;
- font-weight: bold;
- }
- .tag_cloud ul {
- padding:0;
- word-break: break-all;
- line-height:140%;
- }
- .tag_cloud li {
- display: inline-block;
- padding: 0;
- margin-right: .1rem;
- }
- /* this is the tag count of the tag cloud */
- .tag_cloud li span {
- font-size:0.7rem; /*must be rem here!*/
- line-height:1;
- opacity:0.5;
- }
- .tag_cloud li a {
- padding: .2rem .2rem .2rem 0;
- display: block;
- }
- section#content > * {
- padding: .5em;
- }
- section#content {
- margin-bottom: 1.5em;
- }
- article {
- line-height: 1.4em;
- }
- article p.description {
- padding-top: 0;
- }
- article aside .tag {
- float:right;
- margin-left:0.5em;
- }
- article aside .date {
- float:left;
- }
- article aside .timeline {
- opacity:0.5;
- font-weight: 100;
- }
- article aside .author {
- float:left;
- margin-left:0.5em;
- }
- article.fullpage {
- margin-top: 1em;
- }
- article.fullpage aside {
- margin-bottom: 2em;
- }
- article img {
- width: 100%;
- float: none;
- }
- article img.right, article img.left {
- float: none;
- }
- .border {
- border-width: 0.2em;
- border-style: solid;
- }
- footer {
- margin-top: auto;
- }
- footer p a {
- padding: 0.5em 0.2em;
- }
- footer .right {
- margin-left: 1em;
- }
- .right {
- float:right;
- }
- .left {
- float:left;
- }
- li p {
- padding: 0;
- }
- /* Input Styles */
- input,
- textarea,
- select {
- border-width: 0.1em;
- border-style: solid;
- margin: 0;
- font-size: 100%;
- border-radius: 0;
- }
- input:focus,
- textarea:focus,
- select:focus {
- border-width: 0.1em;
- border-style: solid;
- }
- /* remove stupid red border - stackoverflow.com/a/6189446 */
- input:required, input:invalid {
- box-shadow:none;
- }
- .pagination {
- margin: 1em 0 0 0;
- position: relative;
- }
- .pagination .previous {
- float: left;
- }
- .pagination .next {
- float: right;
- }
- .pagination span:nth-child(2) {
- /* same logic for .previous and .next */
- margin-left: 0.5em;
- }
- .pagination .current {
- position: absolute;
- text-align: center;
- width:100%;
- z-index: -10;
- left:0;
- }
- /*------------CLEARFIX!----------------*/
- .clearfix:before,.clearfix:after {
- content: " ";
- display: table;
- }
- .clearfix:after {
- clear: both;
- }
- .clearfix {
- *zoom: 1;
- }
- /* ################################################
- * B R E A K P O I N T S S T A R T H E R E *
- * ################################################ */
- /*
- THIS IS WHAT MY PHONE REGISTERS AS IN LANDSCAPE MODE
- */
- @media screen and (min-width: 480px) and (max-width: 1023px) {
- header .inner, footer .inner, section#content > *, label[for="menu-icon"], nav#menu-icon {
- /*just adding a little horizontal spacing*/
- padding-left: 1em;
- }
- }
- /*
- NON-MOBILE DEVICES (ALSO LAPTOPS) USUALLY START AT THIS BREAKPOINT
- */
- @media screen and (min-width: 768px) {
- .mobile-device {
- display:none;
- }
- .desktop-device {
- display:initial;
- }
- :not(.four04) > pre {
- padding: 0.4em 1em 0.55em 0.7em; /* need to accomodate vert. scrollbar on the right */
- }
- header .inner {
- height:75px;
- }
- body > .inner {
- padding: 1em 0;
- }
- section#sidebar {
- float: left;
- width: 30%;
- }
- label[for="menu-icon"] {
- display:none;
- }
- nav#menu-icon {
- display: inline-block;
- position:initial;
- }
- section#content {
- float: right;
- width: 70%;
- padding-left: 0.5em;
- }
- .tag_cloud > div {
- font-size: 1rem;
- margin-bottom: .5em;
- }
- .tag_cloud li a {
- padding: .3rem .3rem .3rem 0;
- }
- article img {
- width: initial;
- margin: 0.25em 0.5em 0.25em 0;
- }
- article img.right, article img.left {
- max-width: 50%;
- }
- article img.right {
- float: right;
- margin: 0.3em 0 1em 1em;
- }
- article img.left {
- float: left;
- margin: 0.3em 1em 0.2em 0;
- }
- article h1:first-child {
- margin-right: .5em; /* it's not nice when it gets too close to the right edge */
- }
- }
- /*
- WIDE ENOUGH TO NOT USE 100% WIDTH
- */
- @media screen and (min-width: 1024px) {
- .inner {
- width:90%;
- margin: 0 auto;
- }
- header .inner img {
- left:50%;
- margin-left:-28px; /*half of image width*/
- }
- header .inner {
- padding-right: 0;
- }
- header .inner .title {
- display: initial;
- float: right;
- padding: .5em;
- font-size: 1.6em;
- }
- header .inner ul li {
- font-size: 1.3em;
- }
- }
|