Instruction
stringlengths
14
778
input_code
stringlengths
0
4.24k
output_code
stringlengths
1
5.44k
Remove non-standard global button style that spills into the containing layout.
.button { font-family: 'museo_sans'; font-weight: 700; filter: none !important; } .squeeze { margin-top: -7px; margin-bottom: 3px; } .visibly-hidden { opacity: 0; transition: opacity 0.3s linear; } strong { font-weight: 700; } ul { font-size: $font-medium; } .knock-back { color: #999; } .accent { font-size: $font-large; line-height: 1.5; &.accent--medium { font-size: px(20); font-weight: 500; } }
.squeeze { margin-top: -7px; margin-bottom: 3px; } .visibly-hidden { opacity: 0; transition: opacity 0.3s linear; } strong { font-weight: 700; } ul { font-size: $font-medium; } .knock-back { color: #999; } .accent { font-size: $font-large; line-height: 1.5; &.accent--medium { font-size: px(20); font-weight: 500; } }
Add subtle hover effect on clickable image
.darkswarm { products { product { .product-thumb { // Desktop: the product summary is nine columns wide. Use two // for the image. 100% / 9 * 2 = 22.222% <= 192px width: calc(22.222%); float: left; // Mobile: the summary has full twelve columns and the image // should take four of them. 100% / 12 * 4 = 33.333% <= 227px @include breakpoint(phablet) { width: calc(33.333%); } // Make this an anchor for the bulk label. position: relative; .product-thumb__bulk-label { background-color: $grey-700; color: white; position: absolute; right: 0; top: .8em; padding: .25em .5em; } } } } }
.darkswarm { products { product { .product-thumb { // Desktop: the product summary is nine columns wide. Use two // for the image. 100% / 9 * 2 = 22.222% <= 192px width: calc(22.222%); float: left; // Mobile: the summary has full twelve columns and the image // should take four of them. 100% / 12 * 4 = 33.333% <= 227px @include breakpoint(phablet) { width: calc(33.333%); } // Make this an anchor for the bulk label. position: relative; .product-thumb__bulk-label { background-color: $grey-700; color: white; position: absolute; right: 0; top: .8em; padding: .25em .5em; } &:hover { filter: brightness(96%); } } } } }
Remove top/bottom margin so we don't have to account for in calculations
.pull-request-quick-view { position: absolute; left: 365px; .pull-request-quick-view-contents { background-color: var(--background-color); margin: var(--spacing-double); min-width: 400px; border-radius: var(--border-radius); overflow: hidden; .header { display: flex; padding: var(--spacing-double); padding-bottom: var(--spacing); border-bottom: var(--base-border); .action-needed { flex-grow: 1; padding-left: var(--spacing-double); } } .pull-request { padding: var(--spacing-double); max-height: 500px; overflow: scroll; .status { background-color: var(--pr-open-icon-color); color: #{$white}; display: inline-flex; align-items: center; padding: var(--spacing-half) var(--spacing); font-size: var(--font-size-md); font-weight: var(--font-weight-semibold); border-radius: 2em; .state { margin-left: var(--spacing-half); } &.draft { background-color: var(--pr-draft-icon-color); } } .title { margin: var(--spacing) 0; .pr-badge { display: inline-flex; } } } } }
.pull-request-quick-view { position: absolute; left: 365px; .pull-request-quick-view-contents { background-color: var(--background-color); margin: 0 var(--spacing-double); min-width: 400px; border-radius: var(--border-radius); overflow: hidden; .header { display: flex; padding: var(--spacing-double); padding-bottom: var(--spacing); border-bottom: var(--base-border); .action-needed { flex-grow: 1; padding-left: var(--spacing-double); } } .pull-request { padding: var(--spacing-double); max-height: 500px; overflow: scroll; .status { background-color: var(--pr-open-icon-color); color: #{$white}; display: inline-flex; align-items: center; padding: var(--spacing-half) var(--spacing); font-size: var(--font-size-md); font-weight: var(--font-weight-semibold); border-radius: 2em; .state { margin-left: var(--spacing-half); } &.draft { background-color: var(--pr-draft-icon-color); } } .title { margin: var(--spacing) 0; .pr-badge { display: inline-flex; } } } } }
Add the variable height of the logo
/*! * Harrix HTML Template (https://github.com/Harrix/Harrix-HTML-Template) * Copyright 2018 Sergienko Anton * Licensed under MIT (https://github.com/Harrix/Harrix-HTML-Template/blob/master/LICENSE) */ @charset "utf-8"; @import "~bulma/sass/utilities/initial-variables"; @import "~bulma/sass/utilities/functions"; // Typography $family-sans-serif: -apple-system, BlinkMacSystemFont, Roboto, 'Open Sans', 'Helvetica Neue', sans-serif; $family-monospace: 'Roboto Mono', monospace; $teal: #19a5a5; $teal-light: #71c2c2; @import "~bulma/sass/utilities/derived-variables"; $link: $teal; $navbar-dropdown-boxed-shadow: none; $navbar-box-shadow-size: 0; $navbar-item-hover-background-color: transparent; // @import "~bulma/bulma"; $animation-duration: 0.2s; $animation-type: ease-in-out; @import "fonts"; @import "mixins"; @import "header";
/*! * Harrix HTML Template (https://github.com/Harrix/Harrix-HTML-Template) * Copyright 2018 Sergienko Anton * Licensed under MIT (https://github.com/Harrix/Harrix-HTML-Template/blob/master/LICENSE) */ @charset "utf-8"; @import "~bulma/sass/utilities/initial-variables"; @import "~bulma/sass/utilities/functions"; // Typography $family-sans-serif: -apple-system, BlinkMacSystemFont, Roboto, 'Open Sans', 'Helvetica Neue', sans-serif; $family-monospace: 'Roboto Mono', monospace; $teal: #19a5a5; $teal-light: #71c2c2; $logo-height: 3.125rem; $logo-height-shrink: 2.5rem; @import "~bulma/sass/utilities/derived-variables"; $link: $teal; $navbar-dropdown-boxed-shadow: none; $navbar-box-shadow-size: 0; $navbar-item-hover-background-color: transparent; // @import "~bulma/bulma"; $animation-duration: 0.2s; $animation-type: ease-in-out; @import "fonts"; @import "mixins"; @import "header";
Use small-caps in the game-list
.game-list { ul { @include list-block; border: solid 1px; } li { position: relative; } li + li { margin-top: 0; border-top: solid 1px; } li:hover .game-background { opacity: 0.05; } .game-background { width: 100%; height: 100%; position: absolute; transition: opacity 0.05s; opacity: 0.15; } .game-info { @include block-link; margin-top: 0; position: relative; text-shadow: 0 0 15px #efefef; color: $app-color; font-weight: bold; } .game-title { flex: 1; } }
.game-list { ul { @include list-block; border: solid 1px; } li { position: relative; } li + li { margin-top: 0; border-top: solid 1px; } li:hover .game-background { opacity: 0.05; } .game-background { width: 100%; height: 100%; position: absolute; transition: opacity 0.05s; opacity: 0.15; } .game-info { @include block-link; margin-top: 0; position: relative; text-shadow: 0 0 15px #efefef; color: $app-color; font-weight: 500; font-feature-settings: 'smcp'; } .game-title { flex: 1; } }
Make links on user menu brand-colored
.mu-user-menu { display: flex; justify-content: space-around; } .mu-user-menu-section { margin-bottom: 30px; } .mu-user-menu-header { font-size: 15px; color: $mu-color-disabled; text-transform: uppercase; margin-bottom: 5px; } .mu-user-menu-item { font-size: 17px; margin-bottom: 5px; } .mu-user-menu-vertical-divider { border-left: 3px solid $mu-color-separator; display: inline-block; }
.mu-user-menu { display: flex; justify-content: space-around; } .mu-user-menu-section { margin-bottom: 30px; } .mu-user-menu-header { font-size: 15px; color: $mu-color-disabled; text-transform: uppercase; margin-bottom: 5px; } .mu-user-menu-item { font-size: 17px; margin-bottom: 5px; a { color: $brand-primary; } } .mu-user-menu-vertical-divider { border-left: 3px solid $mu-color-separator; display: inline-block; }
Make sure default cells have a width
@import "../_vars.scss"; :host { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
@import "../_vars.scss"; :host { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; min-width: var(--theme-h2); }
Fix better cookie notice styling on mobile
.cc { &-window { background-color: black; bottom: 0; color: white; display: flex; justify-content: space-around; align-items: center; height: $topbar-height; left: 0; padding: 8px; position: fixed; right: 0; z-index: 9999; } &-btn { background-color: $brand-primary; color: white !important; border-radius: 3px; text-decoration: none !important; padding: 5px 6px 4px; } &-invisible { display: none; } }
.cc { &-window { align-items: center; background-color: black; bottom: 0; color: white; display: flex; min-height: $topbar-height; justify-content: space-around; left: 0; line-height: 1.2; padding: 8px; position: fixed; right: 0; z-index: 9999; } &-btn { background-color: $brand-primary; color: white !important; border-radius: 3px; text-decoration: none !important; padding: 5px 6px 4px; } &-invisible { display: none; } }
Reformat the definition detail panel so that more info fits; add notes so that it is clear that something bad happens to the definition.
/*** Form5 responsive form using flexbox ***/ $form-label-color: #363636 !default; .ui-f5 { } .ui-f5-pair { } /*-- horizontal forms --*/ .ui-f5-h { display: flex; flex-direction: row; justify-items: flex-start; } .ui-f5-pair-h { display: inline-block; margin: 0 10px 8px 0; } .ui-f5-lbl > label { color: $form-label-color; font-weight: $form-label-weight; } /*-- vertical forms --*/ .ui-f5-v { display: flex; flex-direction: column; justify-items: flex-start; } .ui-f5-lbl-v { display: inline-block; min-width: $form-label-width; } .ui-f5-pair-v { display: flex; flex-direction: row; justify-items: flex-start; margin: 5px 0; }
/*** Form5 responsive form using flexbox ***/ $form-label-color: #363636 !default; .ui-f5 { } .ui-f5-pair { } /*-- horizontal forms --*/ .ui-f5-h { display: flex; flex-direction: row; justify-items: flex-start; flex-wrap: wrap; } .ui-f5-pair-h { display: inline-block; margin: 0 10px 8px 0; } .ui-f5-lbl > label { color: $form-label-color; font-weight: $form-label-weight; } /*-- vertical forms --*/ .ui-f5-v { display: flex; flex-direction: column; justify-items: flex-start; } .ui-f5-lbl-v { display: inline-block; min-width: $form-label-width; } .ui-f5-pair-v { display: flex; flex-direction: row; justify-items: flex-start; margin: 5px 0; }
Increase chat text bar size
@import '../Constants'; .ChatMessageForm { display: flex; flex-basis: 32px; flex-shrink: 0; flex-grow: 0; overflow: hidden; border-left: 1px solid $background-gray; .ChatMessageForm__input, .ChatMessageForm__input:focus { flex-grow: 1; border: 0; outline: 0; padding: 0 5px; height: 32px; } .ChatMessageForm__button { border-radius: 0; flex-basis: 48px; flex-shrink: 0; flex-grow: 0; min-width: 48px !important; > button { height: 32px !important; width: 100%; line-height: 32px !important; } * { border-radius: 0 !important; } } }
@import '../Constants'; .ChatMessageForm { display: flex; flex-basis: 48px; flex-shrink: 0; flex-grow: 0; overflow: hidden; border-left: 1px solid $background-gray; .ChatMessageForm__input, .ChatMessageForm__input:focus { flex-grow: 1; border: 0; outline: 0; padding: 0 8px; height: 48px; } .ChatMessageForm__button { border-radius: 0; flex-basis: 48px; flex-shrink: 0; flex-grow: 0; min-width: 48px !important; > button { height: 48px !important; width: 100%; } * { border-radius: 0 !important; } } }
Add action plan image to intro component.
// Larger text size for the article introductory paragraph. // // Styleguide intro .intro { @extend %text-introParagraph; @extend %clearfix; clear: both; line-height: $bl*5; }
// Larger text size for the article introductory paragraph. // // Styleguide intro .intro { @extend %text-introParagraph; @extend %clearfix; clear: both; line-height: $bl*5; > img { @include respond-to(700px) { float:left; margin-right: $bl*3; } } }
Update edit line item design
$base-ui-element-offset: 12px 9px; $base-ui-element-font-size: $base-font-size; $base-ui-element-font-family: $base-font; $base-ui-element-line-height: 1; $base-ui-element-border: 1px solid get-color('additional', 'light'); $base-ui-element-border-radius: 5px; $base-ui-element-bg-color: get-color('additional', 'ultra'); $base-ui-element-color: get-color('additional', 'darker');
$base-ui-element-offset: 11px 9px; $base-ui-element-font-size: $base-font-size; $base-ui-element-font-family: $base-font; $base-ui-element-line-height: 1; $base-ui-element-border: 1px solid get-color('additional', 'light'); $base-ui-element-border-radius: 5px; $base-ui-element-bg-color: get-color('additional', 'ultra'); $base-ui-element-color: get-color('additional', 'darker');
Create .ltie9 selectivizr margin overrides for headings in case margins are changed in a media query
/* -------------------------------------------- List Bullet Removal & Display None ----------------------------------------------- */ .rc li:before { display: none; } /* -------------------------------------------- Constants ----------------------------------------------- */ .std_width { min-width: $site-width; } /* -------------------------------------------- Simple Customisations ----------------------------------------------- */ @import "bp-img-float"; /* -------------------------------------------- Forms ----------------------------------------------- */ @import "bp-form-fields"; @if ($form-bp > 0) { .f_row label, .f_row .label, p.legend { .ltie8 & { width: $form-label-width - $form-label-margin; } } .btns, .f_comment, .rc ul, .required { .ltie8 & { margin-left: ($form-label-margin + $form-label-width) - $form-label-margin; } } }
/* -------------------------------------------- List Bullet Removal & Display None ----------------------------------------------- */ .rc li:before { display: none; } /* -------------------------------------------- Constants ----------------------------------------------- */ .std_width { min-width: $site-width; } %ltie9-no-mt { margin-top: 0; } @for $h from 1 to 7 { h#{$h}.slvzr-first-child, .h#{$h}.slvzr-first-child { @extend %ltie9-no-mt; } } /* -------------------------------------------- Simple Customisations ----------------------------------------------- */ @import "bp-img-float"; /* -------------------------------------------- Forms ----------------------------------------------- */ @import "bp-form-fields"; @if ($form-bp > 0) { .f_row label, .f_row .label, p.legend { .ltie8 & { width: $form-label-width - $form-label-margin; } } .btns, .f_comment, .rc ul, .required { .ltie8 & { margin-left: ($form-label-margin + $form-label-width) - $form-label-margin; } } }
Use -margin-bottom instead of 20px
.nav-tabs, .nav-pills { li a:hover { color: $white; } } .nav-tabs { margin-bottom: 20px; }
.nav-tabs, .nav-pills { li a:hover { color: $white; } } .nav-tabs { margin-bottom: $navbar-margin-bottom; }
Add password fields to input styling.
.Form { input[type="text"], textarea { @extend .u-mb-2; box-sizing: border-box; width: 100%; padding: 0.5rem 0.8rem 0.3rem; border: 1px solid $grey-med; border-radius: 0; background-color: $white; transition: border-color 100ms ease-in; -moz-appearance: none; -webkit-appearance: none; box-shadow: inset 0 1px 2px rgba(10, 10, 10, 0.1); border-radius: 3px; line-height: 1.6; &:focus { border-color: $c-gamma-light; outline: none; } } label { font-weight: 700; line-height: 2.6; } input[type="checkbox"] { margin-right: 10px; } input[type="file"] { margin-bottom: 2rem; width: 100%; } }
.Form { input[type="text"], input[type="password"], textarea { @extend .u-mb-2; box-sizing: border-box; width: 100%; padding: 0.5rem 0.8rem 0.3rem; border: 1px solid $grey-med; border-radius: 0; background-color: $white; transition: border-color 100ms ease-in; -moz-appearance: none; -webkit-appearance: none; box-shadow: inset 0 1px 2px rgba(10, 10, 10, 0.1); border-radius: 3px; line-height: 1.6; &:focus { border-color: $c-gamma-light; outline: none; } } label { font-weight: 700; line-height: 2.6; } input[type="checkbox"] { margin-right: 10px; } input[type="file"] { margin-bottom: 2rem; width: 100%; } }
Call open color sass file
@charset "utf-8"; // Import partials from `sass_dir` (defaults to `_sass`) // Configuration @import "config/colors"; @import "config/mediaqueries"; @import "config/typography"; // Tool @import "tool/utilities"; // Base @import "base/layout"; // Generic //@import "generic/broken-images"; @import "generic/normalize-opentype"; @import "generic/syntax-highlighting"; @import "generic/skiplink"; @import "generic/print"; // Object @import "object/header"; @import "object/pagination"; @import "object/posts";
@charset "utf-8"; // Import partials from `sass_dir` (defaults to `_sass`) // Configuration @import "config/open-color"; @import "config/colors"; @import "config/mediaqueries"; @import "config/typography"; // Tool @import "tool/utilities"; // Base @import "base/layout"; // Generic //@import "generic/broken-images"; @import "generic/normalize-opentype"; @import "generic/syntax-highlighting"; @import "generic/skiplink"; @import "generic/print"; // Object @import "object/header"; @import "object/pagination"; @import "object/posts";
Make the welcome page behave well when the window is too narrow.
@import 'palette'; #welcome_body { color: $theme3_fg; background-color: $theme3_bg; text-align: center; min-height: 100%; #welcome_content { width: 26em; margin: 0 auto; a { color: $theme3_fg; font-weight: bold; } #welcome_header { #welcome_header_logo { padding: 16px 0px; } #welcome_header_project { font-size-adjust: 1.25; padding-top: 1em; padding-bottom: 1.5em; } } ul#blurb { text-align: left; margin-left: 0; line-height: 1.6; li i { width: 1.5em; } } #welcome_links { #explore_library { /* invert colors */ display: inline-block; background-color: $theme3_fg; border-radius: 0.5em; margin-bottom: 1em; padding: 0.75em; width: 12em; a { color: $theme3_bg; } } } } }
@import 'palette'; #welcome_body { color: $theme3_fg; background-color: $theme3_bg; text-align: center; min-height: 100%; #welcome_content { width: 26em; margin: 0 auto; max-width: 100%; a { color: $theme3_fg; font-weight: bold; } #welcome_header { #welcome_header_logo { padding: 16px 0px; } #welcome_header_project { font-size-adjust: 1.25; padding-top: 1em; padding-bottom: 1.5em; } } ul#blurb { text-align: left; margin-left: 0; line-height: 1.6; li i { width: 1.5em; } } #welcome_links { #explore_library { /* invert colors */ display: inline-block; background-color: $theme3_fg; border-radius: 0.5em; margin-bottom: 1em; padding: 0.75em; width: 12em; a { color: $theme3_bg; } } } } }
Change fill color of 王
.Wang { height: rem(35); fill: $white; transition: transition-default(); &:hover { fill: #ed9e87; } svg { height: 100%; } } .App-header { display: flex; align-items: center; justify-content: space-around; height: 55px; background-color: #000; .nav a { font-size: .9rem; } } // 576 @media screen and (min-width: map-get($breakpoints, sm)) { .App-header { height: 90px; .nav a { padding: 0 1rem; } } .headroom--unfixed { .App-header { height: 90px; .nav a { font-size: .95rem; } } } }
.Wang { height: rem(35); fill: $white; transition: transition-default(); &:hover { fill: $yellow; } svg { height: 100%; } } .App-header { display: flex; align-items: center; justify-content: space-around; height: 55px; background-color: #000; .nav a { font-size: .9rem; } } // 576 @media screen and (min-width: map-get($breakpoints, sm)) { .App-header { height: 90px; .nav a { padding: 0 1rem; } } .headroom--unfixed { .App-header { height: 90px; .nav a { font-size: .95rem; } } } }
Expand SASS. Automatically Darken Color.
$navbar-color: green; .block-content--customnav { background-color: $navbar-color; }
$navbar-color: green; $navbar-highlight: darken($navbar-color, 10%); .block-content--customnav { background-color: $navbar-color; } .navlogo { background-color: $navbar-color; border-right: 1px solid $navbar-highlight; } .block-content--customnav ul.navtop { border-bottom: 1px solid $navbar-highlight; }
Add a wider border to split laws
@import '~styles/settings.scss'; .column { height: 100%; display: flex; align-items: center; margin-right: 0 !important; // Due to the :global in styles a { border-bottom: none !important; text-decoration: underline !important; } } .headerRow { > div { margin-right: 0 !important; // Due to the :global in styles justify-content: center; align-items: center; &:nth-child(1), &:nth-child(2) { justify-content: start; } } } .row { padding-top: 0 !important; // Due to the :global in styles padding-bottom: 0 !important; // Due to the :global in styles } .oddRow { background-color: $lighter-blue; }
@import '~styles/settings.scss'; .column { height: 100%; display: flex; align-items: center; margin-right: 0 !important; // Due to the :global in styles a { border-bottom: none !important; text-decoration: underline !important; } // Split laws from the rest &:nth-child(8) { border-left: 3px solid $gray2; } } .headerRow { > div { margin-right: 0 !important; // Due to the :global in styles justify-content: center; align-items: center; &:nth-child(1), &:nth-child(2) { justify-content: start; } } } .row { padding-top: 0 !important; // Due to the :global in styles padding-bottom: 0 !important; // Due to the :global in styles } .oddRow { background-color: $lighter-blue; }
Add additional styles to the color swatches
/*------------------------------------*\ $PATTERN LAB-SPECIFIC STYLES \*------------------------------------*/ /** * This stylesheet is for styles you want to include only when the interface is being viewed within Pattern Lab. * This is helpful for displaying demo styles for grids, animations, color swatches, etc * It's also helpful for overriding context-specific styles like fixed or absolutely positioned elements * These styles will not be your production CSS. */ // Demo box for animation .demo-animate { background: #ddd; padding: 1em; margin-bottom: 1em; text-align: center; border-radius: 8px; cursor: pointer; } // Style Guide color swatches .sg-colors { display: flex; flex-wrap: wrap; li { flex: auto; padding: 0.3em; margin: 0 0.5em 0.5em 0; min-width: 5em; border: 1px solid #ddd; border-radius: 8px; } } .sg-swatch { display: block; height: 4em; margin-bottom: 0.3em; border-radius: 5px; } .sg-label { font-size: 90%; line-height: 1; } // Style Guide fonts .sg-fonts p { margin-bottom: 0.3em; }
/*------------------------------------*\ $PATTERN LAB-SPECIFIC STYLES \*------------------------------------*/ /** * This stylesheet is for styles you want to include only when the interface is being viewed within Pattern Lab. * This is helpful for displaying demo styles for grids, animations, color swatches, etc * It's also helpful for overriding context-specific styles like fixed or absolutely positioned elements * These styles will not be your production CSS. */ // Demo box for animation .demo-animate { background: #ddd; padding: 1em; margin-bottom: 1em; text-align: center; border-radius: 8px; cursor: pointer; } // Style Guide color swatches .sg-colors { display: flex; flex-wrap: wrap; list-style: none !important; padding: 0 !important; margin: 0 !important; li { flex: auto; padding: 0.3em; margin: 0 0.5em 0.5em 0; min-width: 5em; border: 1px solid #ddd; border-radius: 8px; } } .sg-swatch { display: block; height: 4em; margin-bottom: 0.3em; border-radius: 5px; } .sg-label { font-size: 90%; line-height: 1; } // Style Guide fonts .sg-fonts p { margin-bottom: 0.3em; }
Make topics stand out more
@import 'primer/index.scss'; .link-url { &.css-truncate.css-truncate-target, &.css-truncate .css-truncate-target { max-width: 100%; } } .Item-row { &.Box-row--hover-gray:first-of-type { border-top-color: #e1e4e8; } } .Box-row--topic { .Box-row-link { font-weight: 500; } } .Label { margin-right: 0.5rem; }
@import 'primer/index.scss'; .link-url { &.css-truncate.css-truncate-target, &.css-truncate .css-truncate-target { max-width: 100%; } } .Item-row { &.Box-row--hover-gray:first-of-type { border-top-color: #e1e4e8; } } .Box-row--topic { .Box-row-link { @extend .text-bold; } } .Label { margin-right: 0.5rem; }
Add an explanational comment in the Debug.scss file-header
/*! * Debug Code * * @package #{ext_directory()} * @path Generic/_Debug.scss */ /* ============================================================================= $ Environment banner ================================================================================ */ body { @if compass-env() == 'development' { &::before { position: absolute; top: 0; right: 0; z-index: 99999; padding: 5px 10px; content: 'Development'; border: 2px solid #000; background: red; text-transform: uppercase; color: #000; font-weight: $bold; font-size: 10px; } } }
/*! * Debug code wich applies if the compass env is set to 'development' * * @package #{ext_directory()} * @path Generic/_Debug.scss */ /* ============================================================================= $ Environment banner ================================================================================ */ body { @if compass-env() == 'development' { &::before { position: absolute; top: 0; right: 0; z-index: 99999; padding: 5px 10px; content: 'Development'; border: 2px solid #000; background: red; text-transform: uppercase; color: #000; font-weight: $bold; font-size: 10px; } } }
Reduce letter spacing so that code examples are less-likely to overflow
#chapter { margin-left: 5em; padding: 2.5rem 1.5rem; p { line-height: 1.75; } .image { margin: 3rem 0; text-align: center; img { border: 1px solid #eee; width: 95%; } .missing_image { background: red; color: white; } } .aside { background: #D9F1FF; padding: 1rem; margin-bottom: 2rem; } pre, code { font: 12px 'Input Mono', Inconsolata, Menlo, monospace; } pre { line-height: 150%; } } #section_listing { list-style-type: none; margin-left: -2rem; font-size: 90%; li { margin-bottom: 1rem; &.major { font-weight: bold; } &.minor { font-size: 90%; line-height: 90%; } } } .note_button { float: left; position: absolute; left: -7rem; font-size: 90%; } .footnote_container { margin: 20px 0; color: lighten(#444, 25); font-size: 90%; .number { font-size: 75%; float: left; margin-right: 10px; } }
#chapter { margin-left: 5em; padding: 2.5rem 1.5rem; p { line-height: 1.75; } .image { margin: 3rem 0; text-align: center; img { border: 1px solid #eee; width: 95%; } .missing_image { background: red; color: white; } } .aside { background: #D9F1FF; padding: 1rem; margin-bottom: 2rem; } pre, code { font: 12px 'Input Mono', Inconsolata, Menlo, monospace; letter-spacing: -0.5px; } pre { line-height: 150%; } } #section_listing { list-style-type: none; margin-left: -2rem; font-size: 90%; li { margin-bottom: 1rem; &.major { font-weight: bold; } &.minor { font-size: 90%; line-height: 90%; } } } .note_button { float: left; position: absolute; left: -7rem; font-size: 90%; } .footnote_container { margin: 20px 0; color: lighten(#444, 25); font-size: 90%; .number { font-size: 75%; float: left; margin-right: 10px; } }
Use ubuntu font in panel headings in profile view
#profile-view { .edit-registration-header { margin-top: 0; font-family: Ubuntu-medium; font-size: 48px; } .panel-content { padding: 0px; } }
#profile-view { .edit-registration-header { margin-top: 0; font-family: Ubuntu-medium; font-size: 48px; } .panel-heading .lead { font-family: Ubuntu-medium; font-size: 22px; } .panel-content { padding: 0px; } }
Delete bunch of type presets
body { color: $base-font-color; font-family: $base-font-family; font-feature-settings: "kern", "liga", "pnum"; font-size: $base-font-size; line-height: $base-line-height; } h1, h2, h3, h4, h5, h6 { font-family: $heading-font-family; font-size: $base-font-size; line-height: $heading-line-height; margin: 0; } p { margin: 0 0 $small-spacing; } a { color: $action-color; text-decoration: none; // transition: color $base-duration $base-timing; &:active, &:focus, &:hover { color: shade($action-color, 25%); } } hr { border-bottom: $base-border; border-left: 0; border-right: 0; border-top: 0; margin: $base-spacing 0; } img, picture { margin: 0; max-width: 100%; }
body { font-feature-settings: "kern", "liga", "pnum"; } h1, h2, h3, h4, h5, h6 { font-family: $heading-font-family; font-size: $base-font-size; } p { margin: 0 0 $small-spacing; } a { color: $action-color; text-decoration: none; &:active, &:focus, &:hover { color: shade($action-color, 25%); } } hr { border-bottom: $base-border; border-left: 0; border-right: 0; border-top: 0; margin: $base-spacing 0; } img, picture { margin: 0; max-width: 100%; }
Update neat-helpers path to neat bower pkg
@import "neat-helpers"; // or "../neat/neat-helpers" when not in Rails // Neat Overrides // $column: 90px; // $gutter: 30px; // $grid-columns: 12; // $max-width: 1200px; // Neat Breakpoints $medium-screen: 600px; $large-screen: 900px; $medium-screen-up: new-breakpoint(min-width $medium-screen 4); $large-screen-up: new-breakpoint(min-width $large-screen 8);
@import "bower_components/neat/app/assets/stylesheets/neat-helpers"; // or "../neat/neat-helpers" when not in Rails // Neat Overrides // $column: 90px; // $gutter: 30px; // $grid-columns: 12; // $max-width: 1200px; // Neat Breakpoints $medium-screen: 600px; $large-screen: 900px; $medium-screen-up: new-breakpoint(min-width $medium-screen 4); $large-screen-up: new-breakpoint(min-width $large-screen 8);
Fix typo in test Sass file
/*doc --- title: Button name: button category: button --- A button is a button. ```html <a href="#" class="button">Button</a> ``` <a href="#" class="button">Button</a> */ //// /// @group button //// /// Default padding for buttons. /// @type Number $button-padding: 1rem; /// Default background color for buttons. /// @type Color $button-background: #60c2ff; /// Creates a basic button. /// @param {Number} $padding [$button-padding] - Padding around the text of the button. /// @param {Color} $padding [$button-background] - Backgrounf color of the button. @mixin button( $padding: $button-padding, $background: $button-background ) { $color: if(lightness($background) > 60%, #000, #fff); display: inline-block; padding: $padding; background: $background; color: $color; } .button { @include button; }
/*doc --- title: Button name: button category: button --- A button is a button. ```html <a href="#" class="button">Button</a> ``` <a href="#" class="button">Button</a> */ //// /// @group button //// /// Default padding for buttons. /// @type Number $button-padding: 1rem; /// Default background color for buttons. /// @type Color $button-background: #60c2ff; /// Creates a basic button. /// @param {Number} $padding [$button-padding] - Padding around the text of the button. /// @param {Color} $background [$button-background] - Backgrounf color of the button. @mixin button( $padding: $button-padding, $background: $button-background ) { $color: if(lightness($background) > 60%, #000, #fff); display: inline-block; padding: $padding; background: $background; color: $color; } .button { @include button; }
Fix the styles so that fluid tabs look identical to html-based tabs
.hx-tab { display: inline-block; padding: 0.5em 1em; border-top: solid 3px; border-left: solid 1px; border-right: solid 1px; &:hover { cursor: pointer; } } .hx-tabs-content { margin-top: -1px; border: solid 1px; } .hx-tab-content-hidden { display: none; }
.hx-tabs { display: flex; flex-wrap: wrap; } .hx-tab { display: inline-block; padding: 0.5em 1em; border-top: solid 3px; border-left: solid 1px; border-right: solid 1px; margin-right: 3px; position: relative; &:hover { cursor: pointer; } } .hx-tabs-content { margin-top: -1px; border: solid 1px; flex: 1 1 100%; } .hx-tab-content-hidden { display: none; }
Add styles for links that open in new windows.
.bold { font-weight: bold; } .uppercase { text-transform: uppercase; } h1 { @extend .heading-large; } h2 { @extend .heading-medium; } h3 { @extend .heading-small; } strong { font-weight: bold; }
.bold { font-weight: bold; } .uppercase { text-transform: uppercase; } h1 { @extend .heading-large; } h2 { @extend .heading-medium; } h3 { @extend .heading-small; } strong { font-weight: bold; } .new-window { padding-right: 17px; background: url("../images/new-window-link.png") right center no-repeat; &:hover { background-image: url("../images/new-window-link-blue.png"); } }
Increase font size and spacing around content
#blank-slate { display: flex; justify-content: center; .header { max-width: 400px; align-self: center; text-align: center; .title { font-size: var(--font-size-md); font-weight: var(--font-weight-semibold); } } .content, .footer { display: flex; flex-direction: row; align-self: center; } .content { margin: var(--spacing-double); } .callout { display: flex; flex-direction: column; max-width: 370px; align-items: center; text-align: center; padding: 0 var(--spacing-quad); div { margin: var(--spacing) 0; } .octicon { width: 16px; height: 16px; } button { flex-grow: 0; } } .callout:not(:last-child) { border-right: var(--base-border); } }
#blank-slate { display: flex; justify-content: center; .header { max-width: 400px; align-self: center; text-align: center; .title { font-size: var(--font-size-lg); font-weight: var(--font-weight-semibold); } } .content, .footer { display: flex; flex-direction: row; align-self: center; } .content { margin: var(--spacing-quad) var(--spacing-double); } .callout { display: flex; flex-direction: column; max-width: 370px; align-items: center; text-align: center; padding: 0 var(--spacing-quad); div { margin: var(--spacing) 0; } .octicon { width: 16px; height: 16px; } button { flex-grow: 0; } } .callout:not(:last-child) { border-right: var(--base-border); } }
Drop h4 color customization in callouts
// // Callouts // .bd-callout { padding: 1.25rem; margin-top: 1.25rem; margin-bottom: 1.25rem; border: 1px solid $gray-200; border-left-width: .25rem; @include border-radius(); h4 { margin-bottom: .25rem; } p:last-child { margin-bottom: 0; } code { @include border-radius(); } + .bd-callout { margin-top: -.25rem; } } // Variations @mixin bs-callout-variant($color) { border-left-color: $color; h4 { color: $color; } } .bd-callout-info { @include bs-callout-variant($bd-info); } .bd-callout-warning { @include bs-callout-variant($bd-warning); } .bd-callout-danger { @include bs-callout-variant($bd-danger); }
// // Callouts // .bd-callout { padding: 1.25rem; margin-top: 1.25rem; margin-bottom: 1.25rem; border: 1px solid $gray-200; border-left-width: .25rem; @include border-radius(); h4 { margin-bottom: .25rem; } p:last-child { margin-bottom: 0; } code { @include border-radius(); } + .bd-callout { margin-top: -.25rem; } } // Variations .bd-callout-info { border-left-color: $bd-info; } .bd-callout-warning { border-left-color: $bd-warning; } .bd-callout-danger { border-left-color: $bd-danger; }
Comment out CSS for background image
.debug { outline: 1px solid red } body { background-repeat: no-repeat; background-attachment: fixed; background-position: center; padding-top: 70px; padding-bottom: 70px; h1 { text-align: center; background-color: #e7e7e7; border: 2px solid #000; border-radius: 1em; padding: .2em 0; } p { font-size: 1.3em; } } figure { margin: 10px auto; .img-circle { display: block; margin: 0 auto; } } .section { background-color: #e7e7e7; text-align: center; margin-top: 60px; border: 2px solid #000; border-radius: 1em; } .about-me-section { } .projects-section { img { vertical-align: center; } } .video-section { video { display: block; } } .skills-section { } .history-section { } .interests-section { } .carousel-inner > .item > img, .carousel-inner > .item > a > img { /*width: 70%;*/ display: block; margin: auto; } b { color: red; }
.debug { outline: 1px solid red } body { /* background-repeat: no-repeat; background-attachment: fixed; background-position: center;*/ padding-top: 70px; padding-bottom: 70px; h1 { text-align: center; background-color: #e7e7e7; border: 2px solid #000; border-radius: 1em; padding: .2em 0; } p { font-size: 1.3em; } } figure { margin: 10px auto; .img-circle { display: block; margin: 0 auto; } } .section { background-color: #e7e7e7; text-align: center; margin-top: 60px; border: 2px solid #000; border-radius: 1em; } .about-me-section { } .projects-section { img { vertical-align: center; } } .video-section { video { display: block; } } .skills-section { } .history-section { } .interests-section { } .carousel-inner > .item > img, .carousel-inner > .item > a > img { /*width: 70%;*/ display: block; margin: auto; } b { color: red; }
Add SassDoc for contains function
// Test a Sass list to see if it contains a defined value // Allows for checking if a list contains several values at once @function contains($list, $values...) { @each $value in $values { @if type-of(index($list, $value)) != "number" { @return false; } } @return true; }
@charset "UTF-8"; /// Checks if a list contains a value(s). /// /// @param {List} $list /// The list to check against. /// /// @param {List} $values /// A single value or list of values to check for. /// /// @example scss - Usage /// contains($list, $value) /// /// @return {Bool} @function contains($list, $values...) { @each $value in $values { @if type-of(index($list, $value)) != "number" { @return false; } } @return true; }
Move "Jadu 1.12" copyright message to the right-hand side on smaller viewports.
footer { background-color: $black; color: $white; font-size: $font-size-small; a { color: $white; line-height: $line-height-base * 1.5; padding: 0 $gutter-width; text-decoration: none; &:hover { color: darken($white, 10%); } } }
footer { background-color: $black; color: $white; font-size: $font-size-small; a { color: $white; line-height: $line-height-base * 1.5; padding: 0 $gutter-width; text-decoration: none; &:hover { color: darken($white, 10%); } &:last-child { float: right; } @include respond-min($screen-tablet) { &:last-child { float: none; } } } }
Rename $theme to $rct-icon-color and make it overwritable
$theme: #33c; .react-checkbox-tree { ol { padding-left: 24px; list-style-type: none; label { cursor: pointer; } .fa { width: 14px; margin: 0 5px; } .fa-folder-open-o, .fa-folder-o, .fa-file-o { color: $theme; } } } .rct-text { display: flex; align-items: center; } .rct-collapse { font-size: 12px; .fa-chevron-right, .fa-chevron-down { cursor: pointer; } } .rct-half-checked, .rct-collapse > .fa-chevron-right { opacity: .5; }
$rct-icon-color: #33c !default; .react-checkbox-tree { ol { padding-left: 24px; list-style-type: none; label { cursor: pointer; } .fa { width: 14px; margin: 0 5px; } .fa-folder-open-o, .fa-folder-o, .fa-file-o { color: $rct-icon-color; } } } .rct-text { display: flex; align-items: center; } .rct-collapse { font-size: 12px; .fa-chevron-right, .fa-chevron-down { cursor: pointer; } } .rct-half-checked, .rct-collapse > .fa-chevron-right { opacity: .5; }
Disable just the transition on the left attribute.
#page { position: absolute; top: $navbar-height; bottom: 0; left: 0; right: 0; @import 'page/content_area'; } @mixin closed-sidebar { #page #content-area { left: 0; } } body.sidebar-close { @include closed-sidebar; } @media (max-width: $screen-sm-min) { @include closed-sidebar; } body.no-sidebar { #page #content-area { @include single-transition(none); left: 0; #page-header { padding-left: $bsat-page-header-padding; } } } body.no-page-header { #page #content-area { #content { top: 0; } } }
#page { position: absolute; top: $navbar-height; bottom: 0; left: 0; right: 0; @import 'page/content_area'; } @mixin closed-sidebar { #page #content-area { left: 0; } } body.sidebar-close { @include closed-sidebar; } @media (max-width: $screen-sm-min) { @include closed-sidebar; } body.no-sidebar { #page #content-area { @include single-transition(left, 0); left: 0; #page-header { padding-left: $bsat-page-header-padding; } } } body.no-page-header { #page #content-area { #content { top: 0; } } }
Fix incorrect variables (from Kentucky 2)
//// /// Typographic Normalization and variable applications /// /// @group base //// html { color: $base-font-color; font-family: $base-font-family; font-size: $base-font-size; line-height: $base-line-height; }   h1, h2, h3, h4, h5, h6 { font-family: $header-font-family; line-height: $header-line-height; } h1 { font-size: $h1-font-size; } h2 { font-size: $h2-font-size; } h3 { font-size: $h3-font-size; } h4 { font-size: $h4-font-size; } h5 { font-size: $h5-font-size; } h6 { font-size: $h6-font-size; } p { margin: 0 0 ($base-spacing / 2); } a { color: $base-link-color; text-decoration: none; transition: color, .1s; &:hover, &:active, &:focus { color: $hover-link-color; } }
//// /// Typographic Normalization and variable applications /// /// @group base //// html { color: $color-font-base; font-family: $font-family-base; font-size: $font-size-base; line-height: $line-height-base; }   h1, h2, h3, h4, h5, h6 { font-family: $font-family-header; line-height: $line-height-header; } h1 { font-size: $font-size-h1; } h2 { font-size: $font-size-h2; } h3 { font-size: $font-size-h3; } h4 { font-size: $font-size-h4; } h5 { font-size: $font-size-h5; } h6 { font-size: $font-size-h6; } p { margin: 0 0 $space-half; } a { color: $color-link; text-decoration: none; transition: color .1s; &:hover, &:active, &:focus { color: $color-link-hover; } }
Use the height of the container as the line height
.toolbar-dropdown.open .pr-badge { background: $gray-300; } .toolbar-dropdown:not(.open) .pr-badge { background: $gray-700; } .pr-badge { display: flex; flex-direction: row; height: 18px; align-items: center; border-radius: var(--border-radius); border-width: 0; margin-right: var(--spacing); margin-left: var(--spacing); padding: var(--spacing-half); .number { font-size: var(--font-size-sm); line-height: 12px; margin-right: var(--spacing-half); } } .toolbar-dropdown.open .ci-status-pending { color: $orange-800; } .toolbar-dropdown.open .ci-status-failure { color: $red-500; } .toolbar-dropdown.open .ci-status-success { color: $green-700; }
.toolbar-dropdown.open .pr-badge { background: $gray-300; } .toolbar-dropdown:not(.open) .pr-badge { background: $gray-700; } .pr-badge { --height: 18px; display: flex; flex-direction: row; height: var(--height); align-items: center; border-radius: var(--border-radius); border-width: 0; margin-right: var(--spacing); margin-left: var(--spacing); padding: var(--spacing-half); .number { font-size: var(--font-size-sm); line-height: var(--height); margin-right: var(--spacing-half); } } .toolbar-dropdown.open .ci-status-pending { color: $orange-800; } .toolbar-dropdown.open .ci-status-failure { color: $red-500; } .toolbar-dropdown.open .ci-status-success { color: $green-700; }
Use foundation variable to determine position of 'x' icon
// bower:scss // endbower // Custom imports & styles here. @import '../bower_components/foundation/scss/foundation'; @import 'settings'; @import 'streetview-ui'; .clickable { cursor: pointer; } .right-pos { position: absolute; right: 0; } .js-container-image { display: inline-block; position: relative; }
// bower:scss // endbower // Custom imports & styles here. @import '../bower_components/foundation/scss/foundation'; @import 'settings'; @import 'streetview-ui'; .clickable { cursor: pointer; } .right-pos { position: absolute; right: $block-grid-default-spacing; } .js-container-image { display: inline-block; position: relative; }
Reduce font size of commit references to not stand out as much
/** * Styles that apply to all GFM related forms. */ .issue-form, .merge-request-form, .wiki-form { .description { height: 16em; border-top-left-radius: 0; } } .wiki-form { .description { height: 26em; } } .milestone-form { .description { height: 14em; } } .gfm-commit, .gfm-commit_range { font-family: $monospace_font; }
/** * Styles that apply to all GFM related forms. */ .issue-form, .merge-request-form, .wiki-form { .description { height: 16em; border-top-left-radius: 0; } } .wiki-form { .description { height: 26em; } } .milestone-form { .description { height: 14em; } } .gfm-commit, .gfm-commit_range { font-family: $monospace_font; font-size: 90%; }
Fix hover of follow button
#main-wrapper .profile { .profile-information-item { margin-bottom: 1.25em; .profile-information-label { font-weight: bold; display: block; color: $metaFontColor; margin-bottom: 2px; } .empty-state { color: $metaFontColor; } } .profile-box-container { width: 49%; float: left; padding: 10px 20px 20px; @extend %white-block-with-shadow; } .user-follow-user-button { width: 200px; float: right; clear: right; } } .profile-social-statistics { float: right; width: 200px; } .profile-picture { float: left; } .profile-box-bio { margin-left: 2%; } .empty-profile-facts { margin-top: 20px; } .profile-feed-activities { clear: both; padding-top: 20px; }
#main-wrapper .profile { .profile-information-item { margin-bottom: 1.25em; .profile-information-label { font-weight: bold; display: block; color: $metaFontColor; margin-bottom: 2px; } .empty-state { color: $metaFontColor; } } .profile-box-container { width: 49%; float: left; padding: 10px 20px 20px; @extend %white-block-with-shadow; } .user-follow-user-button { width: 200px; float: right; clear: right; &.button-confirm { color: white; } } } .profile-social-statistics { float: right; width: 200px; } .profile-picture { float: left; } .profile-box-bio { margin-left: 2%; } .empty-profile-facts { margin-top: 20px; } .profile-feed-activities { clear: both; padding-top: 20px; }
Add SCSS support to OroPlatform - Fix text-hide for FA
[class^="fa-"], [class*=" fa-"] { display:inline-block; font: normal normal normal 14px/1 FontAwesome; font-size: inherit; text-rendering: auto; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } [class^="fa-"].hide-text { color: inherit; } [class^="fa-"].hide-text:after, [class^="fa-"].hide-text:before { padding:0; text-indent:0; font-size:14px; line-height:1.3em; font-family: 'FontAwesome'; } .fa-arrows-v { // because resize-vertical icon is too thin padding: 0 3px; } .icon-empty:before { content: ' '; }
[class^="fa-"], [class*=" fa-"] { display: inline-block; font: normal normal normal 14px/1 FontAwesome; font-size: inherit; text-rendering: auto; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; &.hide-text { @include hide-text(); color: inherit; &:after, &:before { padding: 0; text-indent: 0; font-size: 14px; line-height: 1.3em; font-family: FontAwesome; } } } .fa-arrows-v { // because resize-vertical icon is too thin padding: 0 3px; } .icon-empty:before { content: ' '; }
Make certain `sr-only` properties important
.u-width-50 { width: 50%; } .u-width-33 { width: 33%; } .u-width-20 { width: 20%; } .u-width-10 { width: 10%; } .u-text-right { text-align: right; } .sr-only { clip: rect(0, 0, 0, 0); overflow: hidden; position: absolute; opacity: 0; padding: 0; margin: 0; width: 1px; height: 1px; }
.u-width-50 { width: 50%; } .u-width-33 { width: 33%; } .u-width-20 { width: 20%; } .u-width-10 { width: 10%; } .u-text-right { text-align: right; } .sr-only { clip: rect(0, 0, 0, 0); overflow: hidden !important; position: absolute; opacity: 0; padding: 0 !important; margin: 0 !important; width: 1px; height: 1px; }
Include alert styles to match current site
@import "../../../node_modules/bootstrap/scss/functions"; @import "../../../node_modules/bootstrap/scss/variables"; @import "../../../node_modules/bootstrap/scss/mixins"; @import "../../../node_modules/bootstrap/scss/reboot"; @import "../../../node_modules/bootstrap/scss/grid"; @import "../../../node_modules/bootstrap/scss/buttons"; @import "../../../node_modules/bootstrap/scss/transitions"; @import "../../../node_modules/bootstrap/scss/dropdown"; @import "../../../node_modules/bootstrap/scss/navbar"; @import "../../../node_modules/bootstrap/scss/nav"; @import "../../../node_modules/bootstrap/scss/tables"; @import "../../../node_modules/bootstrap/scss/card"; @import "../../../node_modules/bootstrap/scss/code"; @import "../../../node_modules/bootstrap/scss/utilities";
@import "../../../node_modules/bootstrap/scss/functions"; @import "../../../node_modules/bootstrap/scss/variables"; @import "../../../node_modules/bootstrap/scss/mixins"; @import "../../../node_modules/bootstrap/scss/reboot"; @import "../../../node_modules/bootstrap/scss/grid"; @import "../../../node_modules/bootstrap/scss/buttons"; @import "../../../node_modules/bootstrap/scss/transitions"; @import "../../../node_modules/bootstrap/scss/dropdown"; @import "../../../node_modules/bootstrap/scss/navbar"; @import "../../../node_modules/bootstrap/scss/nav"; @import "../../../node_modules/bootstrap/scss/tables"; @import "../../../node_modules/bootstrap/scss/card"; @import "../../../node_modules/bootstrap/scss/code"; @import "../../../node_modules/bootstrap/scss/alert"; @import "../../../node_modules/bootstrap/scss/utilities";
Add body styles Mostly affects text rendering
@import "vendor/normalize";
@import "vendor/normalize"; body { font: { family: 'Roboto Slab', serif; size: 14px; weight: 300; } text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-smoothing: antialiased; background: #eee; }
Add shadow border around jumbotron header
#sidebar { background-color: #f9f9f9; padding: 10px 10px; border: 2px solid pink; } .glyphicon { color: pink; } .jumbotron { background-color: #75ebdb !important; h1 { color: #ffffff !important; font-weight: bolder; } .pink { color: #fbc1d1; font-size: 1.5em; } } .navbar { .container div { display: inline-block } .navbar-links { float: right; ul.nav.navbar-nav { li { display: inline-block; } } } }
#sidebar { background-color: #f9f9f9; padding: 10px 10px; border: 2px solid pink; } .glyphicon { color: pink; } .jumbotron { background-color: #75ebdb !important; /*height: 400px;*/ border-radius: 16px 16px; border-color: #fff; border-style: solid; box-shadow: 2px 2px 10px #B1B1B1; /*margin-top: 25px;*/ border-width: 7px; h1 { color: #ffffff !important; font-weight: bolder; } .pink { color: #fbc1d1; font-size: 1.5em; } } .navbar { .container div { display: inline-block } .navbar-links { float: right; ul.nav.navbar-nav { li { display: inline-block; } } } }
Reduce line-height and bottom margin on question titles in index
%tag-list { margin-left: 0; list-style-type: none; li { float: left; margin-right: 6px; } } // questions#index .question-list { @include makeColumn(12); } .question-summary { @include makeColumn(11); // leave wide for now margin-left: 10px; padding-top: 5px; h3 { font-weight: normal; margin-bottom: 8px; } .tags { float: left; @extend %tag-list; } .last-activity { float: right; font-size: 11px; } } // new question form #new_question { #question_title { font-size: 30px; height: 40px; line-height: normal; width: 620px; } #question_body { height: 250px; } } // question display on questions#show .question { @include makeRow(); .main { @include makeColumn(8); } .body { margin-bottom: 15px; } .tags { float: none; @extend .clearfix; @extend %tag-list; } .meta { padding-top: 10px; } .links { float: left; } .righto { float: right; } }
%tag-list { margin-left: 0; list-style-type: none; li { float: left; margin-right: 6px; } } // questions#index .question-list { @include makeColumn(12); } .question-summary { @include makeColumn(11); // leave wide for now margin-left: 10px; padding-top: 5px; h3 { font-weight: normal; line-height: 32px; margin-bottom: 5px; } .tags { float: left; @extend %tag-list; } .last-activity { float: right; font-size: 11px; } } // new question form #new_question { #question_title { font-size: 30px; height: 40px; line-height: normal; width: 620px; } #question_body { height: 250px; } } // question display on questions#show .question { @include makeRow(); .main { @include makeColumn(8); } .body { margin-bottom: 15px; } .tags { float: none; @extend .clearfix; @extend %tag-list; } .meta { padding-top: 10px; } .links { float: left; } .righto { float: right; } }
Remove light font weight from player scores
// The game scoreboard where players' stats are shown #game-scoreboard { display: flex; justify-content: space-between; align-items: center; margin-top: $chip-margin; font-size: 16px; text-align: center; } .player-stats { &:first-child { margin-left: $chip-margin; text-align: left; } &:last-child { margin-right: $chip-margin; text-align: right; } @each $player-color-name, $player-color in $player-colors { &.#{$player-color-name} { color: darken($player-color, 10%); } } } .player-score { font-weight: 300; font-size: 32px; }
// The game scoreboard where players' stats are shown #game-scoreboard { display: flex; justify-content: space-between; align-items: center; margin-top: $chip-margin; font-size: 16px; text-align: center; } .player-stats { &:first-child { margin-left: $chip-margin; text-align: left; } &:last-child { margin-right: $chip-margin; text-align: right; } @each $player-color-name, $player-color in $player-colors { &.#{$player-color-name} { color: darken($player-color, 10%); } } } .player-score { font-size: 32px; }
Move flash message directly under the header
.flash-messages { position: relative; background: $yellow-25; padding: 10px 20px; font-size: .9em; margin: -10px 0 30px; padding-right: 40px; .flash-messages-close { position: absolute; right: 13px; top: 13px; border: 0; text-indent: -999em; cursor: pointer; opacity: .7; &:hover { opacity: 1; } } } .flash-messages-list { list-style: none; margin: 0; padding: 0; }
.flash-messages { position: relative; top: -40px; background: $yellow-25; padding: 10px 20px; font-size: .9em; padding-right: 40px; .flash-messages-close { position: absolute; right: 13px; top: 13px; border: 0; text-indent: -999em; cursor: pointer; opacity: .7; &:hover { opacity: 1; } } } .flash-messages-list { list-style: none; margin: 0; padding: 0; }
Set only left and right margins of container to auto
.container { margin: auto; max-width: 1280px; padding: 1em; width: 90%; } html, body { height: 100%; } .hero { height: 100%; position: relative; .hero-content { left: 50%; position: absolute; top: 50%; transform: translate(-50%, -50%); } } .hero, .column-hero { text-align: center; h1 { font-size: 5em; } .tagline { color: lighten($body-text-color, 10%); font-size: 1.4em; } } @media (max-width: $mobile-breakpoint) { .hero h1, .column-hero h1 { font-size: 3em; } }
.container { margin: 0 auto; max-width: 1280px; padding: 1em; width: 90%; } html, body { height: 100%; } .hero { height: 100%; position: relative; .hero-content { left: 50%; position: absolute; top: 50%; transform: translate(-50%, -50%); } } .hero, .column-hero { text-align: center; h1 { font-size: 5em; } .tagline { color: lighten($body-text-color, 10%); font-size: 1.4em; } } @media (max-width: $mobile-breakpoint) { .hero h1, .column-hero h1 { font-size: 3em; } }
Fix selected tab color on iOS
@import 'src/theme/variables.scss'; ion-tabs { --ion-tabbar-text-color: #{transparentize($second-color, 0.6)}; --ion-tabbar-text-color-active: #{$second-color}; }
@import 'src/theme/variables.scss'; ion-tabs { --ion-tabbar-text-color: #{transparentize($second-color, 0.6)}; --ion-tabbar-text-color-active: #{$second-color}; --ion-color-primary: #{$second-color}; }
Fix border between search and midpoint
.panel-component { @extend %floating-panel; position: absolute; z-index: 601; } .panel-component.inspector-panel { position: static; background-color: transparent; border-radius: 0; box-shadow: none; } .panel-component.white-box, .panel-component.mid-point-panel { z-index: 1000; top: $navbar-height; right: 0; border-radius: 0; } .panel-component.white-box { bottom: 0; left: 0; background-color: rgba(255, 255, 255, 0.3); box-shadow: none; } .panel-component.mid-point-panel { left: $panel-space; } .panel-component.deployment-bar-panel { right: 20px; bottom: 30px; } .panel-component.deployment-summary-panel { @extend %scroll-children; z-index: 1000; top: 20px; bottom: 20px; left: 30px; right: 30px; } .panel-component.env-list-panel { top: 40px; right: -230px; }
.panel-component { @extend %floating-panel; position: absolute; z-index: 601; } .panel-component.inspector-panel { position: static; background-color: transparent; border-radius: 0; box-shadow: none; } .panel-component.white-box, .panel-component.mid-point-panel { z-index: 650; top: $navbar-height; right: 0; border-radius: 0; } .panel-component.white-box { bottom: 0; left: 0; background-color: rgba(255, 255, 255, 0.3); box-shadow: none; } .panel-component.mid-point-panel { left: $panel-space; } .panel-component.deployment-bar-panel { right: 20px; bottom: 30px; } .panel-component.deployment-summary-panel { @extend %scroll-children; z-index: 1000; top: 20px; bottom: 20px; left: 30px; right: 30px; } .panel-component.env-list-panel { top: 40px; right: -230px; }
Use full import path for convenience
@import 'bourbon/bourbon'; @import 'app/assets/stylesheets/neat'; $disable-warnings: true !global;
@import 'bourbon/bourbon'; @import '../app/assets/stylesheets/neat'; $disable-warnings: true !global;
Fix CSS typo in accessibility css
// Rules we could port to the rest of Nextcloud too // Proper highlight for links and focus feedback #accessibility a { border-bottom: 1px dotted; &:hover, &:focus { border-bottom-style: solid; } } // Highlight checkbox label in bold for focus feedback // Drawback: Text width increases a bit #accessibility .checkbox:focus + label { font-weight: bold; } // Limit width of settings sections for readability #accessibility .section p { max-width: 800px; } // End of rules we could port to rest of Nextcloud .preview-list { display: flex; flex-direction: column; max-width: 800px; } .preview { display: flex; justify-content: flex-start; margin-top: 3em; position: relative; &, * { user-select: none; } .preview-image { flex-basis: 200px; flex-shrink: 0; margin-right: 1em; background-position: top left; background-size: cover; background-repeat: no-repeat; border-radius: var(--border-radius); } .preview-description { display: flex; flex-direction: column; label { padding: 12px 0; } } }
// Rules we could port to the rest of Nextcloud too // Proper highlight for links and focus feedback #accessibility a { border-bottom: 1px dotted; &:hover, &:focus { border-bottom-style: solid; } } // Highlight checkbox label in bold for focus feedback // Drawback: Text width increases a bit #accessibility .checkbox:focus + label { font-weight: bold; } // Limit width of settings sections for readability #accessibility.section p { max-width: 800px; } // End of rules we could port to rest of Nextcloud .preview-list { display: flex; flex-direction: column; max-width: 800px; } .preview { display: flex; justify-content: flex-start; margin-top: 3em; position: relative; &, * { user-select: none; } .preview-image { flex-basis: 200px; flex-shrink: 0; margin-right: 1em; background-position: top left; background-size: cover; background-repeat: no-repeat; border-radius: var(--border-radius); } .preview-description { display: flex; flex-direction: column; label { padding: 12px 0; } } }
Make static Beta label visually consistent with others
.beta-label { clear: both; margin:0; @include copy-16; span.beta { display: inline-block; background: #f47738; color: #fff; @include bold-16; line-height:1; text-transform: uppercase; padding: 5px 5px 2px 6px; margin-right:10px; } }
.beta-label { clear: both; margin:0; @include core-16; padding-top: 8px; padding-bottom: 8px; border-bottom: 1px solid $grey-2; span.beta { display: inline-block; background: #f47738; color: #fff; @include bold-16; line-height:1; text-transform: uppercase; padding: 5px 5px 2px 6px; margin-right:10px; } }
Add 10px spacing between document title and links
.curated-lists .gem-c-document-list__item-title { margin-bottom: 10px; } .curated-lists .gem-c-document-list__attribute:first-child, .list-items .gem-c-document-list__attribute:first-child:not(:last-child) { border-right: 1px solid $govuk-border-colour; padding-right: 10px; } .curated-lists .gem-c-document-list__attribute:not(:first-child):not(:last-child) { border-right: 1px solid $govuk-border-colour; padding-left: 10px; padding-right: 10px; } .curated-lists .gem-c-document-list__attribute:last-child, .list-items .gem-c-document-list__attribute:last-child:not(:first-child) { padding-left: 10px; } .curated-lists .gem-c-document-list__item, .list-items .gem-c-document-list__item { margin-bottom: 10px; }
.curated-lists .gem-c-document-list__item-title, .list-items .gem-c-document-list__item-title { margin-bottom: 10px; } .curated-lists .gem-c-document-list__attribute:first-child, .list-items .gem-c-document-list__attribute:first-child:not(:last-child) { border-right: 1px solid $govuk-border-colour; padding-right: 10px; } .curated-lists .gem-c-document-list__attribute:not(:first-child):not(:last-child) { border-right: 1px solid $govuk-border-colour; padding-left: 10px; padding-right: 10px; } .curated-lists .gem-c-document-list__attribute:last-child, .list-items .gem-c-document-list__attribute:last-child:not(:first-child) { padding-left: 10px; } .curated-lists .gem-c-document-list__item, .list-items .gem-c-document-list__item { margin-bottom: 10px; }
Add !important to placeholder class
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0, 0, 0, 0.75) } .modal-content { position: absolute; top: 100px; bottom: 100px; left: 100px; right: 100px; border-radius: 0px; background: #fff; overflow: auto; -webkit-overflow-scrolling: touch; outline: none; padding: 20px; } .patron-placeholder { display: none }
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0, 0, 0, 0.75) } .modal-content { position: absolute; top: 100px; bottom: 100px; left: 100px; right: 100px; border-radius: 0px; background: #fff; overflow: auto; -webkit-overflow-scrolling: touch; outline: none; padding: 20px; } .patron-placeholder { display: none !important }
Remove icon wrapper/container since it isn't use anywhere.
$icon-size: 1em; @mixin icon-container { @include cf; display: inline-block; vertical-align: bottom; } // basic icon // <svg class="icon icon-name"></svg> .icon { display: block; fill: $c--black; width: $icon-size; height: $icon-size; &:before { display: block; } } // icon wrapper // <div class="icon-wrapper"><svg class="icon"></svg></div> .icon-wrapper { @include icon-container; } // text with an icon // <span class="icon-text"><svg class="icon-text__i"></svg> <span class="icon-text__t"></span></span> // <span class="icon-text"><span class="icon-text__t"></span> <svg class="icon-text__i"></svg></span> .icon-text { display: inline-block; position: relative; &__i { width: $icon-size; height: $icon-size; position: absolute; top: 50%; right: 0; transform: translateY(-50%); &:first-child { right: auto; left: 0; } } &__t { padding-right: $icon-size + .5em; &:last-child { padding: { right: 0; left: $icon-size + .5em; } } } }
$icon-size: 1em; // basic icon // <svg class="icon icon-name"></svg> .icon { display: block; fill: $c--black; width: $icon-size; height: $icon-size; &:before { display: block; } } // text with an icon // <span class="icon-text"><svg class="icon-text__i"></svg> <span class="icon-text__t"></span></span> // <span class="icon-text"><span class="icon-text__t"></span> <svg class="icon-text__i"></svg></span> .icon-text { display: inline-block; position: relative; &__i { width: $icon-size; height: $icon-size; position: absolute; top: 50%; right: 0; transform: translateY(-50%); &:first-child { right: auto; left: 0; } } &__t { padding-right: $icon-size + .5em; &:last-child { padding: { right: 0; left: $icon-size + .5em; } } } }
Move card and translation closer to center of page
// Author: Darren Lester #card { position: absolute; height: 80%; width: 100%; font-size: 10em; > * { transform: translateX(-50%); } display: none; } #item { position: absolute; font-size: 2em; top: 0%; left: 50%; } #translation { position: absolute; top: 80%; left: 50%; } #item, #translation { white-space: nowrap; }
// Author: Darren Lester #card { position: absolute; height: 80%; width: 100%; font-size: 10em; > * { transform: translateX(-50%); } display: none; } #item { position: absolute; font-size: 2em; top: 25%; left: 50%; } #translation { position: absolute; top: 65%; left: 50%; } #item, #translation { white-space: nowrap; }
Refactor visually hidden class toggle
// Site wide breadcrumbs // // Styleguide Breadcrumbs .breadcrumbs__item { @include body(14, 18); @include inline-block; @include visually-hidden; margin-bottom: 0; &:last-child { @include inline-block; position: relative; overflow: visible; width: auto; } @include respond-to($mq-m) { @include inline-block; position: relative; overflow: visible; width: auto; } @include respond-to($mq-l) { @include body(16, 24); } } .breadcrumbs__divider { @include body(16, 16); color: $breadcrumbs-divider-color; position: relative; top: 1px; &:before { padding: 0 6px 0 0; content: '\3008'; @include respond-to($mq-m) { padding: 0 0 0 6px; content: '\3009'; } } }
// Site wide breadcrumbs // // Styleguide Breadcrumbs //.breadcrumbs { // // ul { // height: 24px; // } //} .breadcrumbs__item { @include body(14, 18); @include inline-block; margin-bottom: 0; @include respond-to($mq-l) { @include body(16, 24); } } @include respond-to($mq-xs, $mq-m) { .breadcrumbs__item:not(:last-child) { @include visually-hidden; } } .breadcrumbs__divider { @include body(16, 16); color: $breadcrumbs-divider-color; position: relative; top: 1px; &:before { padding: 0 6px 0 0; content: '\3008'; @include respond-to($mq-m) { padding: 0 0 0 6px; content: '\3009'; } } }
Add support for BG colour 99 (transparent) per mIRC spec
// Generates all the classes for the IRC colours @for $i from 0 through 15 { @for $x from 0 through 15 { .irc--#{$i}-#{$x} { color: nth($irc-colors, $i+1); background-color: nth($irc-colors, $x+1); } .irc--#{$i}-#{$x}-inverted { background-color: nth($irc-colors, $i+1); color: nth($irc-colors, $x+1); } } }
// Generates all the classes for the IRC colours @for $i from 0 through 15 { @for $x from 0 through 15 { .irc--#{$i}-#{$x} { color: nth($irc-colors, $i+1); background-color: nth($irc-colors, $x+1); } .irc--#{$i}-#{$x}-inverted { background-color: nth($irc-colors, $i+1); color: nth($irc-colors, $x+1); } } .irc--#{$i}-99 { background-color: transparent; color: nth($irc-colors, $x+1); } }
Change font-size in post form.
// import the CSS framework @import "bootstrap-sprockets"; @import "bootstrap"; @import 'bootstrap-datetimepicker'; @import 'font-awesome'; @import 'editor'; // make all images responsive by default img { @extend .img-responsive; margin: 0 auto; } .navbar-brand { font-size: inherit; } body { padding-top: 70px; /* Required padding for .navbar-fixed-top. Remove if using .navbar-static-top. Change if height of navigation changes. */ } body, h1, h2, h3, h4, h5, h6 { font-family: "Lato","Helvetica Neue",Helvetica,Arial,sans-serif; font-weight: 700; } footer { margin: 50px 0; } .simple_form { .post_status { width: 150px; } .form-group { padding: 0px 15px; } }
// import the CSS framework @import "bootstrap-sprockets"; @import "bootstrap"; @import 'bootstrap-datetimepicker'; @import 'font-awesome'; @import 'editor'; // make all images responsive by default img { @extend .img-responsive; margin: 0 auto; } .navbar-brand { font-size: inherit; } body { padding-top: 70px; /* Required padding for .navbar-fixed-top. Remove if using .navbar-static-top. Change if height of navigation changes. */ } body, h1, h2, h3, h4, h5, h6 { font-family: "Lato","Helvetica Neue",Helvetica,Arial,sans-serif; font-weight: 700; } footer { margin: 50px 0; } .simple_form { .post_status { width: 150px; } #post_title { font-size: large; } #post_publish_date, #post_permalink { font-size: small; } .form-group { padding: 0px 15px; } }
Revert "Add copyright as a "loud comment"."
/*! typey | GPLv2 License | https://github.com/jptaranto/typey */ @import "typey/functions/helpers"; @import "typey/functions/validators"; @import "typey/functions/em-calculators"; @import "typey/functions/outputters"; @import "typey/functions/sizers"; @import "typey/functions/extras"; @import "typey/functions/depreciated"; @import "typey/font-stacks"; @import "typey/defaults"; @import "typey/mixins/debug"; @import "typey/mixins/define-type-sizing"; @import "typey/mixins/font-size"; @import "typey/mixins/line-height"; @import "typey/mixins/spacing"; @import "typey/mixins/typeface"; @import "typey/mixins/typeset"; @import "typey/mixins/type-layout";
@import "typey/functions/helpers"; @import "typey/functions/validators"; @import "typey/functions/em-calculators"; @import "typey/functions/outputters"; @import "typey/functions/sizers"; @import "typey/functions/extras"; @import "typey/functions/depreciated"; @import "typey/font-stacks"; @import "typey/defaults"; @import "typey/mixins/debug"; @import "typey/mixins/define-type-sizing"; @import "typey/mixins/font-size"; @import "typey/mixins/line-height"; @import "typey/mixins/spacing"; @import "typey/mixins/typeface"; @import "typey/mixins/typeset"; @import "typey/mixins/type-layout";
Fix font family for button
@import '../../variables.scss'; .welcome-splash-screen { display: flex; justify-content: center; font-size: 32px; &--content { display: flex; flex-direction: column; text-align: center; &--product-name { font-size: 72px; color: $brand-orange; sub { font-size: 0.5em; } + div { font-size: 0.7em; } } } a { align-self: center; background: $brand-orange; border: none; color: $brand-white; padding: $xsmall $xlarge; font-size: 20px; font-weight: 600; margin-top: $xlarge; border-radius: 5px; cursor: pointer; text-decoration: none; &:visited { text-decoration: none; color: $brand-white; } } }
@import '../../variables.scss'; .welcome-splash-screen { display: flex; justify-content: center; font-size: 32px; &--content { display: flex; flex-direction: column; text-align: center; &--product-name { font-size: 72px; color: $brand-orange; sub { font-size: 0.5em; } + div { font-size: 0.7em; } } } a { align-self: center; background: $brand-orange; border: none; color: $brand-white; padding: $xsmall $xlarge; font-size: 20px; font-weight: 600; margin-top: $xlarge; border-radius: 5px; cursor: pointer; text-decoration: none; font-family: "Open Sans", sans-serif; &:visited { text-decoration: none; color: $brand-white; } } }
Use body font in sweet-alert
.sweet-overlay { z-index: 1031; }
.sweet-alert { font-family: inherit; } .sweet-overlay { z-index: 1031; }
Make sure pagination items are on one line on mobile + desktop
.pagination { text-align: center; color: rgba($warm-black, 0.75); font-style: italic; @include typescale-06; ul { display: flex; @include unstyled-list; li { flex: 1 1 0; &:first-child, &:nth-child(2) { text-align: left; flex: 0.25; } &:last-child, &:nth-child(4) { text-align: right; flex: 0.25; } } } strong { color: $warm-black; font-style: normal; } a { text-decoration: none; color: $sanguine; font-style: normal; font-weight: 600; } .feather { position: relative; top: $spacing-01; } }
.pagination { text-align: center; color: rgba($warm-black, 0.75); font-style: italic; @include typescale-06; ul { display: flex; @include unstyled-list; li { &:nth-child(3) { flex: 0.5; } &:first-child, &:nth-child(2) { text-align: left; flex: 0.25; } &:last-child, &:nth-child(4) { text-align: right; flex: 0.25; } } } strong { color: $warm-black; font-style: normal; } a { text-decoration: none; color: $sanguine; font-style: normal; font-weight: 600; } .feather { position: relative; top: $spacing-01; } }
Fix bug in CSS change
--- --- @import "{{ site.theme }}"; #main-content { width: initial; } #sidebar { display: none; } pre code { background-color: #f2f8fc; } .clearfix:after { margin-bottom: 5em; } code a { color: #d02879; } a { color: #d02879; } p a { font-family: 'Architects Daughter', 'Helvetica Neue', Helvetica, Arial, serif; }
--- --- @import "{{ site.theme }}"; #main-content { width: initial; } #sidebar { display: none; } pre code { background-color: #f2f8fc; } .clearfix:after { margin-bottom: 5em; } a code { color: #d02879; } a { color: #d02879; } p a { font-family: 'Architects Daughter', 'Helvetica Neue', Helvetica, Arial, serif; }
Adjust headline.scss for use with pageColors mixin
.headline { font-family: $fontSecondary; } .headline--darkbg { color: #fff; } .headline--upper { text-transform: uppercase; font-weight: 600; } .headline--spaced { letter-spacing: .25em; } .headline--light { opacity: .5; } .headline--seperated { padding-bottom: $baseUnit/8; margin-bottom: $baseUnit/4; border-bottom: $baseBorder; } .headline--seperated-space { padding-bottom: $baseUnit; border-bottom: $baseBorder; } .headline--maincolor { color: $colorMain; }
.headline { font-family: $fontSecondary; } .headline--darkbg { color: #fff; } .headline--upper { text-transform: uppercase; font-weight: 600; } .headline--spaced { letter-spacing: .25em; } .headline--light { opacity: .5; } .headline--seperated { padding-bottom: $baseUnit/8; margin-bottom: $baseUnit/4; border-bottom: $baseBorder; } .headline--seperated-space { padding-bottom: $baseUnit; border-bottom: $baseBorder; } .headline--maincolor { @include pageColors(color); }
Make the scrollbar wider so it's easier to grab with the mouse pointer.
// HACK: ::webkit-scrollbar selector covers to much of the UI. Bigger changes to come so for now just use :not() to ignore the toolbar div:not(.maputnik-toolbar__actions) { &::-webkit-scrollbar { background-color: #26282e; width: 5px; } &::-webkit-scrollbar-thumb { border-radius: 6px; -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3); background-color: #666; padding-left: 2px; padding-right: 2px; } // Styling for Firefox scrollbar-width: thin; scrollbar-color: #666 #26282e; }
// HACK: ::webkit-scrollbar selector covers to much of the UI. Bigger changes to come so for now just use :not() to ignore the toolbar div:not(.maputnik-toolbar__actions) { &::-webkit-scrollbar { background-color: #26282e; width: 8px; height: 8px; } &::-webkit-scrollbar-thumb { border-radius: 6px; -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3); background-color: #666; padding-left: 2px; padding-right: 2px; } // Styling for Firefox scrollbar-width: thin; scrollbar-color: #666 #26282e; }
Change the font to maven pro
@import 'https://fonts.googleapis.com/css?family=Open+Sans'; body { margin: 0 auto; max-width: 75%; font-family: "Open Sans", "Helvetica", "Arial", sans-serif; line-height: 1.5; padding: 4em 1em; color: $body-color; } h1, h2, strong { color: $heading-color; } a { color: $primary-color; text-decoration: none; &:hover { text-decoration: underline; } }
@import 'https://fonts.googleapis.com/css?family=Maven+Pro'; body { margin: 0 auto; max-width: 75%; font-family: "Maven Pro", "Helvetica", "Arial", sans-serif; line-height: 1.5; padding: 4em 1em; color: $body-color; } h1, h2, strong { color: $heading-color; } a { color: $primary-color; text-decoration: none; &:hover { text-decoration: underline; } }
Make sure nav is always visible if screen is large enough
/* RESPONSIVE VIEWPORT STYLING ----------------------------------- */ /* Pre-defined viewports (see variables in settings.scss) */ @import "viewports/medium"; @import "viewports/small"; @import "viewports/xsmall"; /* Adjustments */ @media only screen and (min-width: $screenSmall+1) { .inner-bar [role="search"] { display: none; } }
/* RESPONSIVE VIEWPORT STYLING ----------------------------------- */ /* Pre-defined viewports (see variables in settings.scss) */ @import "viewports/medium"; @import "viewports/small"; @import "viewports/xsmall"; /* Adjustments */ @media only screen and (min-width: $screenSmall+1) { .inner-bar [role="search"] { display: none; } } @media only screen and (min-width: $screenMedium) { #site-menu { display: block !important; } }
Update styling based on review
/* Copyright 2015, 2016 OpenMarket Ltd Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ .mx_SenderProfile_displayName { font-weight: 600; } .mx_SenderProfile_mxid { font-weight: 600; font-family: monospace; font-size: 1rem; color: $event-timestamp-color; margin-left: 5px; }
/* Copyright 2015, 2016 OpenMarket Ltd Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ .mx_SenderProfile_displayName { font-weight: 600; } .mx_SenderProfile_mxid { font-weight: 600; font-size: 1.1rem; color: $event-timestamp-color; margin-left: 5px; }
Set transparent background for textfield
.sv-text { background-color: #ffffff; border: unset; border-bottom: 0.07em solid #d4d4d4; box-sizing: border-box; font-size: 1em; font-family: inherit; padding-left: 1em; } .sv-text:focus { border-color: $main-color; outline: unset; } .sv-text--error { color: $error-color; border-color: $error-color; } .sv-text--error::placeholder { color: $error-color; }
.sv-text { background-color: transparent; border: unset; border-bottom: 0.07em solid #d4d4d4; box-sizing: border-box; font-size: 1em; font-family: inherit; padding-left: 1em; } .sv-text:focus { border-color: $main-color; outline: unset; } .sv-text--error { color: $error-color; border-color: $error-color; } .sv-text--error::placeholder { color: $error-color; }
Remove bg image and border-bottom
// Header component for the main website // // Styleguide header .header { position: relative; border-bottom: $baseline-unit/2 solid $color-green-light; background: $color-green-primary; @if $responsive == true { background-size: contain; @include respond-to($mq-l) { background: $color-green-primary image_url('stripes.svg') 90% 0 no-repeat; } } }
// Header component for the main website // // Styleguide header .header { position: relative; background: $color-green-primary; }
Use max-width to ensure the width rule is observed in Firefox
.page-layout { min-height: 100%; display: flex; flex-direction: column; .page-header { position: fixed; width: 100%; z-index: $z-header; // Defensive styles in case header height goes over 100px, causing // the left gutter menu to be on top of the header. height: $header-height; overflow: hidden; } .page-body { display: flex; flex: 1; flex-direction: row; justify-content: space-between; margin-top: $header-height; .page-column { flex: 1; &.is-left { min-width: $gutter-width; max-width: $gutter-width; position: fixed; bottom: 0; top: $header-height; z-index: $z-gutter; background: $white; } &.is-right { margin-left: $gutter-width; width: calc(100% - #{$gutter-width}); } @media #{$mq-hidden-gutter} { &.is-left { top: 0; transform: translateX(-$gutter-width); transition: transform ease-in-out 0.2s; &.is-open { transform: translateX(0); } } &.is-right { margin-left: 0; width: 100%; } } } } }
.page-layout { min-height: 100%; display: flex; flex-direction: column; .page-header { position: fixed; width: 100%; z-index: $z-header; // Defensive styles in case header height goes over 100px, causing // the left gutter menu to be on top of the header. height: $header-height; overflow: hidden; } .page-body { display: flex; flex: 1; flex-direction: row; justify-content: space-between; margin-top: $header-height; .page-column { flex: 1; &.is-left { min-width: $gutter-width; max-width: $gutter-width; position: fixed; bottom: 0; top: $header-height; z-index: $z-gutter; background: $white; } &.is-right { margin-left: $gutter-width; width: calc(100% - #{$gutter-width}); max-width: calc(100% - #{$gutter-width}); } @media #{$mq-hidden-gutter} { &.is-left { top: 0; transform: translateX(-$gutter-width); transition: transform ease-in-out 0.2s; &.is-open { transform: translateX(0); } } &.is-right { margin-left: 0; width: 100%; } } } } }
Fix workbin tree stylings reverting to default.
div.materials-folder-controls { padding-bottom: 1em; } ul.jqtree-tree li.jqtree-selected > .jqtree-element, ul.jqtree-tree li.jqtree-selected > .jqtree-element:hover { background: #e2e2e2; } .large-label { font-size: 24px; border-radius: 6px; padding: 4px 12px 4px; } .workbin-file-selected, tr.workbin-file-row:hover { background: #fef9dd; }
div.materials-folder-controls { padding-bottom: 1em; } #file-tree ul.jqtree-tree li.jqtree-selected > .jqtree-element, ul.jqtree-tree li.jqtree-selected > .jqtree-element:hover { background: #e2e2e2; } .large-label { font-size: 24px; border-radius: 6px; padding: 4px 12px 4px; } .workbin-file-selected, tr.workbin-file-row:hover { background: #fef9dd; }
Edit 'start again' link focus state
.step { .next-question { button { font-size: 19px; line-height: 1.25; } } }
.step { .next-question { button { font-size: 19px; line-height: 1.25; } } } .start-again { background: govuk-colour("white"); height: 2.5em; position: absolute; right: 0; text-align: center; top: -2.5em; width: 11em; .govuk-link { display: inline; text-align: left; } }
Refactor navbar styling using scss
#index_navbar { background-color: $index-navbar-bg-color; border-color: $index-navbar-bg-color; font-size: $index-navbar-font-size; } #index_navbar .navbar-nav > li > a { color: $index-text-color; font-family: 'Open Sans Condensed', sans-serif; } #index_navbar .navbar-brand { color: $index-text-color; font-family: 'Orbitron', sans-serif; font-size: $index-navbar-brand-font-size; } #index_navbar .navbar-toggle .icon-bar { background-color: $index-text-color; } #index_navbar_toggle_button, #index_navbar_toggle_button:active { border-color: $index-navbar-bg-color; background-color: $index-navbar-bg-color; } #index_navbar_submit_search_button, #index_navbar_submit_search_button:active { background-color: $index-navbar-bg-color; border-color: $index-navbar-bg-color; color: $index-text-color; }
#index_navbar { background-color: $index-navbar-bg-color; border-color: $index-navbar-bg-color; font-size: $index-navbar-font-size; .navbar-brand { color: $index-text-color; font-family: $index-header-font-list; font-size: $index-navbar-brand-font-size; } .navbar-toggle { .icon-bar { background-color: $index-text-color; } } .navbar-nav { &>li { &>a { color: $index-text-color; font-family: $index-navbar-font-list; } } } } #index_navbar_toggle_button, #index_navbar_toggle_button:active { border-color: $index-navbar-bg-color; background-color: $index-navbar-bg-color; } #index_navbar_submit_search_button, #index_navbar_submit_search_button:active { background-color: $index-navbar-bg-color; border-color: $index-navbar-bg-color; color: $index-text-color; }
Add delay to allow images to load.
@import "mixins"; #guests { @include animate(fade-in .5s both); margin: 0 auto; max-width: 960px; text-align: center; width: 100%; } .guest-preview { @include transition(all .2s ease); display: block; margin-bottom: 2rem; width: 100%; figure { @include backface-visibility; width: 100%; img { height: auto; width: 100%; } } } .guest-preview-quote { @include backface-visibility; color: #666; font-family: $font-tisa; line-height: 1.2em; } // --------------------------- * @include responsive-break-point(321px) { .guest-preview { display: inline-block; text-align: left; vertical-align: top; width: 45%; &:nth-child(odd) { margin-right: 1rem; } } } // --------------------------- * @include responsive-break-point(641px) { .guest-preview { margin: 0 1.5rem 2rem 0; width: 30%; .guest-preview-quote { color: #666; font-family: $font-tisa; font-size: 1.2rem; } &:nth-child(3n+3) { margin-right: 0; } } }
@import "mixins"; #guests { @include animate(fade-in .5s .2s both); margin: 0 auto; max-width: 960px; text-align: center; width: 100%; } .guest-preview { @include transition(all .2s ease); display: block; margin-bottom: 2rem; width: 100%; figure { @include backface-visibility; width: 100%; img { height: auto; width: 100%; } } } .guest-preview-quote { @include backface-visibility; color: #666; font-family: $font-tisa; line-height: 1.2em; } // --------------------------- * @include responsive-break-point(321px) { .guest-preview { display: inline-block; text-align: left; vertical-align: top; width: 45%; &:nth-child(odd) { margin-right: 1rem; } } } // --------------------------- * @include responsive-break-point(641px) { .guest-preview { margin: 0 1.5rem 2rem 0; width: 30%; .guest-preview-quote { color: #666; font-family: $font-tisa; font-size: 1.2rem; } &:nth-child(3n+3) { margin-right: 0; } } }
Remove references to toolkit type mixin
// Form navigation .form-navigation{ @include core-16(); margin: $gutter 0 0; } // Back link a.back-to-previous{ &:before { content: ''; position: relative; left: -6px; display: inline-block; border: 6px solid transparent; border-right-color: $black; } } // Question number .question-number{ padding-left: $gutter-half; color: $secondary-text-colour; }
// Form navigation .form-navigation{ //@include core-16(); margin: $gutter 0 0; } // Back link a.back-to-previous{ &:before { content: ''; position: relative; left: -6px; display: inline-block; border: 6px solid transparent; border-right-color: $black; } } // Question number .question-number{ padding-left: $gutter-half; color: $secondary-text-colour; }
Make sure background extends as far down as the page does
@import './pages/board.scss'; @import './pages/home.scss'; .app-root { background-color: #ccccff; width: 100%; height: 100%; position: absolute; top: 0; left: 0; }
@import './pages/board.scss'; @import './pages/home.scss'; .app-root { background-color: #ccccff; width: 100%; height: 100vw; position: absolute; top: 0; left: 0; }
Switch “preview” MQ to device width
--- # Only the main Sass file needs front matter (the dashes are enough) --- @media screen { html { background-color: #333; max-width: 35em; margin: 0 auto; @media (min-width: 50em) { max-width: 20em; } } body { background-color: #fff; } } @import "mixins"; @import "variables"; @import "theme-a4w-enhanced";
--- # Only the main Sass file needs front matter (the dashes are enough) --- @media screen { html { background-color: #333; max-width: 35em; margin: 0 auto; @media (min-device-width: 50em) { max-width: 20em; } } body { background-color: #fff; } } @import "mixins"; @import "variables"; @import "theme-a4w-enhanced";
Update SVG fallback text styles
/*================ #Icons ================*/ .icon { display: inline-block; width: 20px; height: 20px; .supports-no-fontface & { display: none; } } svg, symbol { &.icon:not(.icon--full-color) { circle, ellipse, g, line, path, polygon, polyline, rect { fill: inherit; stroke: inherit; } } } /*============================================================================ A generic way to visually hide content while remaining accessible to screen readers (h5bp.com) ==============================================================================*/ .supports-svg .icon__fallback-text { @extend .visually-hidden; } /*================ Payment Icons ================*/ .payment-icons { @include user-select(); cursor: default; }
/*================ #Icons ================*/ .icon { display: inline-block; width: 20px; height: 20px; vertical-align: middle; .supports-no-svg & { display: none; } } svg, symbol { &.icon:not(.icon--full-color) { circle, ellipse, g, line, path, polygon, polyline, rect { fill: inherit; stroke: inherit; } } } /*============================================================================ A generic way to visually hide content while remaining accessible to screen readers (h5bp.com) ==============================================================================*/ .icon__fallback-text { @extend .visually-hidden; .supports-no-svg & { // scss-lint:disable ImportantRule position: static !important; overflow: inherit; clip: none; height: auto; width: auto; margin: 0; } } /*================ Payment Icons ================*/ .payment-icons { @include user-select(); cursor: default; }
Change manage reservations list table margin
.app-ManageReservationsList { $header-background: #f1f1f1; $color: #1a1a1a; $border: 1px solid rgb(229, 229, 229); $row-height: 64px; &__table { > thead { background: $header-background; > tr > th { padding: 8px 16px; height: $row-height; font-size: 14px; color: $color; border-bottom: $border; vertical-align: middle; } } > tbody { > tr > td { padding: 22px 16px; border-top: none; height: $row-height; border-bottom: $border; font-size: 14px; line-height: 18px; color: $color; vertical-align: top; } } } }
.app-ManageReservationsList { $header-background: #f1f1f1; $color: #1a1a1a; $border: 1px solid rgb(229, 229, 229); $row-height: 64px; &__table { margin-bottom: 10px; > thead { background: $header-background; > tr > th { padding: 8px 16px; height: $row-height; font-size: 14px; color: $color; border-bottom: $border; vertical-align: middle; } } > tbody { > tr > td { padding: 22px 16px; border-top: none; height: $row-height; border-bottom: $border; font-size: 14px; line-height: 18px; color: $color; vertical-align: top; } } } }
Reduce spacing of any inner <p> elements
.flash { @extend p; margin: $norm; padding: $norm; border: 1px solid; @include border-radius(3px); form { float: right; } input.button, a.button { margin: -4px 0 0 0; } &.flash-info { border-color: $greyDarker; color: shade($greyDarker, 50); background-color: $greyLighter; } &.flash-success { border-color: $green; color: shade($green, 50); background-color: tint($green, 75); } &.flash-error { border-color: $error; color: shade($error, 50); background-color: tint($error, 75); } } .modal, .list-container { .flash { margin: $norm 0 0 0; } }
.flash { @extend p; margin: $norm; padding: $norm; border: 1px solid; @include border-radius(3px); form { float: right; } input.button, a.button { margin: -4px 0 0 0; } p { margin: 0; padding: 0; } &.flash-info { border-color: $greyDarker; color: shade($greyDarker, 50); background-color: $greyLighter; } &.flash-success { border-color: $green; color: shade($green, 50); background-color: tint($green, 75); } &.flash-error { border-color: $error; color: shade($error, 50); background-color: tint($error, 75); } } .modal, .list-container { .flash { margin: $norm 0 0 0; } }
Use Safari transparent tab bar as loading progress indicator
#loading-bar .bar { background: #2c3e50; } #loading-bar .peg { box-shadow: 0 0 10px #2c3e50, 0 0 5px #2c3e50; } #loading-bar-spinner .spinner-icon { border-top-color: #2c3e50; border-left-color: #2c3e50; }
#loading-bar .bar { background: #2c3e50; height: 101px; top: -100px; position: fixed; } #loading-bar .peg { box-shadow: 0 0 10px #2c3e50, 0 0 5px #2c3e50; } #loading-bar-spinner .spinner-icon { border-top-color: #2c3e50; border-left-color: #2c3e50; }
Use 'stretch' mixin in pre-game info values
.pre-game-info { &__value { flex: 1; color: $light-gray; &--away { text-align: right; } &--home { text-align: left; } } &__label { display: inline-block; width: 5rem; color: $gray; font-size: 0.8rem; text-transform: uppercase; } }
.pre-game-info { &__value { @include stretch; color: $light-gray; &--away { text-align: right; } &--home { text-align: left; } } &__label { display: inline-block; width: 5rem; color: $gray; font-size: 0.8rem; text-transform: uppercase; } }
Improve avatar size for long names
.app { } .Avatar { border-radius: 50%; background-size: cover; &__Large { height: 60px; width: 60px; margin: 5px; } &__Medium { height: 50px; width: 50px; } } .h3 { &__title { font-size: 2em; line-height: 1em; } &__subtitle { font-family: Georgia; } }
.app { } .Avatar { border-radius: 50%; background-size: cover; &__Large { height: 60px; width: 60px; min-width: 60px; margin: 5px; } &__Medium { height: 50px; width: 50px; } } .h3 { &__title { font-size: 2em; line-height: 1em; } &__subtitle { font-family: Georgia; } }
Fix codemirror double scrollball problem (Andrew **is** cool)
// import your files into one main css file to compile, for example // don't forget to start filenames with '_', e.g. '_mixins', '_styles', etc. /* @import "variables"; @import "mixins"; @import "base"; @import "modules"; */ nav.navbar-inverse h1.navbar-brand { color: #BACFDF;} #background { display: block; position: fixed; top: 100px; left: 0px; height: 650px; width: 50%; background: url('../img/altman-akhmatova.jpg') no-repeat top; opacity: .5; } iframe#visualization{ height: 700px; width: 850px; border: 1px #000 solid; z-index: 100; } #main{ margin-top: 9%; font-size: 2em;} //For adding spacing between buttons .btn{ margin: 0 4px; } body { padding-top: 65px; } .CodeMirror { border: 1px solid #eee; min-width: 450px; min-height: 400px; } .CodeMirror-scroll { overflow-y: hidden; overflow-x: auto; } #visualization-modal-body{ text-align: center }
// import your files into one main css file to compile, for example // don't forget to start filenames with '_', e.g. '_mixins', '_styles', etc. /* @import "variables"; @import "mixins"; @import "base"; @import "modules"; */ nav.navbar-inverse h1.navbar-brand { color: #BACFDF;} #background { display: block; position: fixed; top: 100px; left: 0px; height: 650px; width: 50%; background: url('../img/altman-akhmatova.jpg') no-repeat top; opacity: .5; } iframe#visualization{ height: 700px; width: 850px; border: 1px #000 solid; z-index: 100; } #main{ margin-top: 9%; font-size: 2em;} //For adding spacing between buttons .btn{ margin: 0 4px; } body { padding-top: 65px; } .CodeMirror { border: 1px solid #eee; min-width: 450px; min-height: 400px; } .CodeMirror-scroll { min-height: 400px; overflow-y: hidden; overflow-x: auto; } #visualization-modal-body{ text-align: center }
Update kentucky file to load new files
// ------------------------------------------------------------------- // // Kentucky Project Settings // // Global variables used throughout Kentucky / projects. // ------------------------------------------------------------------- // @import "base/project-settings"; // ------------------------------------------------------------------- // // Kentucky Imports - Functions // // SCSS functions required by other elements of Kentucky. // ------------------------------------------------------------------- // @import "functions/assign"; @import "functions/tint-shade"; // ------------------------------------------------------------------- // // Kentucky Import - Addons // // Additional mixin addons to help speed up front-end development. // ------------------------------------------------------------------- // @import "addons/border"; @import "addons/clearfix"; @import "addons/easings"; @import "addons/hide-text"; @import "addons/input-types"; @import "addons/position"; @import "addons/size"; @import "addons/truncate"; // ------------------------------------------------------------------- // // Kentucky Imports - Base // // These are files related to project-settings (variables) and a // custom set of normalization styles for more consistant HTML // element display as a starting point. // ------------------------------------------------------------------- // @import "base/layouts"; @import "base/typography"; @import "base/buttons"; @import "base/forms"; @import "base/lists"; @import "base/tables";
// Set global charset for CSS @charset "utf-8"; // Project imports @import "utilities/variables"; @import "utilities/functions"; @import "utilities/mixins"; // @import "vendors/*"; @import "base/normalize"; @import "base/typography"; // @import "components/*"; // @import "pages/*";
Add NTA to body and reset font-stack to it
// Import GOV.UK elements from /govuk-modules/, this will import the frontend toolkit and some base styles. // Take a look in /govuk-modules/_govuk-elements.scss to see which files are imported. @import 'govuk-elements'; // Take a look at in app/assets/sass/patterns/ to see which files are imported. @import 'patterns/check-your-answers'; @import 'patterns/unbranded'; // Related items // (These styles will be moved to GOV.UK elements, duplicating here for now.) .govuk-related-items { margin-top: $gutter; border-top: 10px solid $govuk-blue; padding-top: 5px; .heading-medium { margin-top: 0.3em; margin-bottom: 0.5em } li { margin-bottom: 10px; list-style-type: none; } } // Add extra styles here, or re-organise the Sass files in whichever way makes most sense to you
// Import GOV.UK elements from /govuk-modules/, this will import the frontend toolkit and some base styles. // Take a look in /govuk-modules/_govuk-elements.scss to see which files are imported. @import 'govuk-elements'; // Take a look at in app/assets/sass/patterns/ to see which files are imported. @import 'patterns/check-your-answers'; @import 'patterns/unbranded'; $toolkit-font-stack: $NTA-Light; body { @include core-19; } // Related items // (These styles will be moved to GOV.UK elements, duplicating here for now.) .govuk-related-items { margin-top: $gutter; border-top: 10px solid $govuk-blue; padding-top: 5px; .heading-medium { margin-top: 0.3em; margin-bottom: 0.5em } li { margin-bottom: 10px; list-style-type: none; } } // Add extra styles here, or re-organise the Sass files in whichever way makes most sense to you
Fix vertical alignment of content grid columns.
// Layout rules for Obtain Corn Hoop. // // Copyright (C) 2013 Damien Dart, <damiendart@pobox.com>. // This file is distributed under the MIT licence. For more information, // please refer to the accompanying "LICENCE" file. @import "functions"; @import "mixins"; @import "variables"; .layout-content { margin: 0 auto; // TODO: Remove poor-man's responsive layout bullshit. @media screen and (min-width: 872px) { width: calculate_em(872px, $base-font-size); } .layout-content__content { // The use of "inline-block" means that there cannot be any whitespace // between the main and side content elements. display: inline-block; } .layout-content__content--maincontent { width: calculate_em(($base-layout-unit * 2) + 500px, $base-font-size); } .layout-content__content--sidecontent { margin: 0 0 0 calculate_em($base-layout-unit, $base-font-size); width: calculate_em(300px, $base-font-size); } } .layout-siteheader { left: 0; position: fixed; top: 0; width: 100%; }
// Layout rules for Obtain Corn Hoop. // // Copyright (C) 2013 Damien Dart, <damiendart@pobox.com>. // This file is distributed under the MIT licence. For more information, // please refer to the accompanying "LICENCE" file. @import "functions"; @import "mixins"; @import "variables"; .layout-content { margin: 0 auto; // TODO: Remove poor-man's responsive layout bullshit. @media screen and (min-width: 872px) { width: calculate_em(872px, $base-font-size); } .layout-content__content { // The use of "inline-block" means that there cannot be any whitespace // between the main and side content elements. display: inline-block; vertical-align: top; } .layout-content__content--maincontent { width: calculate_em(($base-layout-unit * 2) + 500px, $base-font-size); } .layout-content__content--sidecontent { margin: 0 0 0 calculate_em($base-layout-unit, $base-font-size); width: calculate_em(300px, $base-font-size); } } .layout-siteheader { left: 0; position: fixed; top: 0; width: 100%; }
Make margin/padding top/bottom styling generic
a { color: #03A9F4; } .row { &.padded-top { padding-top:20px; } &.padded-bottom { padding-bottom:20px; } } .loader { border: 8px solid #f3f3f3; /* Light grey */ border-top: 8px solid #3498db; /* Blue */ border-bottom: 8px solid #3498db; /* Blue */ border-radius: 50%; width: 34px; height: 34px; animation: spin 1s linear infinite; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
a { color: #03A9F4; } .margin-top { margin-top:20px; } .margin-bottom { margin-bottom:20px; } .padded-top { padding-top:20px; } .padded-bottom { padding-bottom:20px; } .loader { border: 8px solid #f3f3f3; /* Light grey */ border-top: 8px solid #3498db; /* Blue */ border-bottom: 8px solid #3498db; /* Blue */ border-radius: 50%; width: 34px; height: 34px; animation: spin 1s linear infinite; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
Fix styling on content type builder left menu list
.leftMenuSection { margin-top: 3.3rem; > ul { margin: 1rem 0 0 -1.5rem; padding: 0; font-size: 1.3rem; } }
.leftMenuSection { margin-top: 3.3rem; > ul { margin: 1rem 0 0 -1.5rem; padding: 0; font-size: 1.3rem; list-style-type: none; } }
Add import for breakpoint mixin
// functions @import "bower_components/spacelab-functions.rem/functions.rem"; // mixins @import "bower_components/spacelab-mixins.font-size/mixins.font-size"; // base @import "bower_components/spacelab-base.border-box/base.border-box"; @import "bower_components/spacelab-base.media/base.media"; @import "bower_components/spacelab-base.links/base.links"; @import "bower_components/spacelab-base.headings/base.headings"; // objects // @import "bower_components/spacelab-objects.media/objects.media"; // @import "bower_components/spacelab-objects.buttons/objects.buttons"; // project specific @import "settings/settings.imports"; @import "modules/modules.imports";
// functions @import "bower_components/spacelab-functions.rem/functions.rem"; // mixins @import "bower_components/spacelab-mixins.breakpoint/mixins.breakpoint"; @import "bower_components/spacelab-mixins.font-size/mixins.font-size"; // base @import "bower_components/spacelab-base.border-box/base.border-box"; @import "bower_components/spacelab-base.media/base.media"; @import "bower_components/spacelab-base.links/base.links"; @import "bower_components/spacelab-base.headings/base.headings"; // objects // @import "bower_components/spacelab-objects.media/objects.media"; // @import "bower_components/spacelab-objects.buttons/objects.buttons"; // project specific @import "settings/settings.imports"; @import "modules/modules.imports";
Split actions now has a modifer rule to remove the top margin when in mobile only
@mixin split-actions($selector, $alignment-style) { #{$selector} { clear: both; width: 100%; margin-bottom: $grid-unit; margin-top: $grid-unit*3; @include clearfix; .first-action { float: left; } .last-action { @include respond-to($lap-and-desk) { float: right; } } @include respond-to-print() { display: none; } } } @include split-actions(".split-actions", far-edges);
@mixin split-actions($selector, $alignment-style) { #{$selector} { clear: both; width: 100%; margin-bottom: $grid-unit; margin-top: $grid-unit*3; @include clearfix; .first-action { float: left; } @include respond-to($palm-only) { &--no-margin { margin: 0; } } .last-action { @include respond-to($lap-and-desk) { float: right; } } @include respond-to-print() { display: none; } } } @include split-actions(".split-actions", far-edges);
Update the styling for blockquotes to remove the quotation mark
blockquote { background: #f9f9f9; border-left: 10px solid #ccc; margin: 1.5rem 1rem; padding: 0.5em 10px; quotes: "\201C""\201D""\2018""\2019"; &:before { color: #ccc; content: open-quote; font-size: 3.5em; line-height: 0.1em; margin-right: 0.15em; vertical-align: -0.4em; } } blockquote p { display: inline; }
blockquote { background: #f9f9f9; border-left: 10px solid #ccc; margin: 1.5rem 1rem; padding: 0.5em 10px; quotes: "\201C""\201D""\2018""\2019"; } blockquote p { display: inline; }
Fix recipe bullets decoration according to preliminary UI specs
/** maillon circles **/ .maillon-circle{ circle{ stroke:#b6be00; stroke-width:3; fill:#b6be00; &.maillon-circle-enabled-hovered{ stroke:#00CCFF; stroke-width:3; fill:#ffffff; } } path{ stroke:#b6be00; stroke-width:1; fill:none; &.maillon-cables-disabled{ stroke:#DFDFDF; stroke-width:0.4; fill:none; } &.single-maillon-cables-disabled{ stroke:#DFDFDF; stroke-width:0.4; fill:none; } } } .maillon-circle-disabled{ circle{ stroke:#D2D2D2; stroke-width:3; fill:#ffffff; &.maillon-circle-disabled-hovered{ stroke:blue; stroke-width:3; fill:#B122FF; } } path{ stroke:#DFDFDF; stroke-width:0.4; fill:none; } }
/** maillon circles **/ $stroke-width: 4; $stroke-width-path: 2.5; $disabled-color: $shadow-gray; .maillon-circle{ circle{ stroke:$dark-green; stroke-width:$stroke-width; fill:$dark-green; &.maillon-circle-enabled-hovered{ stroke:$blue; stroke-width:$stroke-width; fill:$white; } } path{ stroke:$dark-green; stroke-width:$stroke-width-path; fill:none; &.maillon-cables-disabled{ stroke:$disabled-color; stroke-width:$stroke-width-path; fill:none; } &.single-maillon-cables-disabled{ stroke:$disabled-color; stroke-width:$stroke-width-path; fill:none; } } } .maillon-circle-disabled{ circle{ stroke:$disabled-color; stroke-width:$stroke-width; fill:$white; &.maillon-circle-disabled-hovered{ stroke:$dark-blue; stroke-width:$stroke-width; fill:$blue; } } path{ stroke:$disabled-color; stroke-width:$stroke-width-path; fill:none; } }
Fix block quotes on student static.
.student-static-page-container { display: flex; font-size: 36px; background-color: white; height: calc(100vh - 50px); text-align: center; color: #000000; margin-top: 30px; .student-static-page { width: 100%; max-width: 770px; margin:0 auto; blockquote { margin-top: 80px; border-radius: 3px; padding: 20 55; background-color: #fafafa; } ul { margin-top: 55px; list-style-type: disc; } } }
.student-static-page-container { display: flex; font-size: 36px; background-color: white; height: calc(100vh - 50px); text-align: center; color: #000000; margin-top: 30px; .student-static-page { width: 100%; max-width: 770px; margin:0 auto; blockquote { margin-top: 40px; border-radius: 3px; padding: 20 55; background-color: #fafafa; } ul { margin-top: 55px; list-style-type: disc; } } }