@import 'open-project-mixins'; body { font-family: $font-family; font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-smoothing: antialiased; color: $main-font-color; } abbr { cursor: help; } a { &:link, &:hover, &:visited { color: $primary-dark-color; text-decoration: none; } } .item-grid { @media screen and (min-width: $bigscreen-breakpoint) { margin: 0 -#{$gutter} 0 0; display: flex; flex-flow: row wrap; justify-content: flex-start; > .item { margin-right: $gutter; } } } .index-item-grid { margin-top: 40px; @media screen and (min-width: $bigscreen-breakpoint) { margin-top: 80px; } } .main-section { margin-top: 50px; display: flex; flex-flow: column nowrap; @media screen and (min-width: $bigscreen-breakpoint) { margin-top: 100px; } > .puny-label { align-self: center; text-align: center; margin: 0; font-size: 18px; font-weight: 600; color: $primary-color; } > .title { align-self: center; text-align: center; font-weight: 600; margin-top: 0; margin-bottom: 1em; font-size: 32px; position: relative; &:after { // Underlaying border feature can be turned on // in extending sections by providing border-bottom-color // on this :after element. content: " "; border-bottom-width: 12px; border-bottom-style: solid; border-bottom-color: transparent; position: absolute; bottom: 8px; left: -5px; right: -5px; z-index: -1; } } > .items { align-self: stretch; } } .with-symbol-background { position: relative; > * { z-index: 1; position: relative; } > svg { z-index: 0; position: absolute; top: -38px; right: -60px; height: 525px; width: 525px; path { fill: rgba($primary-color, 0.08); } } } .item-card { background: white; display: block; &:link, &:hover, &:visited { color: inherit; text-decoration: none; } header { > .parent-project { display: flex; flex-flow: row nowrap; align-items: center; justify-content: space-between; .project-logo { width: 32px; height: 32px; vertical-align: middle; margin-right: 10px; } .project-title { font-size: 14px; font-weight: 600; flex: 1; color: $primary-color; .layout--software-index & { color: $hub-software--primary-color; } .layout--spec-index & { color: $hub-specs--primary-color; } } } > .title { font-weight: 600; font-size: 20px; margin: 0 0 .5em 0; } } .body { margin: 0; } footer { color: grey; font-size: 14px; .last-update, .tags { margin: 6px 0 0 0; } .last-update { padding: 0; } .tags { list-style: none; padding: 0; > li { display: inline; font-weight: 600; margin: 0; padding: 0; &::after { content: ", "; color: grey; font-weight: normal; } &:last-child::after { content: ""; } color: $primary-color; .site--hub.layout--software-index & { color: $hub-software--primary-color; } .site--hub.layout--spec-index & { color: $hub-specs--primary-color; } } } } } .post-meta-row { display: flex; flex-flow: row wrap; align-items: center; color: grey; font-size: 14px; .author-name { margin-right: 10px; white-space: nowrap; font-weight: 600; color: $primary-color; } .author-avatar { margin-right: 10px; width: 32px; height: 32px; border-radius: 50%; overflow: hidden; display: inline-block; vertical-align: middle; img { vertical-align: middle; } } } .post-card { position: relative; &.has-parent-project { padding-top: 20px; } .hub-symbol { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; svg path { fill: lighten(desaturate($primary-color, 30), 45); } } header { .title { font-weight: 600; font-size: 22px; } .external-link-icon { img { width: 16px; height: 16px; } } } footer { @extend .post-meta-row; margin-top: 14px; } } .tbd { @include tbd(); } .main-article { max-width: 750px; > header { .title { font-size: 36px; font-weight: 600; margin-bottom: 36px; } } .body { font-size: 18px; line-height: 1.65; > p:first-child { margin-top: 0; } code { @include code-snippet(); } pre { @include code-snippet-container(); } ul, ol { li > p:only-child { // Keep list items visually together margin: 0; } } table { $border-color: lighten($main-font-color, 80); border-collapse: collapse; width: 100%; margin-top: 1em; margin-bottom: 1em; th, td { text-align: left; padding: .5em; } tr { border-bottom: 1px solid $border-color; &:last-child { border-bottom-width: 0; } } } } } html, body { margin: 0; padding: 0; } .underlay, section, header, footer, article { body > &, body > main > & { padding: 0 2em; @media screen and (min-width: $bigscreen-breakpoint) { padding: 0; } } } body { display: flex; flex-flow: column nowrap; min-height: 100vh; align-items: stretch; > main { flex: 1; overflow: hidden; } } body > .underlay, body > main, body > main > .underlay { display: flex; flex-flow: column nowrap; @media screen and (min-width: $bigscreen-breakpoint) { align-items: center; } } .underlay { @media screen and (min-width: $bigscreen-breakpoint) { width: 100%; } } header, footer, section, .hero, article { body > &, body > .underlay > &, body > main > &, body > main > .underlay > & { @media screen and (min-width: $bigscreen-breakpoint) { padding: 0; width: $bigscreen-breakpoint - $gutter * 2; } @media screen and (min-width: $widescreen-breakpoint) { width: $widescreen-breakpoint - $gutter * 2; } } }