Instruction
stringlengths
14
778
input_code
stringlengths
0
4.24k
output_code
stringlengths
1
5.44k
Add some margin to li's in the guide
.guide { .thumbnail { text-decoration: none; .title { text-align: center; } } p { text-align: justify; } .list-thumbnail { display: inline-block; list-style: none; width: 230px; } .attribution { display: inline-block; font-size: 10px; line-height: 14px; text-align: right; width: 100%; } .table { .time { white-space: nowrap; } } .dl-light { dt { font-weight: normal; } } }
.guide { .thumbnail { text-decoration: none; .title { text-align: center; } } p { text-align: justify; } .list-thumbnail { display: inline-block; list-style: none; width: 230px; } .attribution { display: inline-block; font-size: 10px; line-height: 14px; text-align: right; width: 100%; } .table { .time { white-space: nowrap; } } .dl-light { dt { font-weight: normal; } } li { margin-bottom: 7px; } }
Fix iOS scrolling modal issue
.signup-modal { &__header { font-family: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: bold; font-size: 1rem; margin: 0; padding: 0.5rem; } &__body { padding: 0.5rem; } .form-group { margin-bottom: 0.25rem; } }
.signup-modal { &__header { font-family: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: bold; font-size: 1rem; margin: 0; padding: 0.5rem; } &__body { padding: 0.5rem; } .form-group { margin-bottom: 0.25rem; } } // Fix iOS scrolling bug where pointer events were being // swallowed, preventing scrolling of the div. .modal.fade.show { pointer-events: auto !important; }
Update speed of animation for 'instant' action cards
@mixin center-horizontal { left: 50%; position: absolute; transform: translateX(-50%); } @mixin center-vertical { position: absolute; top: 50%; transform: translateY(-50%); } @mixin center { left: 50%; position: absolute; top: 50%; transform: translateY(-50%) translateX(-50%); } // Mixin that will include the fall back px declaration as well as the calculated rem value. @mixin fallback-font-size($size) { font-size: $size; font-size: rem-calc($size); } @mixin flip-card($type: 'action') { .card { animation-fill-mode: forwards; backface-visibility: hidden; &.blank-- { animation-duration: 3s; animation-name: spin; animation-timing-function: linear; } } [card-type=#{$type}] { .card { animation-delay: 2.25s; animation-duration: .5s; animation-name: spin-reverse; animation-timing-function: ease-out; transform: rotateY(-90deg); @content; } } &.instant { .card { animation-delay: .25s; &.blank-- { animation-duration: .25s; } } } }
@mixin center-horizontal { left: 50%; position: absolute; transform: translateX(-50%); } @mixin center-vertical { position: absolute; top: 50%; transform: translateY(-50%); } @mixin center { left: 50%; position: absolute; top: 50%; transform: translateY(-50%) translateX(-50%); } // Mixin that will include the fall back px declaration as well as the calculated rem value. @mixin fallback-font-size($size) { font-size: $size; font-size: rem-calc($size); } @mixin flip-card($type: 'action') { .card { animation-fill-mode: forwards; backface-visibility: hidden; &.blank-- { animation-duration: 3s; animation-name: spin; animation-timing-function: linear; } } [card-type=#{$type}] { .card { animation-delay: 2.5s; animation-duration: .5s; animation-name: spin-reverse; animation-timing-function: ease-out; transform: rotateY(-90deg); @content; } } &.instant { .card { animation-delay: .2s; &.blank-- { animation-duration: .25s; } } } }
Change tint/shade to use hex colors instead of named
//// /// Global functions /// /// @group utilities //// /// Shorthand color mixing function. /// Tint mixes a defined percentage of white into the chosen color. /// @parameter {string} $color - Base color to mix white into. /// @parameter {string} $percent - Percentage of white to mix into color. /// @example scss /// .link:hover { /// color: tint(#b4d455, 10%); /// } /// @example css /// .link:hover { /// color: #bcd866; /// } @function tint($color, $percent) { @return mix(white, $color, $percent); } /// Shorthand color mixing function. /// Shade mixes a defined percentage of black into the chosen color. /// @parameter {string} $color - Base color to mix black into. /// @parameter {string} $percent - Percentage of black to mix into color. /// @example scss /// .link:hover { /// color: shade(#b4d455, 10%); /// } /// @example css /// .link:hover { /// color: #a2bf4d; /// } @function shade($color, $percent) { @return mix(black, $color, $percent); }
//// /// Global functions /// /// @group utilities //// /// Shorthand color mixing function. /// Tint mixes a defined percentage of white into the chosen color. /// @parameter {string} $color - Base color to mix white into. /// @parameter {string} $percent - Percentage of white to mix into color. /// @example scss /// .link:hover { /// color: tint(#b4d455, 10%); /// } /// @example css /// .link:hover { /// color: #bcd866; /// } @function tint($color, $percent) { @return mix(#fff, $color, $percent); } /// Shorthand color mixing function. /// Shade mixes a defined percentage of black into the chosen color. /// @parameter {string} $color - Base color to mix black into. /// @parameter {string} $percent - Percentage of black to mix into color. /// @example scss /// .link:hover { /// color: shade(#b4d455, 10%); /// } /// @example css /// .link:hover { /// color: #a2bf4d; /// } @function shade($color, $percent) { @return mix(#000, $color, $percent); }
Update styling to fix semantic bug
/* ============================================================================= App specific CSS file. ========================================================================== */ // @import "../../node_modules/semantic-ui-css/semantic.min"; @import "http://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.2/semantic.min.css"; /* universal */ html { overflow-y: scroll; } .no-margin { margin:0 !important; } .app-content { margin-top: 75px; }
/* ============================================================================= App specific CSS file. ========================================================================== */ // @import "../../node_modules/semantic-ui-css/semantic.min"; @import "http://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.2/semantic.min.css"; /* universal */ html { overflow-y: scroll; } .no-margin { margin:0 !important; } .app-content { margin-top: 75px; } .dropdown > .icon { display:inline-block !important; }
Add space before register page research paragraph
@import 'custom_variables/_colors.scss'; @import 'custom_overrides/_header.scss'; $help-modal-button-color: $palo-alto; @import 'custom_overrides/_help_modal.scss'; @import 'custom_overrides/_print.scss'; $footer-logo-width: 100px; @import 'custom_overrides/_footer.scss'; // Custom default styling for Lagunita courses, UX001 @import 'custom_overrides/_course_styling.scss'; @import 'custom_overrides/_instructor.scss'; @import 'custom_overrides/_typography.scss'; // Student profile .account-settings-container, .wrapper-profile { margin-bottom: 30px; } // Hide the copyright footer on the ProblemBuilder XBlock .xblock .mentoring .copyright { display: none; } @import 'custom_overrides/_mobile.scss';
@import 'custom_variables/_colors.scss'; @import 'custom_overrides/_header.scss'; $help-modal-button-color: $palo-alto; @import 'custom_overrides/_help_modal.scss'; @import 'custom_overrides/_print.scss'; $footer-logo-width: 100px; @import 'custom_overrides/_footer.scss'; // Custom default styling for Lagunita courses, UX001 @import 'custom_overrides/_course_styling.scss'; @import 'custom_overrides/_instructor.scss'; @import 'custom_overrides/_typography.scss'; #register-extra { margin-top: 25px; } // Student profile .account-settings-container, .wrapper-profile { margin-bottom: 30px; } // Hide the copyright footer on the ProblemBuilder XBlock .xblock .mentoring .copyright { display: none; } @import 'custom_overrides/_mobile.scss';
Fix relative paths in sass
@charset "UTF-8"; @import "settings"; @import "../../bower_components/bootstrap-sass/assets/stylesheets/_bootstrap.scss"; @import "../../bower_components/fontawesome/scss/font-awesome.scss"; @import "keen-dashboard"; @import "../../bower_components/flag-icon-css/sass/flag-icon.scss"; @import "autogenerated/mapbox.uncompressed.scss"; @import "autogenerated/MarkerCluster.scss"; @import "autogenerated/MarkerCluster.Default.scss"; @import "custom"; @import "docraptor";
@charset "UTF-8"; @import "settings"; @import "../../../bower_components/bootstrap-sass/assets/stylesheets/_bootstrap.scss"; @import "../../../bower_components/fontawesome/scss/font-awesome.scss"; @import "keen-dashboard"; @import "../../../bower_components/flag-icon-css/sass/flag-icon.scss"; @import "autogenerated/mapbox.uncompressed.scss"; @import "autogenerated/MarkerCluster.scss"; @import "autogenerated/MarkerCluster.Default.scss"; @import "custom"; @import "docraptor";
Remove list icon from index.
@import "colors"; /* Table of contents (site-wide) *********************************************/ #index { text-align: left; > ul > li { margin: 2em 0; } ul { list-style: none; font-weight: 600; margin: 0.1em 0; } ul ul { margin-left: 2em; font-weight: normal; } ul ul li::before { content: "↳\ "; } a, span { text-transform: lowercase; } span { cursor: default; } // If an item contains no items with children of their own, we collapse // them onto a single line with a dot in between them ul.only-leaves li { display: inline; } ul.only-leaves li + li:before { content: "\ \2022\00a0\ "; font-size: 0.6em; color: $color-scenery; } }
@import "colors"; /* Table of contents (site-wide) *********************************************/ #index { text-align: left; > ul > li { margin: 2em 0; } ul { list-style: none; font-weight: 600; margin: 0.1em 0; } ul ul { margin-left: 2em; font-weight: normal; } //ul ul li::before { // content: "↳\ "; //} a, span { text-transform: lowercase; } span { cursor: default; } // If an item contains no items with children of their own, we collapse // them onto a single line with a dot in between them ul.only-leaves li { display: inline; } ul.only-leaves li + li:before { content: "\ \2022\00a0\ "; font-size: 0.6em; color: $color-scenery; } }
Make editor tab color match editor theme
$sections: title, content, tag-bar ; .article.page { display: grid; grid-template-areas: "title" "content" "tag-bar" ; grid-template-rows: 52px calc(100% - 88px) 36px; height: 100%; @each $section in $sections { .#{$section} { grid-area: $section; } } header.title { display: grid; font-size: 2em; font-weight: bold; grid-template-columns: auto 30px; padding: 10px; } .contents { border-top: 1px solid $color-border; border-bottom: 1px solid $color-border; display: grid; grid-template-rows: 1fr; height: 100%; overflow-y: auto; .jsx-parser > p:first-of-type { margin-top: 0; } } .tag-bar:not(.readonly) { background: darken($color-bg, 5%); box-shadow: 0 3px 3px $palette-gray-light inset; } }
$sections: title, content, tag-bar ; .article.page { display: grid; grid-template-areas: "title" "content" "tag-bar" ; grid-template-rows: 52px calc(100% - 88px) 36px; height: 100%; @each $section in $sections { .#{$section} { grid-area: $section; } } header.title { display: grid; font-size: 2em; font-weight: bold; grid-template-columns: auto 30px; padding: 10px; } .contents { border-top: 1px solid $color-border; border-bottom: 1px solid $color-border; display: grid; grid-template-rows: 1fr; height: 100%; overflow-y: auto; .jsx-parser > p:first-of-type { margin-top: 0; } .tab-set > .tabs.editor { .tab.is-active { background-color: #fff; } ~ .tab-contents { padding: 0; } } } .tag-bar:not(.readonly) { background: darken($color-bg, 5%); box-shadow: 0 3px 3px $palette-gray-light inset; } }
Fix scroll bar in bem theme
.sv-main ::-webkit-scrollbar { height: 6px; width: 6px; background-color: $main-hover-color; } .sv-main ::-webkit-scrollbar-thumb { background: $main-color; }
.sv-root-bem ::-webkit-scrollbar { height: 6px; width: 6px; background-color: $main-hover-color; } .sv-root-bem ::-webkit-scrollbar-thumb { background: $main-color; }
Set primary bg-color on sites-button
.sites-button { background: #FF6908; font-size: 1.25rem; font-weight: bold; box-shadow: 0 -2px 0 rgba(0,0,0,0.2) inset; border-radius: 3px; border: none; }
.sites-button { background: $primary-color; font-size: 1.25rem; font-weight: bold; box-shadow: 0 -2px 0 rgba(0,0,0,0.2) inset; border-radius: 3px; border: none; }
Remove georgia from alphabet list, add gradient.
@import "../shared/utils"; .alphabetical_group { @include clearfix; border-bottom: 2px solid #ddd; margin-left: 0; margin-bottom: 2.7em; padding-left: 4em; position: relative; h2 { @include type-24; color: #fff; left: 0; position: absolute; text-align: center; top: 0.2em; width: 2em; padding-top: 0.5em; padding-bottom: 0.5em; background: #555; font-family: georgia; } ul { @include clearfix; margin-bottom: 0; li { float: left; margin-bottom: 0; padding-top: 0.75em; padding-bottom: 0.9em; @include span_one_column; h3, p { margin-bottom: 0; } p { @include type-12; margin-bottom: 0; } a { @include type-18; font-weight: bold; margin-bottom: 0; } } } .ministerial_role { min-height: 5.45em; } }
@import "../shared/utils"; .alphabetical_group { @include clearfix; border-bottom: 2px solid #ddd; margin-left: 0; margin-bottom: 2.7em; padding-left: 4em; position: relative; h2 { @include type-24; color: #fff; left: 0; position: absolute; text-align: center; top: 0.2em; width: 2em; padding-top: 0.5em; padding-bottom: 0.5em; background: #555; @include vertical_gradient(#666, #444); } ul { @include clearfix; margin-bottom: 0; li { float: left; margin-bottom: 0; padding-top: 0.75em; padding-bottom: 0.9em; @include span_one_column; h3, p { margin-bottom: 0; } p { @include type-12; margin-bottom: 0; } a { @include type-18; font-weight: bold; margin-bottom: 0; } } } .ministerial_role { min-height: 5.45em; } }
Adjust vars image folders to new names
/* ========================================================================== Paths This file is exclusively intended for setting up variables Never add styles directly to this file Style guide: https://github.com/necolas/idiomatic-css ========================================================================== */ /* General ========================================================================== */ $root: "/bundles/websitebundle"; $vendor: "../../vendor"; /* Image folders ========================================================================== */ $btns: "#{$root}/img/btns"; $css-bg: "#{$root}/img/css-bg"; $dummy: "#{$root}/img/dummy"; $general: "#{$root}/img/general"; $icons: "#{$root}/img/icons"; /* Icon folders ========================================================================== */ // Cupcake $cupcake-iconfont-url: "#{$vendor}/cupcake/icons/fonts"; // Bootstrap $iconSpritePath: "#{$vendor}/sass-bootstrap/img/glyphicons-halflings.png"; $iconWhiteSpritePath: "#{$vendor}/sass-bootstrap/img/glyphicons-halflings.png";
/* ========================================================================== Paths This file is exclusively intended for setting up variables Never add styles directly to this file Style guide: https://github.com/necolas/idiomatic-css ========================================================================== */ /* General ========================================================================== */ $root: "/bundles/websitebundle"; $vendor: "../../vendor"; /* Image folders ========================================================================== */ $backgrounds: "#{$root}/img/backgrounds"; $buttons: "#{$root}/img/buttons"; $dummy: "#{$root}/img/dummy"; $general: "#{$root}/img/general"; $icons: "#{$root}/img/icons"; /* Icon folders ========================================================================== */ // Cupcake $cupcake-iconfont-url: "#{$vendor}/cupcake/icons/fonts"; // Bootstrap $iconSpritePath: "#{$vendor}/sass-bootstrap/img/glyphicons-halflings.png"; $iconWhiteSpritePath: "#{$vendor}/sass-bootstrap/img/glyphicons-halflings.png";
Update to use SCSS stacking and improve readibility
/* For image replacement */ .ir { display: block; text-indent: -999em; overflow: hidden; background-repeat: no-repeat; text-align: left; direction: ltr; } .ir br { display: none; } /* Hide for both screenreaders and browsers */ .hidden { display: none; visibility: hidden; } /* Hide only visually, but have it available for screenreaders */ .visuallyhidden { position:absolute; left:-9999em; } /* Extends the .visuallyhidden class to allow the element to be focusable when navigated to via the keyboard */ .visuallyhidden.focusable:active, .visuallyhidden.focusable:focus { clip: auto; height: auto; margin: 0; overflow: visible; position: static; width: auto; } /* Hide visually and from screenreaders, but maintain layout */ .invisible { visibility: hidden; } /* Give a strong clear visual idea as to what is currently in focus */ /*:focus,*/ a:focus { background-color: #ffbf47; outline: 3px solid #ffbf47; } input:focus, textarea:focus, select:focus, #global-header input:focus { outline: 3px solid #ffbf47; } #global-header h1 a:focus { background-color: transparent; outline: none; } #global-header a:focus { color: #000; }
/* For image replacement */ .ir { display: block; text-indent: -999em; overflow: hidden; background-repeat: no-repeat; text-align: left; direction: ltr; br { display: none; } } /* Hide for both screenreaders and browsers */ .hidden { display: none; visibility: hidden; } /* Hide only visually, but have it available for screenreaders */ .visuallyhidden { position: absolute; left: -9999em; /* * Extends the .visuallyhidden class to allow the element to be * focusable when navigated to via the keyboard */ &.focusable:active, &.focusable:focus { clip: auto; height: auto; margin: 0; overflow: visible; position: static; width: auto; } } /* Hide visually and from screenreaders, but maintain layout */ .invisible { visibility: hidden; } /* Give a strong clear visual idea as to what is currently in focus */ a:focus { background-color: #ffbf47; outline: 3px solid #ffbf47; } input:focus, textarea:focus, select:focus, #global-header input:focus { outline: 3px solid #ffbf47; } #global-header { h1 a:focus { background-color: transparent; outline: none; } a:focus { color: #000; } }
Make icon-library SCSS import use a relative path.
// Libraries @import 'compass'; @import 'icon-library/scss/icons'; // Global @import 'global/index'; // Base components @import 'baseDropdown/index'; // Components @import 'addOnControl/index'; @import 'appHeader/index'; @import 'body/index'; @import 'button/index'; @import 'buttonGroup/index'; @import 'menu/index'; @import 'chart/index'; @import 'checkBox/index'; @import 'columnLayout/index'; @import 'dateRange/index'; @import 'dropdown/index'; @import 'fieldMessage/index'; @import 'filtersControl/index'; @import 'form/index'; @import 'grid/index'; @import 'kpi/index'; @import 'label/index'; @import 'labeledControl/index'; @import 'labeledField/index'; @import 'link/index'; @import 'modal/index'; @import 'organizationSwitcher/index'; @import 'panel/index'; @import 'pickedList/index'; @import 'pickedSummary/index'; @import 'searchBox/index'; @import 'spinner/index'; @import 'statusDot/index'; @import 'statusDropdown/index'; @import 'summaryControl/index'; @import 'text/index'; @import 'textArea/index'; @import 'textInput/index'; @import 'titleBar/index'; @import 'verticalLayout/index'; @import 'viewHeader/index';
// Libraries @import 'compass'; // Use a relative path so this import works without requiring icon-library // to be a dependency of the consuming project. @import '../../node_modules/icon-library/scss/icons'; // Global @import 'global/index'; // Base components @import 'baseDropdown/index'; // Components @import 'addOnControl/index'; @import 'appHeader/index'; @import 'body/index'; @import 'button/index'; @import 'buttonGroup/index'; @import 'menu/index'; @import 'chart/index'; @import 'checkBox/index'; @import 'columnLayout/index'; @import 'dateRange/index'; @import 'dropdown/index'; @import 'fieldMessage/index'; @import 'filtersControl/index'; @import 'form/index'; @import 'grid/index'; @import 'kpi/index'; @import 'label/index'; @import 'labeledControl/index'; @import 'labeledField/index'; @import 'link/index'; @import 'modal/index'; @import 'organizationSwitcher/index'; @import 'panel/index'; @import 'pickedList/index'; @import 'pickedSummary/index'; @import 'searchBox/index'; @import 'spinner/index'; @import 'statusDot/index'; @import 'statusDropdown/index'; @import 'summaryControl/index'; @import 'text/index'; @import 'textArea/index'; @import 'textInput/index'; @import 'titleBar/index'; @import 'verticalLayout/index'; @import 'viewHeader/index';
Add top padding to blog h1 tag
.blogs{ margin-top: 43px; background-color: #fff; h3{ text-align: center; } ul{ list-style: none; a{ font-family: verdana; color:#A6430A ; display: block; margin: 15px; padding: 9px; border: 1px solid #A6430A; -moz-border-radius: 12px; -webkit-border-radius: 12px; -border-radius: 12px; text-decoration: none; } a:hover{ color: #fff; background-color: rgba(81,86,115,.15); } .title{ float: left; } .date{ float: right; } } } /* small screen posiiton*/ @media only screen and (min-width: 50px) and (max-width: 500px){ .blogs{ position: static; margin-top: 0px; } }
.blogs{ padding-top: 10px; margin-top: 43px; background-color: #fff; h3{ text-align: center; } ul{ list-style: none; a{ font-family: verdana; color:#A6430A ; display: block; margin: 15px; padding: 9px; border: 1px solid #A6430A; -moz-border-radius: 12px; -webkit-border-radius: 12px; -border-radius: 12px; text-decoration: none; } a:hover{ color: #fff; background-color: rgba(81,86,115,.15); } .title{ float: left; } .date{ float: right; } } } /* small screen posiiton*/ @media only screen and (min-width: 50px) and (max-width: 500px){ .blogs{ position: static; margin-top: 0px; } }
Add global clicakable global css class
@import "compass/css3/border-radius"; @import "compass/css3/box-shadow"; body { background-color: #fefefe; } .box { background-color: white; @include border-radius(5px); padding: 15px 15px; border: 1px solid grey; @include box-shadow(5px 5px 10px 0 #4F4F4F); } #dropdownPicture { padding: 0px; padding-top: 3px; } @import 'login'; @import 'notification'; @import 'projectView'; @import 'profileView'; @import 'editProfileView';
@import "compass/css3/border-radius"; @import "compass/css3/box-shadow"; body { background-color: #fefefe; } .box { background-color: white; @include border-radius(5px); padding: 15px 15px; border: 1px solid grey; @include box-shadow(5px 5px 10px 0 #4F4F4F); } #dropdownPicture { padding: 0px; padding-top: 3px; } .clickable { cursor: pointer; } @import 'login'; @import 'notification'; @import 'projectView'; @import 'profileView'; @import 'editProfileView';
Disable copy link when not supported
// // jwShare // -------------------------------- .jw-share.popover { width: 240px; height: 175px; padding: 35px 35px 10px; .jw-share-buttons { margin-bottom: 15px; text-align: center; } }
// // jwShare // -------------------------------- .jw-share.popover { width: 240px; height: 175px; padding: 35px 35px 10px; .jw-share-buttons { margin-bottom: 15px; text-align: center; } } // scss-lint:disable SelectorFormat .platform-ios7, .platform-ios8, .platform-ios9 { .jw-share.popover .jw-share-link { opacity: 0.4; pointer-events: none; .jw-button-label { color: $gray; } } } // scss-lint:enable SelectorFormat
Add media queries to scss
/* Mobile first queries */ /* Larger than mobile */ @media (min-width: 400px) {} /* Larger than phablet */ @media (min-width: 550px) {} /* Larger than tablet */ @media (min-width: 750px) {} /* Larger than desktop */ @media (min-width: 1000px) {} /* Larger than Desktop HD */ @media (min-width: 1200px) {}
Add SCSS for away status
/* General */ .pseudobutton { margin: 0; padding: 0; border: none; background: transparent; .sidebar-nav & { color: #aaa; text-align: left; width: 100%; display: block; } } /* blockUI */ .blockUI { z-index: $z-index-blockUI !important; } /* bootstrap-growl */ .bootstrap-growl { z-index: $z-index-bootstrap-growl !important; } /* svg-spinner loading icon */ .icon-loading { position: absolute; display: none; text-align: right; right: 50px; top: 20px; } .wait-cursor { cursor: wait; } /* Online/offline status indicator */ .bubble { display: inline-block; width: 10px; height: 10px; margin: 1px; border: 1px solid #fff; border-radius: 10px; vertical-align: -.1em; background-color: #000; } .bubble--online { background-color: #449d44; border-color: #398439; } .bubble--offline { background-color: #c9302c; border-color: #ac2925; }
/* General */ .pseudobutton { margin: 0; padding: 0; border: none; background: transparent; .sidebar-nav & { color: #aaa; text-align: left; width: 100%; display: block; } } /* blockUI */ .blockUI { z-index: $z-index-blockUI !important; } /* bootstrap-growl */ .bootstrap-growl { z-index: $z-index-bootstrap-growl !important; } /* svg-spinner loading icon */ .icon-loading { position: absolute; display: none; text-align: right; right: 50px; top: 20px; } .wait-cursor { cursor: wait; } /* Online/offline status indicator */ .bubble { display: inline-block; width: 10px; height: 10px; margin: 1px; border: 1px solid #fff; border-radius: 10px; vertical-align: -.1em; background-color: #000; } .bubble--online { background-color: #449d44; border-color: #398439; } .bubble--offline { background-color: #c9302c; border-color: #ac2925; } .bubble--away { background-color: #eb9316; border-color: #d58512; }
Remove "core files" logic from SASS template and import all of Fabric's partials
// Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. // // Office UI Fabric // -------------------------------------------------- // SCSS template for building a bundle of Fabric and Fabric Components CSS. <% var relativePath = '../../../src/'; // First, we import any core Fabric files that are not explicitly included // so their variables & mixins can be used by other modules. coreFiles.forEach((coreFile) => { if (files.indexOf(coreFile) < 0) { %> @import '<%= relativePath + coreFile %>';<% } }); // Then, include each dependency files.forEach(function(file) { %> @import '<%= relativePath + file %>';<% }); %>
// Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. // // Office UI Fabric // -------------------------------------------------- // SCSS template for building a bundle of Fabric and Fabric Components CSS. @import '../../../src/sass/_Fabric.Common.scss'; <% var relativePath = '../../../src/'; // Then, include each dependency files.forEach(function(file) { %> @import '<%= relativePath + file %>';<% }); %>
Fix table in dark mode
@import "variables"; @media (prefers-color-scheme: dark) { $text-color: $gray-300; a { color: $cyan; } body { background-color: $black; color: $text-color; } code, pre code { color: $text-color; } footer { background-color: $gray-800; } .bg-light { background-color: $gray-900 !important; } .highlight { background-color: $gray-800; } .navbar-light .navbar-brand { color: rgba($text-color, 0.9); } }
@import "variables"; @media (prefers-color-scheme: dark) { $text-color: $gray-300; a { color: $cyan; } body { background-color: $black; color: $text-color; } code, pre code { color: $text-color; } footer { background-color: $gray-800; } .bg-light { background-color: $gray-900 !important; } .highlight { background-color: $gray-800; } .navbar-light .navbar-brand { color: rgba($text-color, 0.9); } .table { color: $text-color; td, th, thead th { border-color: $gray-600; } } }
Add CSS class for busy animation
html { overflow-y: scroll; } body { padding-top: 70px; } .app { border: #eee solid 1px; } .collapser { background-image: url('/img/container-expand.png'); background-position: 0px 2px; background-repeat: no-repeat; cursor: pointer; display: block; padding-left: 28px; &.in { background-image: url('/img/container-collapse.png'); } }
html { overflow-y: scroll; } body { padding-top: 70px; } .app { border: #eee solid 1px; } .busy .glyphicon { animation: spin .8s infinite linear; } @keyframes spin { from { transform: rotate( 0deg ); } to { transform: rotate( 360deg ); } } .collapser { background-image: url('/img/container-expand.png'); background-position: 0px 2px; background-repeat: no-repeat; cursor: pointer; display: block; padding-left: 28px; &.in { background-image: url('/img/container-collapse.png'); } }
Increase breakpoint size to fit our new menu item
$grid-float-breakpoint: 60em; $offset-color: #b1d05f;
$grid-float-breakpoint: 75em; $offset-color: #b1d05f;
Remove text shadow from the button
#hello-there { .avatar { width: 50px; height: 50px; } .awesome { text-align: center; } .hero-unit { margin: 58px 42px; padding: 40px 80px; } h2 { margin-top: 80px; } p, form { margin-left: 30px; } ul.as-selections { width: 100%; li.as-original { input { margin-bottom: 15px; } } } }
#hello-there { .avatar { width: 50px; height: 50px; } .awesome { text-align: center; .btn.creation { text-shadow: none; } } .hero-unit { margin: 58px 42px; padding: 40px 80px; } h2 { margin-top: 80px; } p, form { margin-left: 30px; } ul.as-selections { width: 100%; li.as-original { input { margin-bottom: 15px; } } } }
Use the same color scheme as links for the send button
@import "~inuitcss/settings/settings.core"; @import "~inuitcss/tools/tools.font-size"; @import "~bourbon-neat/core/neat"; @import "src/css/settings/_global.scss"; @import "src/css/settings/_colors.scss"; @import "src/css/settings/_grid.scss"; .base { @include grid-collapse; } .field { margin-bottom: $inuit-global-spacing-unit; font-weight: bold; } .invalid { border: 1px solid $error-color; box-shadow: 0 0 5px rgba($error-color, .4); } .userField { composes: field; @include grid-column; @include grid-media($neat-grid) { @include grid-column(1 of 2); } } .messageField { composes: field; @include grid-column; } .submit { @include grid-column; } .send { $bg-color: $success-color; $text-color: #f1f8e9; background-color: $bg-color; color: $text-color; transition: all $global-transition; &:focus, &:hover { background-color: lighten($bg-color, 10); color: lighten($text-color, 10); } }
@import "~inuitcss/settings/settings.core"; @import "~inuitcss/tools/tools.font-size"; @import "~bourbon-neat/core/neat"; @import "src/css/settings/_global.scss"; @import "src/css/settings/_colors.scss"; @import "src/css/settings/_grid.scss"; .base { @include grid-collapse; } .field { margin-bottom: $inuit-global-spacing-unit; font-weight: bold; } .invalid { border: 1px solid $error-color; box-shadow: 0 0 5px rgba($error-color, .4); } .userField { composes: field; @include grid-column; @include grid-media($neat-grid) { @include grid-column(1 of 2); } } .messageField { composes: field; @include grid-column; } .submit { @include grid-column; } .send { $bg-color: $link-color; $color: #fff; background-color: $bg-color; color: $color; transition: all $global-transition; &:focus, &:hover { background-color: lighten($bg-color, 10); } }
Fix template form select box width
/* * Template Form component */ #templateForm { vertical-align: top; select { width: auto; option {} } }
/* * Template Form component */ #templateForm { vertical-align: top; select { min-width: 8rem; option {} } }
Fix customer satisfaction delta position and size
#vehicle-licensing-channels, #vehicle-licensing-services { .inner { right: 100px; } } .failures { ul.module-actions { margin-top:-36px; margin-bottom: 44px; } .failures-table { th, td { white-space: normal; } th.count, td.count { width: 9em; } th.fraction, td.fraction { width: 9em; } th.change, td.change { width: 10em; } } } #customer-satisfaction { position: relative; .previous-month { position: absolute; bottom: 0; left: 16em; } .change { font-size: 24px; } }
@import 'typography'; #vehicle-licensing-channels, #vehicle-licensing-services { .inner { right: 100px; } } .failures { ul.module-actions { margin-top:-36px; margin-bottom: 44px; } .failures-table { th, td { white-space: normal; } th.count, td.count { width: 9em; } th.fraction, td.fraction { width: 9em; } th.change, td.change { width: 10em; } } } #customer-satisfaction { position: relative; .previous-month { position: absolute; bottom: 0; left: 16em; @media (max-width: 640px) { left: 10em; } } .change { @include core-24($tabular-numbers: true) ; } }
Add hidden class for testing
$font-large: 40px; h1 { font-size: 100px; margin-top: 200px; } .large { font-size: $font-large; } .note { font-size: 28px; position: absolute; bottom: 50px; } .fill-slide { width: 100%; height: 100%; position: absolute; top: 0; left: 0; } .center { text-align: center; }
$font-large: 40px; h1 { font-size: 100px; margin-top: 200px; } .large { font-size: $font-large; } .note { font-size: 28px; position: absolute; bottom: 50px; } .fill-slide { width: 100%; height: 100%; position: absolute; top: 0; left: 0; } .center { text-align: center; } .hidden { visibility: hidden; }
Fix list view items layout
.view { &.view--selected { display: block; } /** * LIST VIEW */ &.list-view { //overflow-y: scroll; //max-height: 90vh; .list-view__container { margin: 0; .list-view__block { border-top: 1px solid $ui-content; padding: $gap 0; } } .list-view-item { padding: 10px 0; display: flex; align-items: center; background: $content-background; margin-bottom: $gap; color: $content-text; cursor: pointer; &__unit-details { flex: 2 1 auto; .list-view-item__unit-name { font-weight: 700; } } &__unit-marker, &__unit-open { text-align: center; line-height: 30px; font-size: 30px; } &__unit-open { color: $ui-content; } &__unit-name { line-height: 1; padding-bottom: 3px; } &:hover { background: $list-view-item-hover; text-decoration: none; } } } &-popup { &__content { } } }
.view { &.view--selected { display: block; } /** * LIST VIEW */ &.list-view { //overflow-y: scroll; //max-height: 90vh; .list-view__container { margin: 0; .list-view__block { border-top: 1px solid $ui-content; padding: $gap 0; } } .list-view-item { padding: 10px 0; display: flex; align-items: center; background: $content-background; margin-bottom: $gap; color: $content-text; cursor: pointer; &__unit-details { flex: 2 1 auto; .list-view-item__unit-name { font-weight: 700; } } &__unit-marker, &__unit-open { width: 50px; text-align: center; line-height: 30px; font-size: 30px; } &__unit-open { color: $ui-content; } &__unit-name { line-height: 1; padding-bottom: 3px; } &:hover { background: $list-view-item-hover; text-decoration: none; } } } &-popup { &__content { } } }
Fix opacity transition for notification,
.alert-float { margin-right: 16px; margin-top: 16px; pointer-events: all; -webkit-box-shadow: 0px 0px 10px 1px rgba(50, 50, 50, 0.60); -moz-box-shadow: 0px 0px 10px 1px rgba(50, 50, 50, 0.60); box-shadow: 0px 0px 10px 1px rgba(50, 50, 50, 0.60); } .alert-container { position: fixed; width: 280px; right: 0px; top: 0px; bottom: 0px; z-index: 9990; pointer-events: none; background-color: rgba(255,255,255, 0); opacity: 0.95; } .fade { opacity: 0; -webkit-transition: opacity 1s; -moz-transition: opacity 1s; -o-transition: opacity 1s; transition: opacity 1s; }
.alert-float { margin-right: 16px; margin-top: 16px; pointer-events: all; -webkit-box-shadow: 0px 0px 10px 1px rgba(50, 50, 50, 0.60); -moz-box-shadow: 0px 0px 10px 1px rgba(50, 50, 50, 0.60); box-shadow: 0px 0px 10px 1px rgba(50, 50, 50, 0.60); opacity: 0; -webkit-transition: opacity 1s; -moz-transition: opacity 1s; -o-transition: opacity 1s; transition: opacity 1s; } .alert-container { position: fixed; width: 280px; right: 0px; top: 0px; bottom: 0px; z-index: 9990; pointer-events: none; background-color: rgba(255,255,255, 0); opacity: 0.95; }
Add new linefeed to end of file
// Copyright (C) 2014 Babs Gösgens. Licensed under MIT; see LICENSE.txt /* ----------------------------------------------------------------------------- Debug helpers ----------------------------------------------------------------------------- */ %debug-rhythm { /* * Mixin debug-rhythm to display the vertical rhythm units */ @include debug-rhythm; } @if $debug-rhythm { .debug-rhythm { @extend %debug-rhythm; } }
// Copyright (C) 2014 Babs Gösgens. Licensed under MIT; see LICENSE.txt /* ----------------------------------------------------------------------------- Debug helpers ----------------------------------------------------------------------------- */ %debug-rhythm { /* * Mixin debug-rhythm to display the vertical rhythm units */ @include debug-rhythm; } @if $debug-rhythm { .debug-rhythm { @extend %debug-rhythm; } }
Change selector to Bourbon all button inputs
%button, button, input[type="submit"] { -webkit-font-smoothing: antialiased; @include appearance(none); background-color: $base-button-color; border-radius: $base-border-radius; border: none; color: white; cursor: pointer; display: inline-block; font-family: $base-font-family; font-size: $base-font-size; font-weight: bold; line-height: 1; padding: 0.75em 1em; text-decoration: none; user-select: none; vertical-align: middle; white-space: nowrap; &:hover, &:focus { background-color: $hover-button-color; color: white; } &:disabled { cursor: not-allowed; opacity: 0.5; } }
#{$all-button-inputs} { -webkit-font-smoothing: antialiased; @include appearance(none); background-color: $base-button-color; border-radius: $base-border-radius; border: none; color: white; cursor: pointer; display: inline-block; font-family: $base-font-family; font-size: $base-font-size; font-weight: bold; line-height: 1; padding: 0.75em 1em; text-decoration: none; user-select: none; vertical-align: middle; white-space: nowrap; &:hover, &:focus { background-color: $hover-button-color; color: white; } &:disabled { cursor: not-allowed; opacity: 0.5; } }
Remove menu active link font weight style
// // Menu // -------------------------------------------------- .menu{ list-style: none; margin: 0 15px; padding: 0; position: relative; &.righted{ float: right; } .menu{ display: none; } > li{ // float: left; > a{ display: block; position: relative; text-decoration: none; color: #666; position: relative; } &.active{ a{ color: #428BCA; background: #F5F5F5; font-weight: 700; &:after{ height: 3px; background-color: #428BCA; } } } } }
// // Menu // -------------------------------------------------- .menu{ list-style: none; margin: 0 15px; padding: 0; position: relative; &.righted{ float: right; } .menu{ display: none; } > li{ // float: left; > a{ display: block; position: relative; text-decoration: none; color: #666; position: relative; } &.active{ a{ color: #428BCA; background: #F5F5F5; // font-weight: 700; &:after{ height: 3px; background-color: #428BCA; } } } } }
Set max width variable to mq-l
// Styleguide layout-container .l-container { @extend %clearfix; max-width: $mq-l; margin: 0 auto; } .l-container--space { @include columnPadding(12); } .l-container--body { margin-top: $bl*7; background: $color-white; } // Layout 1 column full width // // Styleguide layout-1col .l-1col { @include column(12); } // Layout 2 columns // // Styleguide layout-2col .l-2col-side { @include column(12); @include respond-to($mq-m) { @include column(4); } } .l-2col-main { @include column(12); @include respond-to($mq-m) { @include column(8); } } .l-2col-even { @include column(12); @include respond-to($mq-m) { @include column(6); } } // Layout split // // Styleguide layout-split .l-split-start { @include column(6); } .l-split-end { float: right; // @include column(6); }
// Styleguide layout-container .l-container { @extend %clearfix; max-width: $mq-l; margin: 0 auto; } .l-container--space { @include columnPadding(12); } .l-container--body { margin-top: $bl*7; background: $color-white; } // Layout 1 column full width // // Styleguide layout-1col .l-1col { @include column(12); } // Layout 2 columns // // Styleguide layout-2col .l-2col-side { @include column(12); @include respond-to($mq-m) { @include column(4); } } .l-2col-main { @include column(12); @include respond-to($mq-m) { @include column(8); } } .l-2col-even { @include column(12); @include respond-to($mq-m) { @include column(6); } } // Layout split // // Styleguide layout-split .l-split-start { @include column(6); } .l-split-end { float: right; }
Replace grey-4 with suggested alternative
.app-c-email-link { display: block; padding: govuk-spacing(4); background: govuk-colour('grey-4'); .govuk-heading-m { margin-bottom: govuk-spacing(2); } .app-c-email-link__title { font-weight: bold; } .app-c-email-link__icon { position: relative; margin-right: 5px; top: 5px; } .app-c-email-link__link { @include govuk-font(19); &:visited .app-c-email-link__icon { fill: $govuk-link-visited-colour; } &:hover .app-c-email-link__icon { fill: $govuk-link-hover-colour; } &:active .app-c-email-link__icon { fill: $govuk-link-active-colour; } &:focus .app-c-email-link__icon { fill: $govuk-focus-text-colour; } } }
.app-c-email-link { display: block; padding: govuk-spacing(4); background: govuk-colour('light-grey'); .govuk-heading-m { margin-bottom: govuk-spacing(2); } .app-c-email-link__title { font-weight: bold; } .app-c-email-link__icon { position: relative; margin-right: 5px; top: 5px; } .app-c-email-link__link { @include govuk-font(19); &:visited .app-c-email-link__icon { fill: $govuk-link-visited-colour; } &:hover .app-c-email-link__icon { fill: $govuk-link-hover-colour; } &:active .app-c-email-link__icon { fill: $govuk-link-active-colour; } &:focus .app-c-email-link__icon { fill: $govuk-focus-text-colour; } } }
Hide overflow of repo header.
.repo-header { border-radius: 3px; margin-right: 24px; padding: 160px 20px 20px; position: relative; width: 300px; &::after { background: hsla(0, 0%, 100%, .05); content: ""; height: 300px; left: -150px; position: absolute; top: -150px; transform: rotate(45deg); width: 300px; z-index: 2; } a { color: #000; text-decoration: none; &:hover { color: #0996f8; } } h2, p { position: relative; z-index: 3; } h2 { font-size: 20px; font-weight: 700; margin: 0 0 10px; } p { line-height: 1.5; margin: 0; } }
.repo-header { border-radius: 3px; margin-right: 24px; overflow: hidden; padding: 160px 20px 20px; position: relative; width: 300px; &::after { background: hsla(0, 0%, 100%, .05); content: ""; height: 300px; left: -150px; position: absolute; top: -150px; transform: rotate(45deg); width: 300px; z-index: 2; } a { color: #000; text-decoration: none; &:hover { color: #0996f8; } } h2, p { position: relative; z-index: 3; } h2 { font-size: 20px; font-weight: 700; margin: 0 0 10px; } p { line-height: 1.5; margin: 0; } }
Add new CSS specifications for flatpickr input as using altInput
@import 'admin/globals/variables'; @import 'admin/globals/mixins'; @import 'admin/plugins/font-awesome'; // scss-lint:disable QualifyingElement .date-range-filter { .range-divider { padding: 0; } input.datepicker { width: 96px !important; } } input.datetimepicker { min-width: 12.9em; } .container input[readonly].flatpickr-input { background-color: $white; cursor: pointer; } img.ui-datepicker-trigger { margin-left: -1.75em; position: absolute; margin-top: 0.5em; } // scss-lint:enable QualifyingElement
@import 'admin/globals/variables'; @import 'admin/globals/mixins'; @import 'admin/plugins/font-awesome'; // scss-lint:disable QualifyingElement .date-range-filter { .range-divider { padding: 0; } input.datepicker { width: 96px !important; } } input.datetimepicker { min-width: 12.9em; } .container input[readonly].flatpickr-input, .container input[readonly].datepicker, .container input[readonly].datetimepicker { background-color: $white; cursor: pointer; } img.ui-datepicker-trigger { margin-left: -1.75em; position: absolute; margin-top: 0.5em; } // scss-lint:enable QualifyingElement
Remove arrows on level input.
@import "~bulma"; #app { background-color: #f5f5f5; position: absolute; top: 0px; left: 0px; width: 100%; min-height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; } #content { margin-bottom: 3rem; } .is-divider { margin: 1rem 0; } .vertical-align { display: flex; align-items: center; } .footer { background-color: transparent; position: absolute; bottom: 0; padding-bottom: 1.5rem; } .double { line-height: 2; } ul.no-margin-ul { margin-top: 0; margin-left: 1em; } ol.no-margin-ol { margin-top: 0; margin-left: 1em; } .orbs { line-height: 1; } .no-margin-bottom:not(:last-child) { margin-bottom: 0; }
@import "~bulma"; #app { background-color: #f5f5f5; position: absolute; top: 0px; left: 0px; width: 100%; min-height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; } input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; } #content { margin-bottom: 3rem; } .is-divider { margin: 1rem 0; } .vertical-align { display: flex; align-items: center; } .footer { background-color: transparent; position: absolute; bottom: 0; padding-bottom: 1.5rem; } .double { line-height: 2; } ul.no-margin-ul { margin-top: 0; margin-left: 1em; } ol.no-margin-ol { margin-top: 0; margin-left: 1em; } .orbs { line-height: 1; } .no-margin-bottom:not(:last-child) { margin-bottom: 0; }
Fix course index column width.
/* Let's try using SASS instead for our overrides. */ .wrapper-footer { font-size: 0.6em; ul.nav-footerlinks { li { font-size: 0.4em; } } } /* Extra hack for module titles. */ span.module-title-span { display: table-cell; padding-right: 5px; font-size: 85%; vertical-align: middle; text-align: left; line-height: 1.2; } .module-title-icon { display: table-cell; padding: 0 5px; } div.module-title-block { display: table; margin: 0 auto; }
/* Let's try using SASS instead for our overrides. */ .wrapper-footer { font-size: 0.6em; ul.nav-footerlinks { li { font-size: 0.4em; } } } /* Extra hack to fix course UI column width */ div.course-index { width: 250px; } /* Extra hack for module titles. */ span.module-title-span { display: table-cell; padding-right: 5px; font-size: 85%; vertical-align: middle; text-align: left; line-height: 1.2; } .module-title-icon { display: table-cell; padding: 0 5px; } div.module-title-block { display: table; margin: 0 auto; }
Add header font size and padding to custom layout
// Here you can easily change your sites's layout. // To give it a try, uncomment some of the lines below, make changes, rebuild your blog, and see how it works. //$max-width: 1350px; //$indented-lists: true; // Padding used for layout margins //$pad-min: 18px; //$pad-narrow: 25px; //$pad-medium: 35px; //$pad-wide: 55px; // Sidebar widths used in media queries //$sidebar-width-medium: 240px; //$sidebar-pad-medium: 15px; //$sidebar-pad-wide: 20px; //$sidebar-width-wide: 300px;
// Here you can easily change your sites's layout. // To give it a try, uncomment some of the lines below, make changes, rebuild your blog, and see how it works. //$header-font-size: 1em !default; //$header-padding-top: 1.5em !default; //$header-padding-bottom: 1.5em !default; //$max-width: 1350px; //$indented-lists: true; // Padding used for layout margins //$pad-min: 18px; //$pad-narrow: 25px; //$pad-medium: 35px; //$pad-wide: 55px; // Sidebar widths used in media queries //$sidebar-width-medium: 240px; //$sidebar-pad-medium: 15px; //$sidebar-pad-wide: 20px; //$sidebar-width-wide: 300px;
Use normal margins for img tags
/*------------------------------------*\ #IMAGES \*------------------------------------*/ img { margin-top: $spacing-unit; margin-bottom: $large-spacing-unit; }
/*------------------------------------*\ #IMAGES \*------------------------------------*/ img { // It doesn't seem that inuitcss has margins for images. We need to add it // manually. margin-bottom: $spacing-unit; }
Add a soft edge to the rhs of the table to indicate that there might be more
// Place all the styles related to the scrapers controller here. // They will automatically be included in application.css. // You can use Sass (SCSS) here: http://sass-lang.com/ .table-responsive.scraper-data { overflow-x: scroll; } span.stderr { color: red; }
// Place all the styles related to the scrapers controller here. // They will automatically be included in application.css. // You can use Sass (SCSS) here: http://sass-lang.com/ .table-responsive.scraper-data { overflow-x: scroll; -webkit-mask: -webkit-linear-gradient( left, rgba(255,255,255,1) 95%, rgba(255,255,255,0) ); } span.stderr { color: red; }
Work around reddit's insane link-rewriting
.usertext-body h2 a[href="/akrzv3"] { &{ display: block; height: 42px; width: 200px; margin: 40px auto 20px; font-size: 0; background-image: url("../img/BTN-hub.png"); background-position: top center; background-size: 100%; } &:hover{ background-position: bottom center; } }
.usertext-body h2 { a[href="/akrzv3"], a[data-href-url="/akrzv3"] { &{ display: block; height: 42px; width: 200px; margin: 40px auto 20px; font-size: 0; background-image: url("../img/BTN-hub.png"); background-position: top center; background-size: 100%; } &:hover{ background-position: bottom center; } } }
Add margins around the label form input
.labels { .title { font-size: 14px; } .dialects, .non-dialects { display: inline-block; vertical-align: top; width: 47%; label { display: block; font-size: 18px; margin: 0px 0px 10px; &.child { margin-left: 20px; } } input { padding: 0px; width: inherit; } } }
.labels { margin-top: 5px; .title { font-size: 14px; margin-bottom: 5px; } .dialects, .non-dialects { display: inline-block; vertical-align: top; width: 47%; label { display: block; font-size: 18px; margin: 0px 0px 10px; &.child { margin-left: 20px; } } input { padding: 0px; width: inherit; } } }
Add inline sass imports for normalize, flexboxgrid
// Scaffolding // ------------------------- html { position: relative; min-height: 100%; } body { margin-bottom: 44px; } footer { position: absolute; height: 44px; padding: 10px 30px; bottom: 0; } label { display: block; line-height: 1.8; } ul, ol { list-style: none; } .list-inline { padding-left: 0; margin-left: -5px; list-style: none; } .list-inline>li { display: inline-block; padding-right: 5px; padding-left: 5px; } .container { padding-right: 2rem; padding-left: 2rem; } .text-success { color: #29b35b; } .text-danger { color: #b61b17; }
@import 'normalize.css'; @import 'flexboxgrid.css'; // Scaffolding // ------------------------- html { position: relative; min-height: 100%; } body { margin-bottom: 44px; } footer { position: absolute; height: 44px; padding: 10px 30px; bottom: 0; } label { display: block; line-height: 1.8; } ul, ol { list-style: none; } .list-inline { padding-left: 0; margin-left: -5px; list-style: none; } .list-inline>li { display: inline-block; padding-right: 5px; padding-left: 5px; } .container { padding-right: 2rem; padding-left: 2rem; } .text-success { color: #29b35b; } .text-danger { color: #b61b17; } .gravatar { display: block; margin: 0 0 1rem; } .avatar { padding: 0 1rem; color: #fff; img { margin-right: 5px; border-radius: 50%; width: 30px; height: 30px; } }
Add styles for search form in navbar
.wide-but-centered { width: 90%; margin: auto; text-align: center; } .navbar .btn { padding: 10px 20px 10px; display: block; } #current_user { .user-label { color: white; margin-top: 5px; margin-right: 10px; font-weight: 200; font-size: 14px; .avatar { position: relative; top: 4px; display: inline-block; text-align: center; width: 32px; height: 32px; background-color: white; border-radius: 50%; img { margin-top: -8px; height: 24px; } } } form { margin: 0; } .navbar-btn { font-size: 14px; padding: 5px; margin-left: 5px; position: relative; top: 5px; } }
.wide-but-centered { width: 90%; margin: auto; text-align: center; } .navbar { form.navbar-search { margin-top: 12px; .search-query { padding: 2px 10px; } .btn { margin-top: 0px; } } } #current_user { .btn { padding: 10px 20px 10px; display: block; } .user-label { color: white; margin-top: 5px; margin-right: 10px; font-weight: 200; font-size: 14px; .avatar { position: relative; top: 4px; display: inline-block; text-align: center; width: 32px; height: 32px; background-color: white; border-radius: 50%; img { margin-top: -8px; height: 24px; } } } form { margin: 0; } .navbar-btn { font-size: 14px; padding: 5px; margin-left: 5px; position: relative; top: 5px; } }
Fix offset coordinate calculations for pending chip
// Core containers body { min-width: $page-min-width-compact; margin: 0; padding: 0; // Ensure that the absolutely-positioned nav links do not get pushed out of // the bounds of the <body> due to the <h1> margin-top padding-top: 1px; font-family: $sans-serif; text-align: center; overflow-y: scroll; } // Ensure that the <main> element renders correctly on browsers that don't fully // support it main { display: block; } #game { display: flex; justify-content: space-between; align-items: flex-start; max-width: $page-max-width-hybrid; margin: 0 auto; margin-top: $page-spacing-top; padding: 0 $page-spacing-x; font-size: 0; @include if-hybrid-layout() { display: inline-block; margin-top: 0; padding: 0; text-align: center; } } .game-column:nth-of-type(2) { position: relative; }
// Core containers body { min-width: $page-min-width-compact; margin: 0; padding: 0; // Ensure that the absolutely-positioned nav links do not get pushed out of // the bounds of the <body> due to the <h1> margin-top padding-top: 1px; font-family: $sans-serif; text-align: center; overflow-y: scroll; } // Ensure that the <main> element renders correctly on browsers that don't fully // support it main { display: block; } #game { display: flex; justify-content: space-between; align-items: flex-start; max-width: $page-max-width-hybrid; margin: 0 auto; margin-top: $page-spacing-top; padding: 0 $page-spacing-x; font-size: 0; @include if-hybrid-layout() { display: inline-block; margin-top: 0; padding: 0; text-align: center; } }
Update form styles to improve accessibility GDS elements has been updated to increase darkness and width of form element borders
@import 'govuk/-essentials'; .form-control { box-sizing: border-box; border: 1px solid $grey-2; padding: em(8) em(7) em(5); border-radius: 0; width: 50%; min-width: 5em; // IE7 *padding-top: em(8); font-size: 1em; &:focus { outline: 3px solid $yellow; } } textarea.form-control { min-height: 100px; } select.form-control { background: $white; width: auto; height: 2.15em; }
@import 'govuk/-essentials'; .form-control { box-sizing: border-box; border: 2px solid $grey-1; padding: em(8) em(7) em(5); border-radius: 0; width: 50%; min-width: 5em; // IE7 *padding-top: em(8); font-size: 1em; &:focus { outline: 3px solid $yellow; } } textarea.form-control { min-height: 100px; } select.form-control { background: $white; width: auto; height: 2.15em; }
Change header color scheme to be Monokai-like
#lab-layout { > header { background-color: #1e1e1e; box-shadow: 0px 2px 2px 0 rgba(0,0,0,0.5); color: white; z-index: 2; h1.title { font-size: 20px; margin: 15px; sup { color: grey; } } } > nav { background-color: #cbd0d0; box-shadow: 0px 2px 5px 0 rgba(0,0,0,0.5); z-index: 1; padding-left: 15px; font-size: 12px; .lib-picker { display: inline-block; width: 80px; height: 20px; margin: 5px; font-size: 12px; } a { color: black; } .delimiter { color: #a4a4a4; } } }
#lab-layout { > header { background-color: #272822; box-shadow: 0px 2px 2px 0 rgba(0,0,0,0.5); color: #A6E22E; z-index: 2; h1.title { font-size: 20px; margin: 15px; sup { color: grey; } } } > nav { background-color: #cbd0d0; box-shadow: 0px 2px 5px 0 rgba(0,0,0,0.5); z-index: 1; padding-left: 15px; font-size: 12px; .lib-picker { display: inline-block; width: 80px; height: 20px; margin: 5px; font-size: 12px; } a { color: black; &:hover { color: #F92672; } } .delimiter { color: #a4a4a4; } } }
Make my recent underline change for links more specific to posts
// ========================================================================== // Links // ========================================================================== a { @extend %font-open-sans-semibold; color: $color-link--color; text-decoration: none; transition: color 0.2s; backface-visibility: hidden; &:hover { color: $color-link--color__hover; } &:focus { color: $color-link--color__focus; outline: none; } .entry-content & { text-decoration: underline; &:hover, &:focus { text-decoration: none; } } } h1, h2, h3, h4, h5, h6 { a { color: inherit; &:hover { color: $color-headings--color__hover; } &:focus { color: $color-headings--color__focus; } } }
// ========================================================================== // Links // ========================================================================== a { @extend %font-open-sans-semibold; color: $color-link--color; text-decoration: none; transition: color 0.2s; backface-visibility: hidden; &:hover { color: $color-link--color__hover; } &:focus { color: $color-link--color__focus; outline: none; } .page-post .entry-content & { text-decoration: underline; &:hover, &:focus { text-decoration: none; } } } h1, h2, h3, h4, h5, h6 { a { color: inherit; &:hover { color: $color-headings--color__hover; } &:focus { color: $color-headings--color__focus; } } }
Test results font-size to 14px
.result { .composite-score-header, .composite-score { text-align: center; } .scores-button { margin-top: 30px; } .panel-title { white-space: nowrap; text-overflow: ellipsis; overflow: hidden; } .hidden-score { display: none; } .score-panel { margin-top: 20px; } .test-score-name { font-weight: bold; } .test-score, .test-score-name { font-size: 13px; } }
.result { .composite-score-header, .composite-score { text-align: center; } .scores-button { margin-top: 30px; } .panel-title { white-space: nowrap; text-overflow: ellipsis; overflow: hidden; } .hidden-score { display: none; } .score-panel { margin-top: 20px; } .test-score-name { font-weight: bold; } .test-score, .test-score-name { font-size: 14px; } }
Make bot instance dividers go to the sides of the container
// Place all the styles related to the BotInstances controller here. // They will automatically be included in application.css. // You can use Sass (SCSS) here: http://sass-lang.com/ a.view-instance { display: block; color: black; text-decoration: none; } a.view-instance:hover { display: block; color: black; text-decoration: none; } .bot-instance-dash-module { border: 1px solid gray; border-radius: 3px; padding: 5px !important; background: white; transition: all 0.2s ease; } .bot-instance-dash-module:hover { border: 1px solid gray; border-radius: 3px; padding: 5px !important; background: #ededed; transition: all 0.2s ease; } .bot-instance-reorder-controls { position: absolute; margin-left: -20px; float:left; } .bot-instance-ul > .bot-instance-li { list-style: none; padding: 5px; border-bottom: 1px solid lightgray; margin-left: -40px; } .bot-instance-ul > .bot-instance-li:last-child { border-bottom: none; }
// Place all the styles related to the BotInstances controller here. // They will automatically be included in application.css. // You can use Sass (SCSS) here: http://sass-lang.com/ a.view-instance { display: block; color: black; text-decoration: none; } a.view-instance:hover { display: block; color: black; text-decoration: none; } .bot-instance-dash-module { border: 1px solid gray; border-radius: 3px; padding: 5px !important; background: white; transition: all 0.2s ease; } .bot-instance-dash-module:hover { border: 1px solid gray; border-radius: 3px; padding: 5px !important; background: #ededed; transition: all 0.2s ease; } .bot-instance-reorder-controls { position: absolute; margin-left: -20px; float:left; } .bot-instance-ul { padding: 0; margin: { left: -16px; right: -16px; } .bot-instance-li { list-style: none; padding: 5px 16px; border-bottom: 1px solid lightgray; } }
Break word in modal body
// Modals // -------------------------------------------------- .qor-datepicker .modal-content .modal-body { padding: 0; }
// Modals // -------------------------------------------------- .qor-datepicker .modal-content .modal-body { padding: 0; } .modal-body { word-break: break-word; }
Remove extra margin on event avatars
.event { .person { display: inline-block; } .avatar { display: inline-block; margin-right: $padding-small-horizontal; } }
.event { .person { display: inline-block; } }
Boost list-group text size on resume layout
@import "bootstrap-sprockets"; @import "bootswatch/yeti/variables"; @import "bootstrap"; @import "bootswatch/yeti/bootswatch"; @import "font-awesome-sprockets"; @import "font-awesome"; .container { max-width: 860px; } .page-header { h1, h2, h3 { line-height: 0.9; } h2 { font-size: 26px; } h3 { font-size: 18px; } } .section-header { padding: 15px 0; border-bottom: 1px solid #efefef; }
@import "bootstrap-sprockets"; @import "bootswatch/yeti/variables"; @import "bootstrap"; @import "bootswatch/yeti/bootswatch"; @import "font-awesome-sprockets"; @import "font-awesome"; .container { max-width: 860px; } .page-header { h1, h2, h3 { line-height: 0.9; } h2 { font-size: 26px; } h3 { font-size: 18px; } } .panel-project, .panel-education-experience, .panel-work-experience { & > .panel-heading { background-color: $panel-default-heading-bg; color: $panel-default-text; } & > .list-group { font-size: 14px; line-height: 1.8; } } .section-header { padding: 15px 0; border-bottom: 1px solid #efefef; }
Clean up wrapper code a bit.
// Wrapper for main content. This lets flexbox stretch the footer to the bottom // of the viewport on supported browsers. // // Styleguide X.X .wrapper { display: block; overflow: hidden; -webkit-box-flex: 1; -webkit-flex: 1; flex: 1; } body { // flexbox stuff to keep footer at bottom display: -webkit-box; display: -webkit-flex; display: flex; -webkit-box-orient: vertical; -webkit-flex-direction: column; flex-direction: column; min-height: 100vh; } // Override triggered by Modernizr test to fix Flexbox issue in IE10 .flexbox-ie10 body { display: block; min-height: 100%; } // Basic wrapper for text content. Centers on grid and adds proper margin // for floating header. // // Styleguide X.X .page { @include media($tablet) { @include span-columns(12); @include shift(2); } margin-top: 6rem; margin-bottom: 3rem; }
// Wrapper for main content. This lets flexbox stretch the footer to the bottom // of the viewport on supported browsers. // // Styleguide X.X .wrapper { display: block; // Fixes display issue in IE11 where <main> does not default to block. -webkit-box-flex: 1; -webkit-flex: 1; flex: 1; @include outer-container; } body { // flexbox stuff to keep footer at bottom display: -webkit-box; display: -webkit-flex; display: flex; -webkit-box-orient: vertical; -webkit-flex-direction: column; flex-direction: column; min-height: 100vh; } // Override triggered by Modernizr test to fix Flexbox issue in IE10 .flexbox-ie10 body { display: block; min-height: 100%; } // Basic wrapper for text content. Centers on grid and adds proper margin // for floating header. // // Styleguide X.X .page { margin-top: 6rem; margin-bottom: 3rem; @include media($tablet) { @include span-columns(12); @include shift(2); } }
Fix a UI issue with oauth page and the theme on edx.org
@import 'neat/neat'; // lib - Neat .oauth2 { @include outer-container(); .authorization-confirmation { @include span-columns(6); @include shift(3); line-height: 1.5em; padding: 50px 0; } }
@import 'neat/neat'; // lib - Neat .oauth2 { @include outer-container(); .authorization-confirmation { @include span-columns(6); @include shift(3); float: unset !important; // fixes issues with oauth page and edx-theme footer line-height: 1.5em; padding: 50px 0; } }
Fix sticky tendency to collapse in width when stuck
// Foundation for Sites by ZURB // foundation.zurb.com // Licensed under MIT Open Source @mixin foundation-sticky { .sticky-container { position: relative; } .sticky { position: relative; z-index: 0; transform: translate3d(0, 0, 0); } .sticky.is-stuck { position: fixed; z-index: 5; &.is-at-top { top: 0; } &.is-at-bottom { bottom: 0; } } .sticky.is-anchored { position: relative; right: auto; left: auto; &.is-at-bottom { bottom: 0; } } }
// Foundation for Sites by ZURB // foundation.zurb.com // Licensed under MIT Open Source @mixin foundation-sticky { .sticky-container { position: relative; } .sticky { position: relative; z-index: 0; transform: translate3d(0, 0, 0); } .sticky.is-stuck { position: fixed; z-index: 5; width: 100%; &.is-at-top { top: 0; } &.is-at-bottom { bottom: 0; } } .sticky.is-anchored { position: relative; right: auto; left: auto; &.is-at-bottom { bottom: 0; } } }
Fix spacing of action list
.action-list { margin: 0; padding: 0; li { overflow: hidden; line-height: 28px; border-bottom: 1px solid #ccc; padding: 11px $norm; color: #333; } a { font-weight: bold; text-decoration: underline; color: $custom-secondary; } .action-list--title { margin-top: $norm; border: 1px solid #999; background: #fff; font-weight: bold; box-shadow: 3px 3px 3px #ccc; } .action-list--title--quiet { background: #999; color: #fff; } .action-list--item--empty { font-style: italic; } .action-list--button-collection { float: right; margin-top: $norm; form { display: inline-block; padding-left: $xxsmall; } .button { margin: 0; } } @include respond(desktop) { .action-list--button-collection { margin-top: -2px; } } }
.action-list { margin: 0; padding: $norm 0 0 0; li { overflow: hidden; line-height: 28px; border-bottom: 1px solid #ccc; padding: 11px $norm; color: #333; } a { font-weight: bold; text-decoration: underline; color: $custom-secondary; } .action-list--title { margin-top: $norm; border: 1px solid #999; background: #fff; font-weight: bold; box-shadow: 3px 3px 3px #ccc; } .action-list--title--quiet { background: #999; color: #fff; } .action-list--item--empty { font-style: italic; } .action-list--button-collection { float: right; margin-top: $norm; form { display: inline-block; padding-left: $xxsmall; } .button { margin: 0; } a.button { color: #fff; text-decoration: none; line-height: 1; } } @include respond(desktop) { .action-list--button-collection { margin-top: -2px; } } }
Add specific selector to override anchors with cta's and forced cursor pointer.
// Color is going to change. .cta { color: color(black); text-decoration: none; text-transform: uppercase; font-weight: font-weight(semibold); line-height: initial; .icon { width: .75em; height: .75em; font-size: 1em; } &:hover { color: lighten(black, 15%); } &:active, &:focus { color: lighten(black, 30%); } &:visited { color: color(black); } }
// Color is going to change. .cta, a.cta { color: color(black); text-decoration: none; text-transform: uppercase; font-weight: font-weight(semibold); line-height: initial; cursor: pointer; .icon { width: .75em; height: .75em; font-size: 1em; } &:hover { color: lighten(black, 15%); } &:active, &:focus { color: lighten(black, 30%); } &:visited { color: color(black); } }
Update styles on school page
.school { @extend %main-content; } .school__text { @extend %main-text; } .school__title { margin-top: 0px; } .school__subtitle { margin: 0; font-size: 1.9rem; } .school__slider { text-align: center; .thumb { display: none; } } .school__label { position: relative; top: 65px; border: 1px solid $white; padding: 6px; font-size: 1.5rem; } .school__textarea { position: relative; display: inline-block; } .label { position: absolute; font-size: 1.5rem; } .textarea { @extend %text-input; width: 300px; height: 200px; border: 6px dotted $white; margin-top: 40px; font-size: 2rem; } .label--bad { left: 60px; } .label--good { right: 70px; } .school__range { @extend %range-input; } .school__input { @extend %text-input; }
.school { @extend %main-content; } .school__text { @extend %main-text; margin-bottom: 0; } .school__title { margin-top: 0px; } .school__subtitle { margin: 0; font-size: 1.9rem; } .school__slider { text-align: center; .thumb { display: none; } } .school__label { position: relative; top: 70px; border: 1px solid $white; padding: 6px; font-size: 1.5rem; } .school__textarea { position: relative; display: inline-block; } .label { position: absolute; font-size: 1.5rem; } .textarea { @extend %text-input; width: 300px; height: 150px; border: 3px dotted $white; margin-top: 40px; font-size: 2rem; } .label--bad { left: 70px; } .label--good { right: 80px; } .school__range { @extend %range-input; } .school__input { @extend %text-input; }
Fix title and buttons z index
@import '~styles/layout.scss'; @import '~styles/settings.scss'; .container { position: absolute; width: 100%; top: $navbar-height; height: $header-height; background-color: $light-gray; opacity: 0; pointer-events: none; transition: opacity 0.2s ease-in; &.isOpen { opacity: 1; pointer-events: all; } @media #{$tablet-landscape} { position: relative; height: 100%; opacity: 1; pointer-events: all; top: 0; background-color: transparent; } } .map { height: 100%; } .legend { position: absolute; left: 15px; bottom: 15px; @media #{$tablet-landscape} { left: 0; } } .buttons { position: absolute; right: 10px; top: $gutter-padding; z-index: 1; } .title { position: absolute; left: 0; top: $gutter-padding; opacity: 1; width: 100%; font-weight: $font-weight; font-size: $font-size-large; color: $theme-color; @media #{$tablet-landscape} { display: block; } }
@import '~styles/layout.scss'; @import '~styles/settings.scss'; .container { position: absolute; width: 100%; top: $navbar-height; height: $header-height; background-color: $light-gray; opacity: 0; pointer-events: none; transition: opacity 0.2s ease-in; &.isOpen { opacity: 1; pointer-events: all; } @media #{$tablet-landscape} { position: relative; height: 100%; opacity: 1; pointer-events: all; top: 0; background-color: transparent; } } .map { height: 100%; } .legend { position: absolute; left: 15px; bottom: 15px; @media #{$tablet-landscape} { left: 0; } } .buttons { position: absolute; right: 10px; top: $gutter-padding; z-index: 2; } .title { position: absolute; left: 0; top: $gutter-padding; opacity: 1; width: 100%; font-weight: $font-weight; font-size: $font-size-large; color: $theme-color; z-index: 2; @media #{$tablet-landscape} { display: block; } }
Change colors of lightgray and red variables
$color-primary: #e74c3c; $color-secondary: #e67e22; $color-black: #444; $color-blue: #3599db; $color-darkgray: #646464; $color-gray: #838383; $color-lightgray: #cccccc; $color-white: #fff;
$color-red: #ff4553; $color-secondary: #e67e22; $color-black: #444; $color-blue: #3599db; $color-darkgray: #646464; $color-gray: #838383; $color-lightgray: #eee; $color-white: #fff;
Tweak styling of docs autocomplete search menu
// Search // ------ // The component search box and autocomplete menu used in the sidebar. .docs-search { @include hide-for-only(small); padding: 1rem; border-bottom: 1px solid #e7e7e7; overflow: visible; } .autocomplete { input { padding: 0.5em; margin: 0; font-size: 0.8rem; } > ul { margin-left: 0; border: 1px solid #ccc; border-top: 0; box-shadow: 0 4px 5px rgba(#000, 0.1); li { font-size: 0.8rem; cursor: pointer; } .active { background: $primary-color; color: white; } .highlight { background-color: transparent; font-weight: bold; } } }
// Search // ------ // The component search box and autocomplete menu used in the sidebar. .docs-search { @include hide-for-only(small); padding: 1rem; border-bottom: 1px solid #e7e7e7; overflow: visible; } .autocomplete { input { padding: 0.5em; margin: 0; font-size: 0.8rem; } > ul { margin-left: 0; border: 1px solid #ccc; border-top: 0; box-shadow: 0 4px 5px rgba(#000, 0.1); li { font-size: 0.8rem; cursor: pointer; } .active { background: $primary-color; color: white; } .highlight, .active .highlight { background-color: transparent; font-weight: bold; } } }
Fix icons for autosave on small devices
#save-status { @include bold-27(); @include inline-block(); color: $turquoise; padding-right: 20px; padding-left: 40px; text-align: left; width: 130px; &[data-status="saved"] { background: top left url("images/icons/savetick.png") no-repeat; @include device-pixel-ratio() { background: top left url("images/icons/savetick_2x.png") no-repeat; background-size: 35px 29px; } } &[data-status="saving"] { background: top left url("images/icons/savespin.png") no-repeat; @include device-pixel-ratio() { background: top left url("images/icons/savespin_2x.png") no-repeat; background-size: 24px 26px; } } &[data-status="notsaved"] { background: top left url("images/icons/icon-notification-yellow-24.png") no-repeat; color: $yellow; } }
#save-status { @include bold-27(); @include inline-block(); color: $turquoise; padding-right: 20px; padding-left: 40px; text-align: left; width: 130px; min-height: 29px; &[data-status="saved"] { background: top left url("images/icons/savetick.png") no-repeat; background-size: 35px 29px; @include media(mobile) { background-size: 26.5px 22px; } @include device-pixel-ratio() { background: top left url("images/icons/savetick_2x.png") no-repeat; } } &[data-status="saving"] { background: top left url("images/icons/savespin.png") no-repeat; background-size: 24px 26px; @include media(mobile) { background-size: 20px 22px; } @include device-pixel-ratio() { background: top left url("images/icons/savespin_2x.png") no-repeat; } } &[data-status="notsaved"] { background: top left url("images/icons/icon-notification-yellow-24.png") no-repeat; color: $yellow; } }
Fix overlapping related links on header
.site-header { background-color: $header-background-color; position: fixed; width: 100%; } .site-header--active-scroll { border-bottom: 1px solid darken($light-gray, 10%); } .site-header__container { @extend %container; padding: 16px 20px; text-align: right; } .site-header__link { text-decoration: none; } .site-header__brand { color: $header-brand-color; font-size: 1.4em; font-weight: 800; }
.site-header { background-color: $header-background-color; position: fixed; width: 100%; z-index: 4; } .site-header--active-scroll { border-bottom: 1px solid darken($light-gray, 10%); } .site-header__container { @extend %container; padding: 16px 20px; text-align: right; } .site-header__link { text-decoration: none; } .site-header__brand { color: $header-brand-color; font-size: 1.4em; font-weight: 800; }
Remove left margin for first child
.SharpFilterCheck { color: $ui-primary-color; line-height: 1.25; }
.SharpFilterCheck { color: $ui-primary-color; line-height: 1.25; :first-child > & { margin-left: 0!important; } }
Make the text color of the site not so dark
// background body { background-image: url(image_path('rockywall.png')); } // font body { font-family: "Open Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif; } h1, h2, h3, h4, h5 { font-family: "Source Sans Pro", "Helvetica Neue", "Helvetica", "Arial", sans-serif; } // links a { color: #009FDA; text-decoration: none; } a:hover { color: #00BAFF; } // fix height for the item view .ui.items > .item { min-height: 393px; }
// background body { background-image: url(image_path('rockywall.png')); } // Make text not so dark. Copied from the official Semantic Ui site. body { color: #555555; } // font body { font-family: "Open Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif; } h1, h2, h3, h4, h5 { font-family: "Source Sans Pro", "Helvetica Neue", "Helvetica", "Arial", sans-serif; } // links a { color: #009FDA; text-decoration: none; } a:hover { color: #00BAFF; } // fix height for the item view .ui.items > .item { min-height: 393px; }
Add default table backgound back on dark theme
table { table-layout: auto; thead > tr { &:first-child > th:first-child { border-top-left-radius: 0.3em; } &:first-child > th:last-child { border-top-right-radius: 0.3em; } & > th { background-color: rgba(0, 0, 0, 0.5); font-weight: bold; } } tbody > tr { &:last-child > td:first-child { border-bottom-left-radius: 0.3em; } &:last-child > td:last-child { border-bottom-right-radius: 0.3em; } } tr { &:nth-child(2n+1) > td { background-color: rgba(25, 25, 25, 0.8); } td { border-bottom: none; } } td, th { padding: 1em; } } body.light { thead > tr > th { background-color: rgba(25, 25, 25, 0.3); } tr { & > td { background-color: rgba(25, 25, 25, 0.05); } &:nth-child(2n+1) > td { background-color: rgba(25, 25, 25, 0.1); } } }
table { table-layout: auto; thead > tr { &:first-child > th:first-child { border-top-left-radius: 0.3em; } &:first-child > th:last-child { border-top-right-radius: 0.3em; } & > th { background-color: rgba(0, 0, 0, 0.5); font-weight: bold; } } tbody > tr { &:last-child > td:first-child { border-bottom-left-radius: 0.3em; } &:last-child > td:last-child { border-bottom-right-radius: 0.3em; } } tr { &:nth-child(2n+1) > td { background-color: rgba(25, 25, 25, 0.8); } td { background-color: rgba(0,0, 0, 0.4); border-bottom: none; } } td, th { padding: 1em; } } body.light { thead > tr > th { background-color: rgba(25, 25, 25, 0.3); } tr { & > td { background-color: rgba(25, 25, 25, 0.05); } &:nth-child(2n+1) > td { background-color: rgba(25, 25, 25, 0.1); } } }
Fix issue with hire us form overflowing
// HireUsGrid // // Custom grid for the Hire Us page // // markup: // <div class="HireUsGrid"> // <div class="HireUsGrid-greetings"> // <div>Cell 1</div> // </div> // <div class="HireUsGrid-form"> // <div>Cell 2</div> // </div> // // Styleguide 5.11 @import 'blue/theme_vars'; .HireUsGrid { display: flex; flex-direction: column; padding-left: $Theme-spacing-small; padding-right: $Theme-spacing-small; } .HireUsGrid-greetings { flex: 1; } .HireUsGrid-form { flex: 2; margin-top: $Theme-spacing-default; } @include media('<=desktop') { .HireUsGrid { align-items: stretch; } .HireUsGrid-greetings, .HireUsGrid-form { max-width: $Theme-grid-singleColumn-maxWidth; } } @include media('>tablet') { .HireUsGrid-form { margin-top: $Theme-spacing-large; } } @include media('>desktop') { .HireUsGrid { flex-direction: row; } .HireUsGrid-form { margin-top: 0; margin-left: $Theme-spacing-large; } }
// HireUsGrid // // Custom grid for the Hire Us page // // markup: // <div class="HireUsGrid"> // <div class="HireUsGrid-greetings"> // <div>Cell 1</div> // </div> // <div class="HireUsGrid-form"> // <div>Cell 2</div> // </div> // // Styleguide 5.11 @import 'blue/theme_vars'; .HireUsGrid { display: flex; flex-direction: column; padding-left: $Theme-spacing-small; padding-right: $Theme-spacing-small; } .HireUsGrid-form { flex: 2; margin-top: $Theme-spacing-default; } @include media('<=desktop') { .HireUsGrid { align-items: stretch; } .HireUsGrid-greetings, .HireUsGrid-form { max-width: $Theme-grid-singleColumn-maxWidth; } } @include media('>tablet') { .HireUsGrid-form { margin-top: $Theme-spacing-large; } } @include media('>desktop') { .HireUsGrid { flex-direction: row; } .HireUsGrid-form { margin-top: 0; margin-left: $Theme-spacing-large; } .HireUsGrid-greetings { flex: 1; } }
Drop shadow behind avatar image for when its not loaded yet
.pat-avatar { &#user-avatar { position: absolute; top: 3px; right: 25px; width: 1.35em; // override default avatar width height: 1.35em; // override default avatar height } }
.pat-avatar { box-shadow: inset 0 0.1em 0.5em rgba(0,0,0,0.2); &#user-avatar { position: absolute; top: 3px; right: 25px; width: 1.35em; // override default avatar width height: 1.35em; // override default avatar height } }
Fix display of LSP images in dark mode
@media (prefers-color-scheme: dark) { body { background: #2c2a28 !important; color: $gray-light !important; blockquote { color: $gray-light !important; } div.highlight { border: 1px $gray-light solid !important; } .language-toggle a { color: $gray-light !important; } .info { background: #333c44 !important; } .warning { background: #484131 !important; } .error { background: #592e41 !important; } } }
@media (prefers-color-scheme: dark) { body { background: #2c2a28 !important; color: $gray-light !important; blockquote { color: $gray-light !important; } div.highlight { border: 1px $gray-light solid !important; } .language-toggle a { color: $gray-light !important; } .info { background: #333c44 !important; } .warning { background: #484131 !important; } .error { background: #592e41 !important; } } img[src$=".svg"]{ filter: invert(100%); } }
Fix error when only using private functions
/* * Replace $old occurrences by $new in $string respecting $case-sensitive * --- * @access private * --- * @since 1.2.0 * --- * @param {string} $string - string * @param {string} $old - old substring to replace by $new * @param {string} $new - new substring to replace $old * @param {bool} $case-sensitive - case-sensitivity * --- * @return {string} */ @function _ss-str-replace($string, $old, $new: '', $case-sensitive: true) { $index: if(not $case-sensitive, str-index(to-lower-case($string), to-lower-case($old)), str-index($string, $old)); @if $index and $new != $old { $result: if($index != 1, quote(str-slice($string, 1, $index - 1)), ''); @for $i from $index through str-length($string) { @if $i < $index or $i >= $index + str-length($old) { $result: $result + str-slice($string, $i, $i); } } @return quote(str-replace(str-insert($result, $new, $index), $old, $new, $case-sensitive)); } @return $string; }
/* * Replace $old occurrences by $new in $string respecting $case-sensitive * --- * @access private * --- * @since 1.2.0 * --- * @param {string} $string - string * @param {string} $old - old substring to replace by $new * @param {string} $new - new substring to replace $old * @param {bool} $case-sensitive - case-sensitivity * --- * @return {string} */ @function _ss-str-replace($string, $old, $new: '', $case-sensitive: true) { $index: if(not $case-sensitive, str-index(to-lower-case($string), to-lower-case($old)), str-index($string, $old)); @if $index and $new != $old { $result: if($index != 1, quote(str-slice($string, 1, $index - 1)), ''); @for $i from $index through str-length($string) { @if $i < $index or $i >= $index + str-length($old) { $result: $result + str-slice($string, $i, $i); } } @return quote(_ss-str-replace(str-insert($result, $new, $index), $old, $new, $case-sensitive)); } @return $string; }
Add hover to import/export links.
.deployment-bar { &__import { @extend %deployment-bar__links; left: -240px; &:after { content: ''; border-right: 1px solid $mid-grey; position: relative; right: -10px; } } &__export { @extend %deployment-bar__links; left: -170px; } &__file { @extend %deployment-bar__links; visibility: hidden; } &__install-button { @extend %floating-panel; left: -105px; position: absolute; padding: 10px; color: $cool-grey; } } %deployment-bar__links { position: absolute; top: 11px; }
.deployment-bar { &__import { @extend %deployment-bar__links; left: -240px; &:after { content: ''; border-right: 1px solid $mid-grey; position: relative; right: -10px; } } &__export { @extend %deployment-bar__links; left: -170px; } &__file { @extend %deployment-bar__links; visibility: hidden; } &__install-button { @extend %floating-panel; left: -105px; position: absolute; padding: 10px; color: $cool-grey; } } %deployment-bar__links { position: absolute; top: 11px; &:hover { text-decoration: underline; } }
Fix heading in alert boxes
.alert { @mixin _style-alert($border-colour, $bg-colour) { background: $bg-colour; border-left: 4px solid $border-colour; } padding: 20px; margin: 25px 0; h3 { margin-top: 0; } .icon { float: left; margin: 3px 20px 0 0; } .alert-message { overflow: hidden; .alert-header, p { margin: 10px 0 0; } .alert-header { @include core-24; font-weight: bold; } p:first-child { margin: 0; } } &-info { @include _style-alert($grey-2, $grey-4); } &-error { @include _style-alert($mellow-red, lighten($mellow-red, 40)); } }
.alert { @mixin _style-alert($border-colour, $bg-colour) { background: $bg-colour; border-left: 4px solid $border-colour; } padding: 20px; margin: 25px 0; h3 { margin-top: 0; } .icon { float: left; margin: 3px 20px 0 0; } .alert-message { overflow: hidden; .alert-header, p { margin: 10px 0 0; } .alert-header { @include core-24; font-weight: bold; margin: 0; } p:first-child { margin: 0; } } &-info { @include _style-alert($grey-2, $grey-4); } &-error { @include _style-alert($mellow-red, lighten($mellow-red, 40)); } }
Fix nav alignment with logo text
.mainNavMenu { @include S-flex-row; align-items: stretch; } .mainNavMenu__item { margin-right: 3em; margin-top: 29px; color: $darkestGray; text-decoration: none; } .mainNavMenu__item:hover { color: $darkerPurple; } .mainNavMenu__item.is-currentItem { color: $purple; font-weight: 500; border-bottom: 2px solid $purple; }
.mainNavMenu { @include S-flex-row; align-items: stretch; } .mainNavMenu__item { margin-right: 3em; margin-top: 26px; color: $darkestGray; text-decoration: none; } .mainNavMenu__item:hover { color: $darkerPurple; } .mainNavMenu__item.is-currentItem { color: $purple; font-weight: 500; border-bottom: 2px solid $purple; }
Increase size of labels and library names
@import "components/labels"; @import "globals/mixins"; // Labels for the different states of library book availability .library-unavailable { @include label($fail-red); } .library-unknown { @include label($unknown-grey); } .library-stack { @include label($stack-yellow); } .library-reference { @include label($reference-blue); } .library-available { @include label($success-green); } .library-shelfmark { margin-left: 12px; } // Styling for detail DLs .library-holdings { .library-location { font-variant: normal; border-top: 1px solid #eee; padding: 5px; } .library-location.highlighted { background-color: #eee; @include box-shadow(0 0 5px #bbb inset); } } #library-search-form { @include free-text(); }
@import "components/labels"; @import "globals/mixins"; // Labels for the different states of library book availability .library-unavailable { @include label($fail-red, ms(0)); } .library-unknown { @include label($unknown-grey, ms(0)); } .library-stack { @include label($stack-yellow, ms(0)); } .library-reference { @include label($reference-blue, ms(0)); } .library-available { @include label($success-green, ms(0)); } .library-shelfmark { margin-left: 12px; } .library-name { font-size: 1.3em; } // Styling for detail DLs .library-holdings { .library-location { font-variant: normal; border-top: 1px solid #eee; padding: 5px; } .library-location.highlighted { background-color: #eee; @include box-shadow(0 0 5px #bbb inset); } } #library-search-form { @include free-text(); }
Set minimum grid size to be a bit smaller
@import "lanes/vendor/grid"; .grid-component { min-height: 350px; &.flex-row-expand { @include flex-grow(1); @include flexbox(); @include flex-direction(column); .wrapper { @include flexbox(); @include flex-direction(column); @include flex-grow(1); } .fixedDataTableLayout_main { height: inherit !important; // override fixed data table height @include flexbox(); @include flex-direction(column); @include flex-grow(1); .fixedDataTableLayout_rowsContainer{ height: inherit !important; @include flex-grow(1); } } } position: relative; .toolbar { margin-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; } @import "./editors"; &.flex-row-expand { } }
@import "lanes/vendor/grid"; .grid-component { min-height: 250px; &.flex-row-expand { @include flex-grow(1); @include flexbox(); @include flex-direction(column); .wrapper { @include flexbox(); @include flex-direction(column); @include flex-grow(1); } .fixedDataTableLayout_main { height: inherit !important; // override fixed data table height @include flexbox(); @include flex-direction(column); @include flex-grow(1); .fixedDataTableLayout_rowsContainer{ height: inherit !important; @include flex-grow(1); } } } position: relative; .toolbar { margin-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; } @import "./editors"; &.flex-row-expand { } }
Fix syntax issues in sass
@import "compass/typography/text/replacement"; #brand { @include hide-text; background: url('/img/e_small.png') center no-repeat; background-size: 32px 32px; min-width: 32px; padding-left: 50px; &:hover { background: url('/img/e_red_small.png') center no-repeat; background-size: 32px 32px; } } a.wordmark { font-family: $headings-font-family; &:hover { color: $exercism-red !important; } }
@import "compass/typography/text/replacement"; @import "../themes/exercism"; #brand { @include hide-text; background: url('/img/e_small.png') center no-repeat; background-size: 32px 32px; min-width: 32px; padding-left: 50px; &:hover { background: url('/img/e_red_small.png') center no-repeat; background-size: 32px 32px; } } a.wordmark { font-family: $headings-font-family; &:hover { color: $exercism-red !important; } }
Make question links blue like the objective listing
.question-list { @extend %list-item-container; } .question-item { @extend %list-item; position: relative; } .question-meta { @extend %list-item-meta; } .question-author { @extend %list-item-author; } .question-date { @extend %list-item-date; } .question-text { @extend %list-item-text; padding-right: 2em; @include mq(768) { padding-right: 7em; } } .question-text-inner { @include word_wrap; color: $green1; text-decoration: none; &:visited, & { color: $green1; } } .question-actions { @extend .list-item-actions; } .question-reply { @extend %list-item-reply-button; } .promote-question-button, .demote-question-button { @extend .normalise-button; position: absolute; top: 16px; right: 10px; &:hover { color: $green2; } } .promote-text, .demote-text { display: none; @include mq(768) { display: inline; margin-right: 0.6em; } } .promoted-questions-container .question-text-inner { font-size: 130%; }
.question-list { @extend %list-item-container; } .question-item { @extend %list-item; position: relative; } .question-meta { @extend %list-item-meta; } .question-author { @extend %list-item-author; } .question-date { @extend %list-item-date; } .question-text { @extend %list-item-text; padding-right: 2em; @include mq(768) { padding-right: 7em; } } .question-text-inner { @include word_wrap; text-decoration: none; } .question-actions { @extend .list-item-actions; } .question-reply { @extend %list-item-reply-button; } .promote-question-button, .demote-question-button { @extend .normalise-button; position: absolute; top: 16px; right: 10px; &:hover { color: $green2; } } .promote-text, .demote-text { display: none; @include mq(768) { display: inline; margin-right: 0.6em; } } .promoted-questions-container .question-text-inner { font-size: 130%; }
Add scss style for Store
// Place all the styles related to the Store controller here. // They will automatically be included in application.css. // You can use Sass (SCSS) here: http://sass-lang.com/
// Place all the styles related to the Store controller here. // They will automatically be included in application.css. // You can use Sass (SCSS) here: http://sass-lang.com/ .store { h1 { margin: 0; padding-bottom: 0.5em; font: 150% sans-serif; color: #226; border-bottom: 3px dotted #77d; } /*Entry in store catalog */ .entry { overflow: auto; margin-top: 1em; border-bottom: 1px dotted #77d; min-height: 100px; img { width: 80px; margin-right: 5px; margin-bottom: 5px; position: absolute; } h3 { font-size: 120%; font-family: sans-serif; margin-left: 100px; margin-top: 0; margin-bottom: 2px; color: #227; } p, div.price_line { margin-left: 100px; margin-top: 0.5em; margin-bottom: 0.8em; } .price { color: #44a; font-weight: bold; margin-right: 3em; } } }
Fix an issue where the map's search modal's dropdown would be cut
// Specific styles for overwriting the map builder styles // modal should not take up 100% of the width .modal-wrapper { .modal { transform: translate(-50%, -50%); top: 50%; left: 50%; margin: 0 20px; width: 300px; max-height: 400px; overflow: hidden; } } .app-header { visibility: hidden; }
// Specific styles for overwriting the map builder styles // modal should not take up 100% of the width .modal-wrapper { .modal { transform: translate(-50%, -50%); top: 50%; left: 50%; margin: 0 20px; width: 300px; max-height: 400px; // The overflow breaks the dropdown of the select // of the search modal // overflow: hidden; } } .app-header { visibility: hidden; }
Add yet another centering thechnic
// // Cassetto center. // @mixin vertical-center { display: flex; align-items: center; } @mixin vertical-center { position: relative; top: 50%; transform: translateY(-50%); } @mixin vertical-center($child) { display: table; #{$child} { display: table-cell; vertical-align: middle; } } @mixin center { display: flex; align-items: center; justify-content: center; } @mixin center($child) { display: flex; #{$child} { margin: auto; } }
// // Cassetto center. // @mixin vertical-center { display: flex; align-items: center; } @mixin vertical-center { position: relative; top: 50%; transform: translateY(-50%); } @mixin vertical-center($child) { display: table; #{$child} { display: table-cell; vertical-align: middle; } } @mixin center { display: flex; align-items: center; justify-content: center; } @mixin center($child) { display: flex; #{$child} { margin: auto; } } @mixin center() { display: grid; grid: auto/50%; place-content: center; }
Implement tablet version of footer
.footer { background: $color-footer-bg; padding-top: 80px; padding-bottom: 40px; color: $color-footer-base; h4, li { line-height: 40px; } h4 { font-size: 12px; font-weight: bold; color: $color-footer-headline; text-transform: uppercase; } p { font-size: 12px; } a { color: $color-footer-link; } .footer__logo { margin-bottom: 46px; img { margin-left: auto; margin-right: auto; } } .footer__columns { display: flex; flex-wrap: wrap; margin-left: -5px; margin-right: -5px; } .footer__column, .footer__newsletter, .footer__copyright { text-align: center; } .footer__column { flex-basis: 50%; margin-bottom: 60px; padding-left: 5px; padding-right: 5px; } .footer__copyright { margin-top: 80px; } }
.footer { background: $color-footer-bg; padding-top: 80px; padding-bottom: 40px; color: $color-footer-base; h4, li { line-height: 40px; } h4 { font-size: 12px; font-weight: bold; color: $color-footer-headline; text-transform: uppercase; } p { font-size: 12px; } a { color: $color-footer-link; } .footer__logo { margin-bottom: 46px; img { margin-left: auto; margin-right: auto; } } .footer__columns { display: flex; flex-wrap: wrap; margin-left: -5px; margin-right: -5px; } .footer__column, .footer__newsletter, .footer__copyright { text-align: center; } .footer__column { flex-basis: 50%; margin-bottom: 60px; padding-left: 5px; padding-right: 5px; } .footer__copyright { margin-top: 80px; } @include medium { .footer__column { flex-basis: 25%; } } }
Use primary color for background
@import 'node_modules/solar-css/lib/index'; @import 'node_modules/solar-stellarterm/lib/index'; @import 'node_modules/solar-css/styles/index'; @import 'node_modules/solar-stellarterm/styles/index'; html, body { background: #F3F5FC; } @import 'island'; @import 'lightenZeros'; @import 'offerTables'; @import 'offerTable'; @import 'offerMakers'; @import 'offerMaker';
@import 'node_modules/solar-css/lib/index'; @import 'node_modules/solar-stellarterm/lib/index'; @import 'node_modules/solar-css/styles/index'; @import 'node_modules/solar-stellarterm/styles/index'; html, body { background: $s-color-primary9; } @import 'island'; @import 'lightenZeros'; @import 'offerTables'; @import 'offerTable'; @import 'offerMakers'; @import 'offerMaker';
Make head selector configurable as param and var, rewrite and expand comments to better explain how the hack works.
// Style override // === // // Allows overriding extreme specificity without using `!important` and hides // the complexity of doing so. Important: // // - Only use this on sites where lots of existing CSS is included. // - Does not override !important or inline styles; those must be dealt with // separately. // // @param $degree [Number] The “force” of the override; effectively equivalent // to the number of id selectors you need to override. // // // Usage // --- // // @include style-override(4) { // color: red; // overrides equivalent of `#id #id #id #id { color: blue; }` // } // // // Markup // --- // // **IMPORTANT** The <head> must have an id of `!`, so <head id="!">. @mixin style-override($degree: 1) { // We apply id="!" to the <head> tag and repeatedly select on it to boost // the specificity of our selectors. The `!` must be escaped with a `\`. $id: '#\!'; $id-chain: ''; @for $i from 0 through $degree { $id-chain: $id-chain + $id; } #{$id-chain} ~ body { @content; } }
// Style override // === // // Allows overriding existing styles with extreme specificity while keeping // source code clean and readable. Only use this for overriding 3rd-party CSS // that cannot be changed. Does not override !important or inline styles; those // must be dealt with separately. // Configurable variables // --- // The default selector used to build the override. Must select the <head> tag. // The default value selects <head id="!"> which is short (since it’s prepended // to every wrapped selector) and obscure (to help guarantee uniqueness). Since // it’s a special character in CSS, the `!` must be escaped. $style-override-head-selector: '#\!' !default; // Style override // --- // // @param $degree [Number]: The “force” of the override. Effectively the number // of id-level selectors you need to override. // @param $head-selector [String]: An id selector that matches the <head> tag. @mixin style-override($degree: 1, $head-selector: $style-override-head-selector) { $selector-chain: ''; // Build an id selector by chaining the same id onto itself once more than // the specified degree. So if degree: 4, we get #id#id#id#id#id which will // override it. @for $i from 1 through $degree + 1 { $selector-chain: $selector-chain + $head-selector; } // Since <body> is a following sibling of <head>, we confer nested selectors // anywhere in the <body> with the extra specificity. #{$selector-chain} ~ body { @content; } }
Correct top/bottom padding on search results
// Search results containers and items .search-loading-icon-container { display: flex; justify-content: center; align-items: center; position: absolute; top: 0; left: 0; width: 100%; height: 100%; } .search-results-list { margin: 0; padding: 0; list-style-type: none; line-height: 1.25; } .search-result { position: relative; padding: $app-base-padding $app-base-padding; border-bottom: solid $app-border-width $search-result-border-color; &.selected { background-color: $search-result-selected-color; color: #fff; } } .search-result-title { font-size: 16px; } .search-result-subtitle { opacity: 0.5; font-size: 12px; } .search-result-actions { position: absolute; top: 5px; right: 10px; } .search-result-action { font-size: 12px; color: rgba(#fff, 0.75); text-decoration: none; }
// Search results containers and items .search-loading-icon-container { display: flex; justify-content: center; align-items: center; position: absolute; top: 0; left: 0; width: 100%; height: 100%; } .search-results-list { margin: 0; padding: 0; list-style-type: none; line-height: 1.25; } .search-result { position: relative; padding: ($app-base-padding / 2) $app-base-padding; border-bottom: solid $app-border-width $search-result-border-color; &.selected { background-color: $search-result-selected-color; color: #fff; } } .search-result-title { font-size: 16px; } .search-result-subtitle { opacity: 0.5; font-size: 12px; } .search-result-actions { position: absolute; top: 5px; right: 10px; } .search-result-action { font-size: 12px; color: rgba(#fff, 0.75); text-decoration: none; }
Allow for three digit unit counts.
.unit-list-item { @extend %stagger-fade-in; &:focus, &:active, &:hover { background-color: $hover-background; cursor: pointer; label { cursor: pointer; } } input[type=checkbox] { margin-right: 15px; cursor: pointer; } label { padding: 11px 20px 11px 20px; } &--nav:hover { label { text-decoration: underline; } } &--select-all { border-top: 1px solid $mid-grey; &:first-child { border-top: none; } } &__count { @include notification(transparent); float: right; margin-top: -3px; color: $cool-grey; position: relative; top: 4px; } &__label { width: 185px; overflow: hidden; display: inline-block; white-space: nowrap; text-overflow: ellipsis; position: relative; top: 4px; } }
.unit-list-item { @extend %stagger-fade-in; &:focus, &:active, &:hover { background-color: $hover-background; cursor: pointer; label { cursor: pointer; } } input[type=checkbox] { margin-right: 15px; cursor: pointer; } label { padding: 11px 20px 11px 20px; } &--nav:hover { label { text-decoration: underline; } } &--select-all { border-top: 1px solid $mid-grey; &:first-child { border-top: none; } } &__count { @include notification(transparent); float: right; margin-top: -3px; color: $cool-grey; position: relative; top: 4px; } &__label { width: 165px; overflow: hidden; display: inline-block; white-space: nowrap; text-overflow: ellipsis; position: relative; top: 4px; } }
Fix advanced search button on large screens
.advanced-search-form { @include grid-row-nest; position: relative; @include breakpoint(large) { .filter { @include grid-column; width: 25%; } .date-filters { float: left; width: 25%; .filter { width: 100%; } .custom-date-filters { clear: both; } } .submit { width: 25%; } } > [aria-expanded] { @include xy-gutters; color: $link; cursor: pointer; margin-top: $line-height; margin-bottom: $line-height; @include breakpoint(medium) { float: right; margin-bottom: 0; margin-top: $line-height / 4; position: absolute; right: 0; } &:focus { outline: $outline-focus; } } .general-search, .filter, .submit { @include grid-column-gutter; } select { height: $line-height * 2; } }
.advanced-search-form { @include grid-row-nest; display: flex; flex-direction: column; @include breakpoint(large) { .filter { @include grid-column; width: 25%; } .date-filters { float: left; width: 25%; .filter { width: 100%; } .custom-date-filters { clear: both; } } .submit { width: 25%; } } > [aria-expanded] { @include xy-gutters; color: $link; cursor: pointer; margin-top: $line-height; margin-bottom: $line-height; max-width: max-content; @include breakpoint(medium) { align-self: flex-end; margin-bottom: 0; margin-top: $line-height / 4; } &:focus { outline: $outline-focus; } } .general-search, .filter, .submit { @include grid-column-gutter; } select { height: $line-height * 2; } }
Fix p styling for box-footer
// @import "node_modules/bootstrap-sass/assets/stylesheets/bootstrap"; .sidebar-menu > li > a > .ra { display: inline-block; width: 20px; } .btn-app > .ra { font-size: 20px; display: block; } .btn-app.btn-block { margin: 0; } .box-body > p:last-child { margin-bottom: 0; }
// @import "node_modules/bootstrap-sass/assets/stylesheets/bootstrap"; .sidebar-menu > li > a > .ra { display: inline-block; width: 20px; } .btn-app > .ra { font-size: 20px; display: block; } .btn-app.btn-block { margin: 0; } .box-body > p:last-child, .box-footer > p:last-child { margin-bottom: 0; }
Disable width: 100% in table elements It was breaking bootstrap datepicker styles in the app
table { border-collapse: collapse; font-feature-settings: "kern", "liga", "tnum"; margin: $small-spacing 0; table-layout: fixed; width: 100%; } th { border-bottom: 1px solid shade($base-border-color, 25%); font-weight: 600; padding: $small-spacing 0; text-align: left; } td { border-bottom: $base-border; padding: $small-spacing 0; } tr, td, th { vertical-align: middle; }
table { border-collapse: collapse; font-feature-settings: "kern", "liga", "tnum"; margin: $small-spacing 0; table-layout: fixed; } th { border-bottom: 1px solid shade($base-border-color, 25%); font-weight: 600; padding: $small-spacing 0; text-align: left; } td { border-bottom: $base-border; padding: $small-spacing 0; } tr, td, th { vertical-align: middle; }
Add a bit of margin on the bottom of tribe-events-meta-list
// Styles written by __gulp_init__author_name @ __gulp_init__author_company /* ------------------------------------------------------------------------ *\ * Tribe Events Meta List (https://theeventscalendar.com/) \* ------------------------------------------------------------------------ */ .tribe-events-meta-list { & { list-style: none; margin: 0; padding: 0; } } .tribe-events-meta-list-item { & { margin-bottom: remify(8, 16); padding-left: remify(28, 16); position: relative; } } .tribe-events-meta-list-icon { & { color: lighten($foreground, 15); left: 0; position: absolute; top: remify(3, 16); } } .tribe-events-meta-list-small { & { color: lighten($foreground, 15); display: block; font-size: remify(12, 16); } }
// Styles written by __gulp_init__author_name @ __gulp_init__author_company /* ------------------------------------------------------------------------ *\ * Tribe Events Meta List (https://theeventscalendar.com/) \* ------------------------------------------------------------------------ */ .tribe-events-meta-list { & { list-style: none; margin: remify(0 0 24, 16); padding: 0; } } .tribe-events-meta-list-item { & { margin-bottom: remify(8, 16); padding-left: remify(28, 16); position: relative; } } .tribe-events-meta-list-icon { & { color: lighten($foreground, 15); left: 0; position: absolute; top: remify(3, 16); } } .tribe-events-meta-list-small { & { color: lighten($foreground, 15); display: block; font-size: remify(12, 16); } }
Split .bg-full from .full-size as they are not the same
.full-size, .bg-full { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-position: center center; background-repeat: no-repeat; -moz-background-size: cover; -o-background-size: cover; -webkit-background-size: cover; background-size: cover; -ms-behavior: url("/background-size.min.htc"); } .bg-parent { position: relative; }
.full-size, .bg-full { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } .bg-full { background-position: center center; background-repeat: no-repeat; -moz-background-size: cover; -o-background-size: cover; -webkit-background-size: cover; background-size: cover; -ms-behavior: url("/background-size.min.htc"); } .bg-parent { position: relative; }
Correct style issue on category show.
body.categories { &.show { input.string { max-width: 250px; width:99% } } }
body.categories { &.show { #new_category, #new_album { &input.string { max-width: 250px; width:99% } } } }
Apply styles for new user form to user edit form
// Place all the styles related to the users controller here. // They will automatically be included in application.css. // You can use Sass (SCSS) here: http://sass-lang.com/ table { width: 100%; tr > th { min-width: 15%; } } #new_user { .field, .actions { margin-top: 1em; margin-bottom: 1em; } }
// Place all the styles related to the users controller here. // They will automatically be included in application.css. // You can use Sass (SCSS) here: http://sass-lang.com/ table { width: 100%; tr > th { min-width: 15%; } } #new_user, .edit_user { .field, .actions { margin-top: 1em; margin-bottom: 1em; } }
Update the "Working day" styling.
.working-pattern { span { border: 1px solid $grey-3; padding-top: 0.3em; padding-left: 0.3em; padding-right:0.3em; text-align: center; width: 15%; display: inline-block; font-weight: bold; color: $grey-3; &.working-day{ background-color: $grey-2; color: $white; } } }
.working-pattern { span { &:first-child { border-left: 1px solid $black; } border-top: 1px solid $black; border-bottom: 1px solid $black; border-right: 1px solid $black; padding-top: 0.3em; padding-left: 0.3em; padding-right:0.3em; text-align: center; width: 15%; display: inline-block; color: $black; &.working-day{ background-color: $grey-2; } } }
Remove position absolute property to fixed issue in the popover
@import "../styles/variables/colors"; @import "../styles/variables/spacing"; @import "../styles/variables/theme-variables"; @import "../styles/mixins/transitions"; /** * Base thee for popover handles hidden or not */ .popover { * {@include ease-out(); } position: absolute; min-width: 10px; opacity: 0; display: none; &.popoverVisible { opacity: 1; z-index: 99; display: block; } }
@import "../styles/variables/colors"; @import "../styles/variables/spacing"; @import "../styles/variables/theme-variables"; @import "../styles/mixins/transitions"; /** * Base thee for popover handles hidden or not */ .popover { * {@include ease-out(); } min-width: 10px; opacity: 0; display: none; &.popoverVisible { opacity: 1; z-index: 99; display: block; } }
Fix type for small screens
body { align-items: center; background: linear-gradient(90deg, rgb(255,12,131), rgb(120,46,199)); color: $base-font-color; cursor: wait; display: flex; height: 100vh; justify-content: center; } .teaser { color: white; text-shadow: 0 1px 4px rgba(black, 0.25); }
html { font-size: 13px; @include media($medium-screen-up) { font-size: 16px; } } body { align-items: center; background: linear-gradient(90deg, rgb(255,12,131), rgb(120,46,199)); color: $base-font-color; cursor: wait; display: flex; height: 100vh; justify-content: center; } .teaser { @include padding(null $small-spacing); color: white; text-align: center; text-shadow: 0 1px 4px rgba(black, 0.25); }
Enable color-scheme for auto mode
// Color modes @import "../support/mixins/color-modes.scss"; @import "@primer/primitives/dist/scss/colors/_light.scss"; @import "@primer/primitives/dist/scss/colors/_dark.scss"; // Outputs the CSS variables // Use :root (html element) to define a default @include color-mode(light) { @include primer-colors-light; } // @include color-mode(dark) { // @include primer-colors-dark; // } // Color mode boundaries // Enables nesting of different color modes [data-color-mode] { color: var(--color-text-primary); background-color: var(--color-bg-canvas); } // color-scheme // Enables color modes for native elements [data-color-mode="light"] { color-scheme: light; } [data-color-mode="dark"] { color-scheme: dark; }
// Color modes @import "../support/mixins/color-modes.scss"; @import "@primer/primitives/dist/scss/colors/_light.scss"; @import "@primer/primitives/dist/scss/colors/_dark.scss"; // Outputs the CSS variables // Use :root (html element) to define a default @include color-mode(light) { @include primer-colors-light; } // @include color-mode(dark) { // @include primer-colors-dark; // } // Color mode boundaries // Enables nesting of different color modes [data-color-mode] { color: var(--color-text-primary); background-color: var(--color-bg-canvas); } // color-scheme // Enables color modes for native elements @include color-mode(light) { color-scheme: light; } @include color-mode(dark) { color-scheme: dark; }