Instruction
stringlengths
14
778
input_code
stringlengths
0
4.24k
output_code
stringlengths
1
5.44k
Remove default margin styles from body and headers
* { box-sizing: border-box; } .container { margin: 0 auto; padding: 0 5%; max-width: 800px; } .emoji-link { text-decoration: none; }
* { box-sizing: border-box; } body { margin: 0; } h1, h2, h3, h4, h5, h6 { margin-top: 0; } .container { margin: 0 auto; padding: 2em 5%; max-width: 800px; } .emoji-link { text-decoration: none; }
Add active style for btns
.btn { display: inline-flex; min-width: 44px; padding: 0 10px; font-size: 13px; align-items: center; justify-content: center; line-height: $fieldHeight; vertical-align: middle; background: $lightBlue; border: 0; border-radius: ($fieldHeight / 2); color: black; cursor: pointer; transition: $transition; text-decoration: none; &:focus { outline: none; box-shadow: $focus; } &:hover { background: $blue; } &:disabled { background: #dcdcdc; color: #666; cursor: not-allowed; } .icon.space { margin-right: 5px; } .icon { // font-size: 16px; line-height: $fieldHeight; } } .btnCircle { padding: 0; min-width: 30px; }
.btn { display: inline-flex; min-width: 44px; padding: 0 10px; font-size: 13px; align-items: center; justify-content: center; line-height: $fieldHeight; vertical-align: middle; background: $lightBlue; border: 0; border-radius: ($fieldHeight / 2); color: black; cursor: pointer; transition: $transition; text-decoration: none; &:focus { outline: none; box-shadow: $focus; } &:hover { background: $blue; } &.active { box-shadow: inset 0 0 0 3px $blue; } &.active:focus { box-shadow: $focus, inset 0 0 0 3px $blue; } &:disabled { background: #dcdcdc; color: #666; cursor: not-allowed; } .icon.space { margin-right: 5px; } .icon { // font-size: 16px; line-height: $fieldHeight; } } .btnCircle { padding: 0; min-width: 30px; }
Make caption a bit bigger so that it can hold 3 lines of text.
@import '../styles/mixins'; @import '../styles/variables'; .asset-card { border: 2px solid $border-color; border-radius: 2px; overflow: hidden; > .thumbnail { border-bottom: 2px solid $border-color; display: block; height: 315px; max-height: 315px; max-width: 311px; overflow: hidden; width: 311px; } > .thumbnail img { max-height: 313px; max-width: inherit; } > .meta { margin: 13px 13px 0 13px; max-height: 45px; position: relative; } > .meta .social-network-icon { position: absolute; right: 0; top: 0; } > .caption { font-size: 0.8125em; margin: 15px 13px 13px 13px; max-height: 54px; overflow: hidden; word-wrap: break-word; } > .caption a { text-decoration: none; color: #0084B4; } > .caption a:hover { text-decoration: underline; } }
@import '../styles/mixins'; @import '../styles/variables'; .asset-card { border: 2px solid $border-color; border-radius: 2px; overflow: hidden; > .thumbnail { border-bottom: 2px solid $border-color; display: block; height: 315px; max-height: 315px; max-width: 311px; overflow: hidden; width: 311px; } > .thumbnail img { max-height: 313px; max-width: inherit; } > .meta { margin: 13px 13px 0 13px; max-height: 45px; position: relative; } > .meta .social-network-icon { position: absolute; right: 0; top: 0; } > .caption { font-size: 0.8125em; margin: 13px 13px 13px 13px; max-height: 56px; overflow: hidden; word-wrap: break-word; } > .caption a { text-decoration: none; color: #0084B4; } > .caption a:hover { text-decoration: underline; } }
Tweak the appearance of the header
aside { background: url('/theme/specktre_#{colorToHexString($primary-color)}.png') $primary-color; background-size: auto 100%; @media print { background: none; border-bottom: 2px solid $primary-color; } #aside_inner { @include central_element(); &, a, a:visited { color: white; @media print { color: $primary-color; } } a:hover { text-decoration: none; } #brand { margin-bottom: -5px; a { text-decoration: none; } } #aside_links ul { padding-top: 0px; padding-bottom: 0px; margin-bottom: 10px; } } }
aside { background: url('/theme/specktre_#{colorToHexString($primary-color)}.png') $primary-color; background-size: auto 100%; @media print { background: none; border-bottom: 2px solid $primary-color; } #aside_inner { @include central_element(); &, a, a:visited { color: white; @media print { color: $primary-color; } } a:hover { text-decoration: none; } #brand { margin-bottom: -5px; font-weight: normal; font-size: 1.7em; a { text-decoration: none; } } #aside_links ul { padding-top: 0px; padding-bottom: 0px; margin-bottom: 10px; } } }
Fix homepage margin before map
// ----------------------------------------------------------------------------- // This file contains styles that are specific to the home page. // -----------------------------------------------------------------------------
// ----------------------------------------------------------------------------- // This file contains styles that are specific to the home page. // ----------------------------------------------------------------------------- .home main { padding-top: 0; }
Remove duplicate min-height on .master-container
body { font-family: 'Lato', 'Helvetica', 'Trebuchet MS', 'Arial', sans-serif; } .master-container { max-width: rem-calc(1080px); margin: auto; padding: 0 20px; min-height: 95%; min-height: calc(100% - 220px); // Minus top and bottom } li.list-heading { list-style: none; }
body { font-family: 'Lato', 'Helvetica', 'Trebuchet MS', 'Arial', sans-serif; } .master-container { max-width: rem-calc(1080px); margin: auto; padding: 0 20px; min-height: calc(100% - 220px); // Minus top and bottom } li.list-heading { list-style: none; }
Update toggle CSS to rm focus styling
.app { header { // Navigation Bar nav { //.navbar-pf-vertical .navbar-toggle { .toggle-nav { background-color: rgba(0, 0, 0, 0); background-image: none; border: 0; //border: 1px solid #363636; border-radius: 1px; display: block; float: left; margin: 9px 15px; padding: 9px 10px; position: relative; .icon-bar { background: #d1d1d1; border-radius: 1px; display: block; height: 2px; margin-top: 4px; width: 22px; } .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; } } } } // Main body main {} // <div> container when sidebar is collapsed .nav-pf-vertical.hidden-icons-pf.collapsed {} }
.app { header { // Navigation Bar nav { //.navbar-pf-vertical .navbar-toggle { .toggle-nav { background-color: rgba(0, 0, 0, 0); background-image: none; border: 0; //border: 1px solid #363636; border-radius: 1px; display: block; float: left; margin: 9px 15px; padding: 9px 10px; position: relative; &:focus { outline: -webkit-focus-ring-color 0; outline-color: transparent; outline-style: none; outline-width: 0; } .icon-bar { background: #d1d1d1; border-radius: 1px; display: block; height: 2px; margin-top: 4px; width: 22px; } .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; } } } } // Main body main {} // <div> container when sidebar is collapsed .nav-pf-vertical.hidden-icons-pf.collapsed {} }
Move height into new class
#update-available { border-bottom: 1px solid var(--box-border-color); height: 30px; .close { position: absolute; right: var(--spacing); border: 0; height: 16px; width: 16px; margin: 0; padding: 0; background: transparent; color: var(--text-secondary-color); cursor: pointer; } }
#update-available { border-bottom: 1px solid var(--box-border-color); height: 0px; &.active { height: 50px; } .close { position: absolute; right: var(--spacing); border: 0; height: 16px; width: 16px; margin: 0; padding: 0; background: transparent; color: var(--text-secondary-color); cursor: pointer; } }
Fix button style in page blocks
.wys-button { @extend .button; } .wys-button-small { @extend .button; @extend .button--small; } .wys-button-xsmall { @extend .button; @extend .button--xsmall; } .wys-button-black { @extend .button; @extend .button--black; } .wys-button-black-small { @extend .button; @extend .button--black; @extend .button--small; } .wys-button-black-xsmall { @extend .button; @extend .button--black; @extend .button--xsmall; }
a.wys-button { @extend .button; .page__block--black & { color: $color-black; &:hover { color: $color-main; } } } a.wys-button-small { @extend .button; @extend .button--small; .page__block--black & { color: $color-black; &:hover { color: $color-main; } } } a.wys-button-xsmall { @extend .button; @extend .button--xsmall; .page__block--black & { color: $color-black; &:hover { color: $color-main; } } } a.wys-button-black { @extend .button; @extend .button--black; .page__block--black & { color: white; &:hover { color: $color-black; } } } a.wys-button-black-small { @extend .button; @extend .button--black; @extend .button--small; .page__block--black & { color: white; &:hover { color: $color-black; } } } a.wys-button-black-xsmall { @extend .button; @extend .button--black; @extend .button--xsmall; .page__block--black & { color: white; &:hover { color: $color-black; } } }
Fix about section bg image url
#landing { .row { } section#splash { @include background("../images/background/revuc-background.jpg"); } section#schedule { @include background("../images/background/circuit-bg.jpg"); } section#sponsors { @include background("../images/background/circuit-bg.jpg"); } section#about { @include background("../images/background/circuit-bg.png"); } section#about-1 { @include background("../images/photos/collab-bg.jpg"); } section#about-2 { @include background("../images/background/circuit-bg.jpg"); } section#about-3 { @include background("../images/photos/Hack.jpg"); } section#submissions { @include background("../images/photos/expo-bg.jpg"); //@include background("../images/background/circuit-bg.png"); } section#registration { @include background("../images/photos/expo-bg.jpg"); } }
#landing { .row { } section#splash { @include background("../images/background/revuc-background.jpg"); } section#schedule { @include background("../images/background/circuit-bg.jpg"); } section#sponsors { @include background("../images/background/circuit-bg.jpg"); } section#about { @include background("../images/background/circuit-bg.jpg"); } section#about-1 { @include background("../images/photos/collab-bg.jpg"); } section#about-2 { @include background("../images/background/circuit-bg.jpg"); } section#about-3 { @include background("../images/photos/Hack.jpg"); } section#submissions { @include background("../images/photos/expo-bg.jpg"); //@include background("../images/background/circuit-bg.png"); } section#registration { @include background("../images/photos/expo-bg.jpg"); } }
Align comments headings + buttons
// TRACKBACKS, COMMENTS, FORMS // -------------------------------------------------------------------- // Comment + contact forms .form_field { margin: .5rem 0; label { display: block; } } .form_input { input { width: 100%; } } .form_select { select { width: 100%; } } .form_buttons { margin: 1rem 0; }
// TRACKBACKS, COMMENTS, FORMS // -------------------------------------------------------------------- // Comment + contact forms .form_field { margin: .5rem 0; label { display: block; } } .form_input { input { width: 100%; } } .form_select { select { width: 100%; } } .form_buttons { margin: 1rem 0; text-align: center; } // Comments .comment { h4 { text-align: left; } }
Set default font weight for buttons
// * * * * * * BUTTON * * * * * * // .button { @include border-radius(2px); @include box-sizing(border-box); color: #fff; cursor: pointer; display: inline-block; font-family: $font-family-primary; font-size: 15px; letter-spacing: .6px; line-height: normal; overflow: hidden; padding: 5px 10px; text-align: center; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; &:hover { color: #fff; text-decoration: none; } &.icon:before { font-size: initial; margin: 0 6px 0 0; } // Colored buttons &.red { background-color: $color-btn-red; &:hover, &:active { background-color: $color-btn-red-hover; } } &.green { background-color: $color-btn-green; &:hover, &:active { background-color: $color-btn-green-hover; } } }
// * * * * * * BUTTON * * * * * * // .button { @include border-radius(2px); @include box-sizing(border-box); color: #fff; cursor: pointer; display: inline-block; font-family: $font-family-primary; font-size: 15px; font-weight: 400; letter-spacing: .6px; line-height: normal; overflow: hidden; padding: 5px 10px; text-align: center; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; &:hover { color: #fff; text-decoration: none; } &.icon:before { font-size: initial; margin: 0 6px 0 0; } // Colored buttons &.red { background-color: $color-btn-red; &:hover, &:active { background-color: $color-btn-red-hover; } } &.green { background-color: $color-btn-green; &:hover, &:active { background-color: $color-btn-green-hover; } } }
Remove styles for deleted component
@import '../_partials/colors'; body #root .App { .view .page { #page-content.recommendation-page { margin-top: 70px !important; width: 100% !important; .recommendation-content { text-align: center; .thread-title { line-height: 30px; margin: 0 auto 10px auto; width: 75%; } .chip-list { margin: auto; max-width: 85%; } .recommendation-list { .swiper-slide { background-color: $dark-purple; width: 275px; } .swiper-slide-prev, .swiper-slide-next { z-index: 1; .recommendation { .card { opacity: 0.5; .card-header { } } } } .recommendation { margin: 25px auto 0; } } } .loading { margin: 100px auto; text-align: center; } } } .view .popup-empty-thread .content-block { padding: 0 5%; } } @media only screen and (max-width: 300px) { body #root .App .view .page #page-content.recommendation-page { margin-left: -10px; width: 95%; } }
@import '../_partials/colors'; body #root .App { .view .page { #page-content.recommendation-page { margin-top: 70px !important; width: 100% !important; .recommendation-content { text-align: center; .thread-title { line-height: 30px; margin: 0 auto 10px auto; width: 75%; } .chip-list { margin: auto; max-width: 85%; } .recommendation-list { .swiper-slide { background-color: $dark-purple; width: 275px; } .swiper-slide-prev, .swiper-slide-next { z-index: 1; .recommendation { .card { opacity: 0.5; .card-header { } } } } .recommendation { margin: 25px auto 0; } } } .loading { margin: 100px auto; text-align: center; } } } } @media only screen and (max-width: 300px) { body #root .App .view .page #page-content.recommendation-page { margin-left: -10px; width: 95%; } }
Update site-credit to include light version of logo by default
@if $use-site-credit == true { /* #Site Credit */ /* Useful pattern typically used to provide credit to the website developer in the footer of the website. */ /* <p>Developed by <a href="#" class="ir site-credit">Burfield Creative</a></p> */ .site-credit { @extend .ir; @include inline-block; position: relative; top: -3px; vertical-align: middle; background-position: 50% 50%; background-repeat: no-repeat; width: 84px; height: 12px; margin-left: 2px; .no-svg & { background-image: url("#{$images_dir}/framework/site-credit.png"); height: 20px; top: auto; } } .site-credit--dark { background-image: url("#{$images_dir}/framework/site-credit--dark.svg"); .no-svg & { background-image: url("#{$images_dir}/framework/site-credit--dark.png"); } } }//endif
@if $use-site-credit == true { /* #Site Credit */ /* Useful pattern typically used to provide credit to the website developer in the footer of the website. */ /* <p>Developed by <a href="#" class="ir site-credit">Burfield Creative</a></p> */ .site-credit { @extend .ir; @include inline-block; position: relative; top: -3px; vertical-align: middle; background-position: 50% 50%; background-repeat: no-repeat; width: 84px; height: 12px; margin-left: 2px; background-image: url("#{$images_dir}/framework/site-credit.svg"); .no-svg & { background-image: url("#{$images_dir}/framework/site-credit.png"); height: 20px; top: auto; } } .site-credit--dark { background-image: url("#{$images_dir}/framework/site-credit--dark.svg"); .no-svg & { background-image: url("#{$images_dir}/framework/site-credit--dark.png"); } } }//endif
Add min-width: 0; to .col to prevent strange overflow issues
// Styles written by YOURNAME @ YOURCOMPANY /* ------------------------------------------------------------------------ *\ * Gridly (adapted from https://github.com/IonicaBizau/gridly) \* ------------------------------------------------------------------------ */ .row { & { display: flex; } } .col { & { flex: 1 1 0%; } &.-tenth { flex: 0 0 10%; } &.-fifth { flex: 0 0 20%; } &.-quarter { flex: 0 0 25%; } &.-third { flex: 0 0 33.3333334%; } &.-half { flex: 0 0 50%; } &.-none { flex: 0 0 auto; } }
// Styles written by YOURNAME @ YOURCOMPANY /* ------------------------------------------------------------------------ *\ * Gridly (adapted from https://github.com/IonicaBizau/gridly) \* ------------------------------------------------------------------------ */ .row { & { display: flex; } } .col { & { flex: 1 1 0%; min-width: 0; // fixes weird overflow issues } &.-tenth { flex: 0 0 10%; } &.-fifth { flex: 0 0 20%; } &.-quarter { flex: 0 0 25%; } &.-third { flex: 0 0 33.3333334%; } &.-half { flex: 0 0 50%; } &.-none { flex: 0 0 auto; } }
Add padding to the bottom of the main content
@import "people"; @import "groups"; .edit_this_page { float: right; } .people-search { margin-top: 15px; } .people-search input[type='submit'] { position: absolute; margin-top: 2px; width: 40px; height: 35px; border: 1px solid #6F777B; border-width: 0 0 0 1px; text-indent: -5000px; overflow: hidden; background: #6F777B url(/assets/search-button.png) no-repeat 2px 50%; }
@import "people"; @import "groups"; main#content { padding-bottom: 90px; } .edit_this_page { float: right; } .people-search { margin-top: 15px; } .people-search input[type='submit'] { position: absolute; margin-top: 2px; width: 40px; height: 35px; border: 1px solid #6F777B; border-width: 0 0 0 1px; text-indent: -5000px; overflow: hidden; background: #6F777B url(/assets/search-button.png) no-repeat 2px 50%; }
Save the change to the top padding
// // Prefer imports over require // http://pivotallabs.com/structure-your-sass-files-with-import/ // //= require_self // Core @import "variables"; @import "bootstrap"; @import "icons_social"; @import "auth"; @import "avatar"; @import "cards"; @import "footer"; @import "hacks"; @import "flatui"; // Plugins @import 'nprogress'; @import 'nprogress-bootstrap'; // // Minor Tweaks // // Padding to clear fixed nav body { padding-top: 70px; } // Make sure alerts are nicely formatted .alert { a { white-space: nowrap; } } // Postion loading spinner at bottom right #nprogress .spinner { bottom: 15px; top: auto; }
// // Prefer imports over require // http://pivotallabs.com/structure-your-sass-files-with-import/ // //= require_self // Core @import "variables"; @import "bootstrap"; @import "icons_social"; @import "auth"; @import "avatar"; @import "cards"; @import "footer"; @import "hacks"; @import "flatui"; // Plugins @import 'nprogress'; @import 'nprogress-bootstrap'; // // Minor Tweaks // // Make sure alerts are nicely formatted .alert { a { white-space: nowrap; } } // Postion loading spinner at bottom right #nprogress .spinner { bottom: 15px; top: auto; }
Add padding to AdSense overview chart.
/** * AdSense Site performance widget styles. * * Site Kit by Google, Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ .googlesitekit-plugin { .googlesitekit-adsense-performance-overview { display: flex; flex-wrap: wrap; justify-content: space-evenly; .googlesitekit-data-block--button { min-width: 25%; padding-left: 20px; padding-right: 20px; } } }
/** * AdSense Site performance widget styles. * * Site Kit by Google, Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ .googlesitekit-plugin { .googlesitekit-adsense-performance-overview { display: flex; flex-wrap: wrap; justify-content: space-evenly; padding: $grid-gap-phone; @media (min-width: $bp-desktop) { padding: $grid-gap-desktop; } .googlesitekit-data-block--button { min-width: 25%; padding-left: 20px; padding-right: 20px; } } }
Fix the width of the profile box
.profile-view, .profile-edit, .profile-change-password { background: rgba(200,200,200,0.5); margin:10px -20px; padding:20px; border-top:1px solid #ccc; border-bottom:1px solid #ccc; label { text-shadow: 0px 0px 3px #000; } .form-control { font-weight: bold; color:#000; &.form-text { height: auto; padding: 0px; font-weight: bold; font-size: 16px; background: transparent; border: none; box-shadow: none; color: #000; } } } .btn { &.form-control { margin-bottom: 10px; } }
.profile-view, .profile-edit, .profile-change-password { background: rgba(200,200,200,0.5); margin:10px -15px; padding:20px; border-top:1px solid #ccc; border-bottom:1px solid #ccc; label { text-shadow: 0px 0px 3px #000; } .form-control { font-weight: bold; color:#000; &.form-text { height: auto; padding: 0px; font-weight: bold; font-size: 16px; background: transparent; border: none; box-shadow: none; color: #000; } } } .btn { &.form-control { margin-bottom: 10px; } }
Make unanswered calls pulse from red to black instead of changing opacity
.tabs-striped.tabs-positive .tab-item .badge { opacity: 1; } .call-log-list { .item { h2 { width: 50%; display: inline-block; } span { float: right; } &.not-seen { span { animation: notify-pulse 1.75s infinite; color: #ef473a; } h2 { animation: notify-pulse 1.75s infinite; color: #ef473a; } } } }
.tabs-striped.tabs-positive .tab-item .badge { opacity: 1; } @keyframes not-read-pulse { 0% { color: #ef473a;} 50% { color: black; } 100% { color: #ef473a; } } .call-log-list { .item { h2 { width: 50%; display: inline-block; } span { float: right; } &.not-seen { span { animation: not-read-pulse 1.75s infinite; color: #ef473a; } h2 { animation: not-read-pulse 1.75s infinite; color: #ef473a; } } } }
Change pending request background color
.folders { background-color: $background-color; .tab a { color: $accent-color; &:hover { color: $dark-accent-color; } } .indicator { background-color: $accent-color; } .unread { color: $dark-accent-color; } .active a { color: $accent-color; } } .conversation, .message-thread { margin-top:10px; .message{ padding:10px; background-color:$panel-color; &:nth-child(even){ background-color:$background-color; } } h3, h4 { margin:0 } .date { font-size:0.85em; } } .trash { background-color: $background-color; &:hover { background-color:$danger-color; } }
.folders { background-color: $background-color; .tab a { color: $accent-color; &:hover { color: $dark-accent-color; } } .indicator { background-color: $accent-color; } .unread { color: $dark-accent-color; } .active a { color: $accent-color; } } .conversation, .message-thread { margin-top:10px; .message{ padding:10px; background-color:$panel-color; &:nth-child(even){ background-color:$background-color; } } h3, h4 { margin:0 } .date { font-size:0.85em; } } .pending-request { background-color: $beginner-color; font-weight: bold; padding:5px; color:$background-color; a { color: $panel-color; } } .trash { background-color: $background-color; &:hover { background-color:$danger-color; } }
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; }
Use more elegant light gray as feature background
.c-feature { padding-top: setting-spacing(xxl); padding-bottom: setting-spacing(xxl); border: 1px solid setting-color(b, gray); border-right: none; border-left: none; background: mix(setting-color(a), #fff, 10%); } .c-feature__content-grid { align-items: center; } .c-feature__cta { display: inline-block; }
.c-feature { padding-top: setting-spacing(xxl); padding-bottom: setting-spacing(xxl); background: setting-color(a, gray); } .c-feature__content-grid { align-items: center; } .c-feature__cta { display: inline-block; }
Increase font-size for nav bar dropdown
.sign-in-box { margin-top: 40px; } .sign-in-dev-link { margin-top: 30px; } .twitter-github-links { margin-top: 30px; } .fixed-nav-padding { padding-top: 7rem; } .profile-heading { margin-bottom: 4rem; } .profile-label-description { margin-bottom: 4rem; } .profile-description { height: 10rem; margin-bottom: 1rem; }
.sign-in-box { margin-top: 40px; } .sign-in-dev-link { margin-top: 30px; } .twitter-github-links { margin-top: 30px; } .fixed-nav-padding { padding-top: 7rem; } .profile-heading { margin-bottom: 4rem; } .profile-label-description { margin-bottom: 4rem; } .profile-description { height: 10rem; margin-bottom: 1rem; } .dropdown { font-size: 1.8rem; } .dropdown-menu { font-size: 1.5rem; }
Fix scss-lint warnings in stylesheets
.header__title { margin:0; } .header__tagline { color: $secondary-text-colour; font-weight: bold; }
.header__title { margin: 0; } .header__tagline { color: $secondary-text-colour; font-weight: bold; }
Fix CSS issue with demo
:host { list-item { display: inline-block; overflow: hidden; vertical-align: top; border: 0; margin: 0px; width: 100%; } button { background: #03A9F4; border: none; color: white; margin: 1em; width: 4em; border-radius: 5em; font-size: .8em; line-height: 1em; padding: .5em; outline: none; } .loader { height: 4em; display: block; line-height: 4em; text-align: center; position: relative; } .loader:before { content: ' '; position: absolute; top: 0; left: 0; width: 20%; height: 2px; background: red; animation: loader-animation 2s ease-out infinite; } @keyframes loader-animation { 0% { transform: translate(0%); } 100% { transform: translate(500%); } } }
:host { button { background: #03A9F4; border: none; color: white; margin: 1em; width: 4em; border-radius: 5em; font-size: .8em; line-height: 1em; padding: .5em; outline: none; } .loader { height: 4em; display: block; line-height: 4em; text-align: center; position: relative; } .loader:before { content: ' '; position: absolute; top: 0; left: 0; width: 20%; height: 2px; background: red; animation: loader-animation 2s ease-out infinite; } @keyframes loader-animation { 0% { transform: translate(0%); } 100% { transform: translate(500%); } } }
Scale images to fit in height, not width
div.organization-logo { width: 200px; height: 100px; background-size: cover; background-position: center; } div.organization { margin-top: 10px; min-height: 150px; } div.organization-summary { border-bottom: 1px solid #7ebbe4; padding-bottom: 10px; min-height: 100px; } div.organization-summary div.organization-description { min-height: auto; }
div.organization-logo { width: 200px; height: 100px; background-size: contain; background-position: center; background-repeat: no-repeat; } div.organization { margin-top: 10px; min-height: 150px; } div.organization-summary { border-bottom: 1px solid #7ebbe4; padding-bottom: 10px; min-height: 100px; } div.organization-summary div.organization-description { min-height: auto; }
Add coloring to error message
body{ padding-top: 70px; } .field-margin{ margin: 1%; } .hide-element{ display: none; } .calendar-row{ /*float: right;*/ } .calendar-day-header{ border-bottom: 1px solid gray; } .hide{ display: none; } .left-margin{ margin-left: 2%; } .field-margin-top{ margin-top: 1%; }
body{ padding-top: 70px; } .field-margin{ margin: 1%; } .hide-element{ display: none; } .calendar-row{ /*float: right;*/ } .calendar-day-header{ border-bottom: 1px solid gray; } .hide{ display: none; } .left-margin{ margin-left: 2%; } .field-margin-top{ margin-top: 1%; } .vote-error{ color: red; }
Increase doc item heading sizes
$_doc-item-spacing: 6rem; $_space-m: 1rem; $_space-l: 2rem; .c-doc-item { &:not(:first-child) { padding-top: $_doc-item-spacing; } &:not(:last-child) { border-bottom: 1px solid $color-border; padding-bottom: $_doc-item-spacing; } } .doc-item__title { font-size: modular-scale(2); } .doc-item__sub-title { font-size: modular-scale(0); margin-bottom: modular-scale(-1); } .doc-item__title, .doc-item__section:not(:last-child) { margin-bottom: $_space-l; } .doc-item__description, .doc-item__at-content-description { max-width: 36em; } .doc-item__arguments, .doc-item__properties, .doc-item__example { font-size: modular-scale(-1); } .doc-item__example { border: 1px solid $color-border; border-radius: $border-radius; padding: modular-scale(0); &:not(:last-child) { margin-bottom: $_space-m; } }
$_doc-item-spacing: 6rem; $_space-m: 1rem; $_space-l: 2rem; .c-doc-item { &:not(:first-child) { padding-top: $_doc-item-spacing; } &:not(:last-child) { border-bottom: 1px solid $color-border; padding-bottom: $_doc-item-spacing; } } .doc-item__title { font-size: modular-scale(4); } .doc-item__sub-title { font-size: modular-scale(1); margin-bottom: modular-scale(-1); } .doc-item__title, .doc-item__section:not(:last-child) { margin-bottom: $_space-l; } .doc-item__description, .doc-item__at-content-description { max-width: 36em; } .doc-item__arguments, .doc-item__properties, .doc-item__example { font-size: modular-scale(-1); } .doc-item__example { border: 1px solid $color-border; border-radius: $border-radius; padding: modular-scale(0); &:not(:last-child) { margin-bottom: $_space-m; } }
Fix favourite tags lock icon position
/** * features/compose/components/favourite_tags */ .favourite-tags { background: $ui-base-color; position: relative; a { color: $white; } .favourite-tags__body li { display: flex; align-items: center; padding: 10px; position: relative } .favourite-tags__name { font-size: 14px; color: $white; text-decoration: none; } .favourite-tags__name .fa-hashtag { color: $classic-highlight-color; margin-right: 2px; } .favourite-tags__lock { position: absolute; right: 20px; width: 14px; text-align: center; } }
/** * features/compose/components/favourite_tags */ .favourite-tags { background: $ui-base-color; position: relative; a { color: $white; } .favourite-tags__body li { display: flex; align-items: center; padding: 10px; position: relative } .favourite-tags__name { font-size: 14px; color: $white; text-decoration: none; } .favourite-tags__name .fa-hashtag { color: $classic-highlight-color; margin-right: 2px; } .favourite-tags__lock { position: absolute; top: 50%; right: 20px; margin-top: -7px; width: 14px; text-align: center; } }
Make date on User expansion gray
// styles that apply to the "share" popup when sharing a link to a post or topic @import "common/foundation/variables"; @import "common/foundation/mixins"; #poster-expansion { position: absolute; left: 20px; z-index: 990; @include border-radius-all(3px); @include box-shadow(1px 1px 5px $darkish_gray); background-color: $white; padding: 7px 7px 6px 7px; width: 400px; h1 { font-size: 30px; line-height: 33px; margin-bottom: 8px; a { color: #333; } } h2 { font-size: 20px; line-height: 22px; font-weight: normal; } h3 { font-size: 13px; font-weight: normal; margin-top: 15px; } .bottom { clear: both; padding-top: 10px; } img.avatar { float: left; padding-right: 10px; } p { margin: 0 0 5px 0; } p.loading { margin-top: 30px; color: #666; } .btn { margin: 0 0 7px 0; } }
// styles that apply to the "share" popup when sharing a link to a post or topic @import "common/foundation/variables"; @import "common/foundation/mixins"; #poster-expansion { position: absolute; left: 20px; z-index: 990; @include border-radius-all(3px); @include box-shadow(1px 1px 5px $darkish_gray); background-color: $white; padding: 7px 7px 6px 7px; width: 400px; h1 { font-size: 30px; line-height: 33px; margin-bottom: 8px; a { color: #333; } } h2 { font-size: 20px; line-height: 22px; font-weight: normal; } h3 { font-size: 13px; font-weight: normal; margin-top: 15px; color: #666; } .bottom { clear: both; padding-top: 10px; } img.avatar { float: left; padding-right: 10px; } p { margin: 0 0 5px 0; } p.loading { margin-top: 30px; color: #666; } .btn { margin: 0 0 7px 0; } }
Change border radius to be equal on all four sidesfor all sections
.debug { outline: 1px solid red } body { background-image: url("ggbridge-1920x1282.jpg"); background-repeat: no-repeat; background-attachment: fixed; background-position: center; padding-top: 70px; padding-bottom: 70px; h1 { text-align: center; background-color: #e7e7e7; border: 2px solid #000; border-radius: 1em; padding: .2em 0; } } figure { text-align: center; margin: 10px auto; } .section { background-color: #e7e7e7; text-align: center; margin-top: 60px; border: 2px solid #000; border-radius: 1em 4em 1em 4em; p { color: #000; } } .about-me-section { } .skills-section { } .history-section { } .interests-section { }
.debug { outline: 1px solid red } body { background-image: url("ggbridge-1920x1282.jpg"); background-repeat: no-repeat; background-attachment: fixed; background-position: center; padding-top: 70px; padding-bottom: 70px; h1 { text-align: center; background-color: #e7e7e7; border: 2px solid #000; border-radius: 1em; padding: .2em 0; } } figure { text-align: center; margin: 10px auto; } .section { background-color: #e7e7e7; text-align: center; margin-top: 60px; border: 2px solid #000; border-radius: 1em; p { color: #000; } } .about-me-section { } .skills-section { } .history-section { } .interests-section { }
Make all hide options false
/* ========================================================================== Common overrides & ugly hacks ========================================================================== */ /* Hide unused HTML from user ========================================================================== */ /* Placeholder */ %hide { display: none; } /* Options (will be triggered at the relevant wherever) */ $hide-tags: true !default; /* Default banner */ #banner { @extend %hide; } /* Icons at box headers (hidden by default now aren't they?) */ // .bi_text, .bi_links, .bi_file, .bi_rss, .bi_event, .bi_podcast, .bi_video, .bi_poll, .bi_books, .bi_search { @extend %hide; } /* Hide breaks (<br>) ========================================================================== */ /* Break after guide tabs */ .tab_break { @extend %hide; } /* Break at the top of guide pages */ #container > div + a + br { @extend %hide; } /* Break between page (NOT guide) description & .stitle */ .pagedesc + br { @extend %hide; }
/* ========================================================================== Common overrides & ugly hacks ========================================================================== */ /* Hide unused HTML from user ========================================================================== */ /* Placeholder */ %hide { display: none; } /* Options (will be triggered at the relevant wherever) */ $hide-tags: false !default; $hide-stitle: false !default; /* Default banner */ #banner { @extend %hide; } /* Icons at box headers (hidden by default now aren't they?) */ // .bi_text, .bi_links, .bi_file, .bi_rss, .bi_event, .bi_podcast, .bi_video, .bi_poll, .bi_books, .bi_search { @extend %hide; } /* Hide breaks (<br>) ========================================================================== */ /* Break after guide tabs */ .tab_break { @extend %hide; } /* Break at the top of guide pages */ #container > div + a + br { @extend %hide; } /* Break between page (NOT guide) description & .stitle */ .pagedesc + br { @extend %hide; }
Remove the partial opacity treatement in the team header
.team-header { border-radius: 2px; transition: opacity 200ms ease-in-out; opacity: 0.5; &:hover { opacity: 1; } padding-left: 14px; // TODO: rationalize layout padding } .team-header__clickable { height: 100%; width: 100%; display: flex; align-items: center; &, &:hover { text-decoration: none; } &, &:visited { color: inherit; } } .team-header__icon { font-size: 24px; color: hsl(204, 15%, 70%); } .team-header__caret { display: none; } .team-header__avatar { @include team-avatar(40px); margin-right: 9px; } .team-header__copy { flex: 1; } .team-header__name { @include team-name(14px); margin: 3px 0 2px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 180px; } .team-header__label { color: $light-gray-text; font-size: 13px; }
.team-header { border-radius: 2px; padding-left: 14px; // TODO: rationalize layout padding } .team-header__clickable { height: 100%; width: 100%; display: flex; align-items: center; &, &:hover { text-decoration: none; } &, &:visited { color: inherit; } } .team-header__icon { font-size: 24px; color: hsl(204, 15%, 70%); } .team-header__caret { display: none; } .team-header__avatar { @include team-avatar(40px); margin-right: 9px; } .team-header__copy { flex: 1; } .team-header__name { @include team-name(14px); margin: 3px 0 2px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 180px; } .team-header__label { color: $light-gray-text; font-size: 13px; }
Add explicit height for hero section.
.header-hero { background: url("/assets/img/landing-page-bkg-small.jpg") no-repeat center center / cover; min-height: 80vh; @media (max-width: 767px) and (orientation: landscape) { min-height: 350px; } @media (min-width: 768px) { background-image: url("/assets/img/landing-page-bkg.jpg"); } h1 { line-height: $header-hero-line-height; } .display-4 { @media (max-width: 767px) { font-size: 3rem; } } }
.header-hero { background: url("/assets/img/landing-page-bkg-small.jpg") no-repeat center center / cover; height: 80vh; min-height: 80vh; @media (max-width: 767px) and (orientation: landscape) { min-height: 350px; } @media (min-width: 768px) { background-image: url("/assets/img/landing-page-bkg.jpg"); } h1 { line-height: $header-hero-line-height; } .display-4 { @media (max-width: 767px) { font-size: 3rem; } } }
Add css for member checkin button.
/* * This is a manifest file that'll be compiled into application.css, which will include all the files * listed below. * * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets, * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path. * * You're free to add application-wide styles to this file and they'll appear at the bottom of the * compiled file so the styles you add here take precedence over styles defined in any styles * defined in the other CSS/SCSS files in this directory. It is generally better to create a new * file per style scope. * *= require select2 *= require select2-bootstrap */ @import "bootstrap-sprockets"; @import "bootstrap"; @import "bootstrap-datetimepicker"; body { padding-top: 50px; } .network-template { padding: 40px 15px; text-align: center; }
/* * This is a manifest file that'll be compiled into application.css, which will include all the files * listed below. * * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets, * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path. * * You're free to add application-wide styles to this file and they'll appear at the bottom of the * compiled file so the styles you add here take precedence over styles defined in any styles * defined in the other CSS/SCSS files in this directory. It is generally better to create a new * file per style scope. * *= require select2 *= require select2-bootstrap */ @import "bootstrap-sprockets"; @import "bootstrap"; @import "bootstrap-datetimepicker"; body { padding-top: 50px; } //for member checkin page #btn_div{ text-align: right; margin-bottom: -15px; } .info_div { color: #9d9d9d; padding: 2px; } #select-all{ margin-left: 3px; } thead tr th:first-child, tbody tr td:first-child { width: 8.5em; } //end .network-template { padding: 40px 15px; text-align: center; }
Disable ligatures within the editor
.editor { background-color: $color-white; border: 1px solid $color-editor-chrome; border-radius: $editor-border-radius; color: $color-grey; } .DraftEditor-editorContainer { .editor--readonly & { &:before { content: ''; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; z-index: $overlay-z-index; background-color: rgba(255, 255, 255, 0.8); } } } .public-DraftEditor-content, .public-DraftEditorPlaceholder-root { padding: $editor-spacing; font-size: 1rem; line-height: 1.5; font-family: sans-serif; } .public-DraftEditorPlaceholder-root { .editor--hide-placeholder & { display: none; } } // Remove default margins on atomic blocks because of the figure element. .public-DraftEditor-content > * > figure { margin: 0; } .RichEditor-link { background: $color-light-blue; border-bottom: 1px dotted $color-teal; cursor: pointer; .icon { color: $color-teal; } }
.editor { background-color: $color-white; border: 1px solid $color-editor-chrome; border-radius: $editor-border-radius; color: $color-grey; } .DraftEditor-editorContainer { .editor--readonly & { &:before { content: ''; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; z-index: $overlay-z-index; background-color: rgba(255, 255, 255, 0.8); } } } .public-DraftEditor-content, .public-DraftEditorPlaceholder-root { padding: $editor-spacing; font-size: 1rem; line-height: 1.5; font-family: sans-serif; // Ligatures can make cursor behavior harder to understand. font-variant-ligatures: none; } .public-DraftEditorPlaceholder-root { .editor--hide-placeholder & { display: none; } } // Remove default margins on atomic blocks because of the figure element. .public-DraftEditor-content > * > figure { margin: 0; } .RichEditor-link { background: $color-light-blue; border-bottom: 1px dotted $color-teal; cursor: pointer; .icon { color: $color-teal; } }
Use computed line height for vertical margins
@import 'bootstrap/_variables'; $gill-sans-font-stack: "GillSans", "Gill Sans", "Helvetica Neue", Arial, sans-serif; $default-vertical-margin: $line-height-base * $font-size-base; // Colours $link-color-visited : #609; /* Purple */ // From https://www.gov.uk/service-manual/user-centered-design/resources/colour-palettes $turquoise : #28a197; $orange : #f47738; $good-HTTP-status-color : #dfd; /* Green */ $bad-HTTP-status-color : #fdd; /* Red */ $default-HTTP-status-color : #eee; /* Grey */ // Buttons $default-btn-height : 30px; $primary-button-color : #fff; /* White */ $success-button-color : #fff; $info-button-color : #fff; $inverse-button-color : #fff; $danger-button-color : #fff; $warning-button-color : #fff; $default-button-color : #333; /* Dark grey */
@import 'bootstrap/_variables'; $gill-sans-font-stack: "GillSans", "Gill Sans", "Helvetica Neue", Arial, sans-serif; $default-vertical-margin: $line-height-computed; // Colours $link-color-visited : #609; /* Purple */ // From https://www.gov.uk/service-manual/user-centered-design/resources/colour-palettes $turquoise : #28a197; $orange : #f47738; $good-HTTP-status-color : #dfd; /* Green */ $bad-HTTP-status-color : #fdd; /* Red */ $default-HTTP-status-color : #eee; /* Grey */ // Buttons $default-btn-height : 30px; $primary-button-color : #fff; /* White */ $success-button-color : #fff; $info-button-color : #fff; $inverse-button-color : #fff; $danger-button-color : #fff; $warning-button-color : #fff; $default-button-color : #333; /* Dark grey */
Fix link button hover border
/* Basscss Base Buttons */ button, .button { font-family: $button-font-family; font-size: $button-font-size; font-weight: $button-font-weight; text-decoration: none; cursor: pointer; display: inline-block; box-sizing: border-box; line-height: $button-line-height; padding: $button-padding-y $button-padding-x; margin: 0; height: auto; border: 1px solid transparent; vertical-align: middle; -webkit-appearance: none; } ::-moz-focus-inner { border: 0; padding: 0; } .button:hover { text-decoration: none; }
/* Basscss Base Buttons */ button, .button { font-family: $button-font-family; font-size: $button-font-size; font-weight: $button-font-weight; text-decoration: none; cursor: pointer; display: inline-block; box-sizing: border-box; line-height: $button-line-height; padding: $button-padding-y $button-padding-x; margin: 0; height: auto; border: 1px solid transparent; vertical-align: middle; -webkit-appearance: none; } ::-moz-focus-inner { border: 0; padding: 0; } .button:hover { text-decoration: none; border: 1px solid transparent; }
Adjust YouTube player height for the current player.
/* Embedded content ========================================================================== */ /* responsive images, remove the gap between images and the bottom of their containers, remove border when inside `<a>` element in IE8-9. */ img { border: 0; max-width: 100%; height: auto; vertical-align: middle; } /* responsive embedded widgets */ .embed-video { position: relative; iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } &.embed-youtube { padding-top: 75%; } &.embed-vimeo { padding-top: 56.25%; } }
/* Embedded content ========================================================================== */ /* responsive images, remove the gap between images and the bottom of their containers, remove border when inside `<a>` element in IE8-9. */ img { border: 0; max-width: 100%; height: auto; vertical-align: middle; } /* responsive embedded widgets */ .embed-video { position: relative; padding-top: 56.25%; iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } }
Add min-width to control optout message on desktop
// Message to notify the user that they are on the mobile responsive site and a button to allow the user to "opt out" or switch between the mobile responsive site and the fixed desktop site. // // Styleguide Opt out bar .opt-out { @extend %clearfix; background-color: $color-opt-out-background; &.is-hidden { display: none; } } .opt-out__message { @extend %type-small; margin: $baseline-unit*2 0 0 0; @include respond-to($mq-m) { float: left; } } .opt-out__button { @extend %type-small; @extend .button--unstyled; padding: $baseline-unit*2 $baseline-unit; color: $color-link-default; &:hover, &:focus { outline: 0; text-decoration: underline; } } .opt-out__close { position: absolute; top: 0; right: 0; } .opt-out__close__button { @extend .button--unstyled; padding: $baseline-unit*2; }
// Message to notify the user that they are on the mobile responsive site and a button to allow the user to "opt out" or switch between the mobile responsive site and the fixed desktop site. // // Styleguide Opt out bar .opt-out { @extend %clearfix; background-color: $color-opt-out-background; &.is-hidden { display: none; } } .opt-out__message { @extend %type-small; margin: $baseline-unit*2 0 0 0; @include respond-to($mq-m) { float: left; min-width: 310px; } } .opt-out__button { @extend %type-small; @extend .button--unstyled; padding: $baseline-unit*2 $baseline-unit; color: $color-link-default; &:hover, &:focus { outline: 0; text-decoration: underline; } } .opt-out__close { position: absolute; top: 0; right: 0; } .opt-out__close__button { @extend .button--unstyled; padding: $baseline-unit*2; }
Fix tiny layout bug in 'Begin activity button'. (truncates button)
// Single page class is added to the body element. It's intended to work with the full width layout. .l-single-page .pages { display: none; } .submit{ width:80px; margin:0 auto; }
// Single page class is added to the body element. It's intended to work with the full width layout. .l-single-page { .pages { display: none; } .submit { width:80px; margin:0 auto; } }
Update image-rendering mixing to conform with the last specification.
@mixin image-rendering ($mode:optimizeQuality) { @if ($mode == optimize-contrast) { image-rendering: -moz-crisp-edges; image-rendering: -o-crisp-edges; image-rendering: -webkit-optimize-contrast; image-rendering: optimize-contrast; } @else { image-rendering: $mode; } }
@mixin image-rendering ($mode:auto) { @if ($mode == crisp-edges) { image-rendering: -moz-crisp-edges; image-rendering: -o-crisp-edges; image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges; } @else { image-rendering: $mode; } }
Make child course lock icons grey
/* * Copyright (C) 2017 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more * details. * * You should have received a copy of the GNU Affero General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ /* lock icon button */ .lock-icon { @include ic-focus-base; display: inline-block; color: $ic-color-icon-disabled; cursor: pointer; &:focus { @include ic-focus-variant; } &.lock-icon-unlocked { color: $ic-color-icon-disabled; } &.lock-icon-locked { color: var(--ic-brand-primary); } &.disabled { cursor: default; } } .lock-text { display: inline; }
/* * Copyright (C) 2017 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more * details. * * You should have received a copy of the GNU Affero General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ /* lock icon button */ .lock-icon { @include ic-focus-base; display: inline-block; color: $ic-color-icon-disabled; cursor: pointer; &:focus { @include ic-focus-variant; } &.lock-icon-unlocked { color: $ic-color-icon-disabled; } &.lock-icon-locked { color: var(--ic-brand-primary); } &.disabled { color: $ic-color-icon-disabled; } &.disabled { cursor: default; } } .lock-text { display: inline; }
Improve result table search input field style
.mb-element-queryBuilder.modal-body { .form-group > button.btn { margin-left: 15px; margin-right: 15px; } [class^="fa-"]:before, [class*=" fa-"]:before { display: inline-block; font: normal normal normal 14px/1 FontAwesome; font-size: inherit; text-rendering: auto; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } > .mapbender-element-result-table { tr[role='row'] > td > div.button-navigation { > button { &.fa-remove { } &:before { font-family: FontAwesome; } } } } } // Pop-up dialogs .ui-dialog { > .queryBuilder-edit { padding: 10px 10px 0px; } > .queryBuilder-results { } }
.mb-element-queryBuilder.modal-body { .form-group > button.btn { margin-left: 15px; margin-right: 15px; } [class^="fa-"]:before, [class*=" fa-"]:before { display: inline-block; font: normal normal normal 14px/1 FontAwesome; font-size: inherit; text-rendering: auto; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } > .mapbender-element-result-table { > .dataTables_wrapper { > .dataTables_filter > label { width: 100%; line-height: 14px; > input[type="search"] { display: block; width: 100%; margin-bottom: 8px; border: 1px solid #c0c0c0; color: #555; font-weight: normal; height: 29px; padding: 2px 24px 2px 7px; line-height: 1.42857143; } } tr[role='row'] > td > div.button-navigation { > button { &.fa-remove { } &:before { font-family: FontAwesome; } } } } } } // Pop-up dialogs .ui-dialog { > .queryBuilder-edit { padding: 10px 10px 0px; } > .queryBuilder-results { } }
Fix header video popping out of it's parent element
/* * Header Video * * Header containing an embedded, full-width video */ .header-video { height: 225px; /* start height */ margin-bottom: $vertical-margin * 2 !important; padding-top: 56.25%; /* slope */ background: darken($grey-50,25%); background-size: cover; -moz-background-size: cover; /* Firefox 3.6 */ background-position: center; /* Internet Explorer 7/8 */ border-bottom: darken($grey-50,25%) 1px solid; line-height: 0; @include breakpoint(large) { padding-top: 40%; } .box-video { position: absolute; top: 0; left: 0; right: 0; bottom: 0; padding: 0; height: auto; margin: 0; } }
/* * Header Video * * Header containing an embedded, full-width video */ .header-video { position: relative; height: 225px; /* start height */ margin-bottom: $vertical-margin * 2 !important; padding-top: 56.25%; /* slope */ background: darken($grey-50,25%); background-size: cover; -moz-background-size: cover; /* Firefox 3.6 */ background-position: center; /* Internet Explorer 7/8 */ border-bottom: darken($grey-50,25%) 1px solid; line-height: 0; @include breakpoint(large) { padding-top: 40%; } .box-video { position: absolute; top: 0; left: 0; right: 0; bottom: 0; padding: 0; height: auto; margin: 0; } }
Add a class to take out unwanted article link hover effects
// ## Customize Variables // This gets loaded after bootstrap/variables is loaded, so you can refer to bootstrap variables @import './common-variables.scss'; @import url(http://fonts.googleapis.com/earlyaccess/notosanstc.css); $red: $harley-davidson-orange; // html default styles html { font-size: $font-size-base; ::selection { background: $light-red; color: $white; } } a:link { color: #101010; text-decoration: none; } a:visited { color: #101010; text-decoration: none; } a:hover { color: #101010; text-decoration: none; } .hidden { display: none !important; } // Container width .container { line-height: $twreporter-line-height; } .inner-max { @media only screen and (min-width: $screen-md-min) { max-width: $article-inner-width; } } .outer-max { @media only screen and (min-width: $screen-md-min) { max-width: $article-outer-width; } }
// ## Customize Variables // This gets loaded after bootstrap/variables is loaded, so you can refer to bootstrap variables @import './common-variables.scss'; @import url(http://fonts.googleapis.com/earlyaccess/notosanstc.css); $red: $harley-davidson-orange; // html default styles html { font-size: $font-size-base; ::selection { background: $light-red; color: $white; } } a:link { color: #101010; text-decoration: none; } a:visited { color: #101010; text-decoration: none; } a:hover { color: #101010; text-decoration: none; } .hidden { display: none !important; } // Container width .container { line-height: $twreporter-line-height; } .inner-max { @media only screen and (min-width: $screen-md-min) { max-width: $article-inner-width; } } .outer-max { @media only screen and (min-width: $screen-md-min) { max-width: $article-outer-width; } } // custom class to hide unwanted link hover effects .no-hover { border-bottom: 0 !important; &:after { display: none; } &:hover:after { width: 0; display: none; } }
Tidy up typography of branding in navbar so it is consistent with login page
@import "bootstrap"; @import "font-awesome"; @import "flat-ui"; body { background-color: #ECF0F1; padding-top: 60px; padding-bottom: 60px; } .navbar-fixed-top > .navbar-inner { background-color: #34495E; background-image: none; } .navbar { .brand, .brand:active, .brand:visited { color: white; text-shadow: none; } } .brand, .brand:active, .brand:visited { color: white; text-decoration: none; text-shadow: none; text-align: center; text-transform: uppercase; font-weight: 300; font-family: serif; } .brand.large { font-size: 400%; margin: 10% auto; }
@import "bootstrap"; @import "font-awesome"; @import "flat-ui"; body { background-color: #ECF0F1; padding-top: 60px; padding-bottom: 60px; } .navbar-fixed-top > .navbar-inner { background-color: #34495E; background-image: none; } .navbar { .brand, .brand:active, .brand:visited { color: white; text-shadow: none; font-weight: normal; font-size: 26px; padding-top: 10px; padding-bottom: 10px; } } .brand, .brand:active, .brand:visited { color: white; text-decoration: none; text-shadow: none; text-align: center; text-transform: uppercase; font-weight: 300; font-family: serif; } .brand.large { font-size: 400%; margin: 10% auto; }
Make removed applications list 100% width
@import "colours"; @import "measurements"; .evidence-check .row { margin-bottom: $gutter; } .evidence-check-letter { border: 1px solid $grey-3; background-color: $grey-4; padding: $gutter-half; } .waiting-for-evidence, .waiting-for-part_payment, table.processed-applications { width: 100%; }
@import "colours"; @import "measurements"; .evidence-check .row { margin-bottom: $gutter; } .evidence-check-letter { border: 1px solid $grey-3; background-color: $grey-4; padding: $gutter-half; } .waiting-for-evidence, .waiting-for-part_payment, table.processed-applications, table.removed-applications { width: 100%; }
Move font-size variables out of the `variables.scss` file
@if $use-typography == true { //------------------------------------ // TYPE //------------------------------------ // Links a { color: $base-link-color; text-decoration: none; &:hover, &:visited { color: lighten($base-link-color, 10%); cursor: pointer; text-decoration: underline; } } p a { line-height: inherit; &:visited { line-height: inherit; } } // Sizing small, .small { @include font-size($small-size); } .micro { @include font-size($micro-size); } // Addresses address { font-style: normal; } // Other elements abbr { &[title], &[data-original-title] { cursor: help; border-bottom: 1px dotted #999; } } acronym { cursor: help; border-bottom: 1px dashed blue; } kbd { background-color: #333; border-radius: 4px; color: #fff; font-size: 90%; padding: 1px 4px; } }
@if $use-typography == true { //------------------------------------ // TYPE //------------------------------------ // Variables $small-size: 12px !default; $micro-size: 10px !default; // Links a { color: $base-link-color; text-decoration: none; &:hover, &:visited { color: lighten($base-link-color, 10%); cursor: pointer; text-decoration: underline; } } p a { line-height: inherit; &:visited { line-height: inherit; } } // Sizing small, .small { @include font-size($small-size); } .micro { @include font-size($micro-size); } // Addresses address { font-style: normal; } // Other elements abbr { &[title], &[data-original-title] { cursor: help; border-bottom: 1px dotted #999; } } acronym { cursor: help; border-bottom: 1px dashed blue; } kbd { background-color: #333; border-radius: 4px; color: #fff; font-size: 90%; padding: 1px 4px; } }
Add print SCSS for govspeak attachments
.govuk-govspeak { .play-container { display: none; } }
.govuk-govspeak { .play-container { display: none; } .attachment { margin: $gutter 0; &:first-child { margin-top: 0; } .attachment-thumb { display: none; } .attachment-details { .download { display: block; } } .accessibility-warning { h2 { @include core-14; } .toggler { display: none; } } } }
Align the baseline of the favorite icon and the list item title
.stop-item { display: block; position: relative; } .stop-item__content { display: block; text-decoration: none; padding: 18px 30px 13px 15px; white-space: nowrap; text-overflow: hidden; border-bottom: 1px solid #eee; } .stop-item__action { display: block; padding: 18px 15px 13px 5px; line-height: 0.8; position: absolute; right: 0; top: 0; cursor: pointer; background-color: white; } .stop-item__toggle-favorite { float: right; color: $bd-light-gray; background-color: #fff; // same height as the stop-item title line-height: 38px; // make the hit area square width: 38px; // align line item favorite icon with search icon in the control bar at the top of the screen margin-right: -$padding; text-align: center; } .stop-item__toggle-favorite.toggle-favorite--favorite { color: $bd-red; }
.stop-item { display: block; position: relative; } .stop-item__content { display: block; text-decoration: none; padding: 18px 30px 13px 15px; white-space: nowrap; text-overflow: hidden; border-bottom: 1px solid #eee; } .stop-item__action { display: block; padding: 18px 15px 13px 5px; line-height: 0.8; position: absolute; right: 0; top: 0; cursor: pointer; background-color: white; } .stop-item__toggle-favorite { float: right; color: $bd-light-gray; background-color: #fff; // same height as the stop-item title line-height: 38px; // make the hit area square width: 38px; // align line item favorite icon with search icon in the control bar at the top of the screen margin-right: -$padding; margin-top: -$padding; text-align: center; } .stop-item__toggle-favorite.toggle-favorite--favorite { color: $bd-red; }
Fix indentation on a scss partial
.log_entry { &.success { background: lighten($color-primary, 15); td h4 { color: darken($body-color, 25); i { color: $color-2; } } } &.fail { background: lighten($color-red, 25); td h4 { color: lighten($body-color, 50); i { color: $color-5; } } } }
.log_entry { &.success { background: lighten($color-primary, 15); td h4 { color: darken($body-color, 25); i { color: $color-primary; } } } &.fail { background: lighten($color-red, 25); td h4 { color: lighten($body-color, 50); i { color: $color-red; } } } }
Fix width of clear dates button
.new-curriculum-inventory-sequence-block { border: 1px solid $header-grey; margin: .5rem; padding: 1rem; .form { @include ilios-form; } .item { @include ilios-form-item; &.last { @include ilios-form-last-item; } } .course { .details { font-size: smaller; } } .description { grid-column: 1 / -1; min-height: 10rem; } .clear-dates { grid-column: 1 / -1; height: 4rem; } .buttons { @include ilios-form-buttons; } .selective { grid-column: 1 / -1; height: 2rem; label { font-style: italic; }; } }
.new-curriculum-inventory-sequence-block { border: 1px solid $header-grey; margin: .5rem; padding: 1rem; .form { @include ilios-form; } .item { @include ilios-form-item; &.last { @include ilios-form-last-item; } } .course { .details { font-size: smaller; } } .description { grid-column: 1 / -1; min-height: 10rem; } .clear-dates { grid-column: 1 / -1; button { max-width: 20rem; } } .buttons { @include ilios-form-buttons; } .selective { grid-column: 1 / -1; height: 2rem; label { font-style: italic; }; } }
Fix JSON text being too long
.syntax { .string { color: #0b7948; } .number { color: #0b7948; } .boolean { color: #0000ff; } .null { color: #0000ff; } .key { color: #003997; } }
.syntax { overflow: auto; .string { color: #0b7948; } .number { color: #0b7948; } .boolean { color: #0000ff; } .null { color: #0000ff; } .key { color: #003997; } }
Increase updated highlight to 2s
// Layout // // Styles for managing the structural hierarchy of the site. .container { max-width: 45rem; padding-left: 1.5rem; padding-right: 1.5rem; margin-left: auto; margin-right: auto; } footer { margin-bottom: 2rem; } .updated { border-radius: 5px; -webkit-animation: fadeIt 1.5s linear; -moz-animation: fadeIt 1.5s linear; -o-animation: fadeIt 1.5s linear; animation: fadeIt 1.5s linear; } @-webkit-keyframes fadeIt { 0% { background-color: #FFFFFF; } 15% { background-color: #ff9; } 100% { background-color: #FFFFFF; } } @-moz-keyframes fadeIt { 0% { background-color: #FFFFFF; } 15% { background-color: #ff9; } 100% { background-color: #FFFFFF; } } @-o-keyframes fadeIt { 0% { background-color: #FFFFFF; } 15% { background-color: #ff9; } 100% { background-color: #FFFFFF; } } @keyframes fadeIt { 0% { background-color: #FFFFFF; } 15% { background-color: #ff9; } 100% { background-color: #FFFFFF; } }
// Layout // // Styles for managing the structural hierarchy of the site. .container { max-width: 45rem; padding-left: 1.5rem; padding-right: 1.5rem; margin-left: auto; margin-right: auto; } footer { margin-bottom: 2rem; } .updated { border-radius: 5px; -webkit-animation: fadeIt 2s linear; -moz-animation: fadeIt 2s linear; -o-animation: fadeIt 2s linear; animation: fadeIt 2s linear; } @-webkit-keyframes fadeIt { 0% { background-color: #FFFFFF; } 15% { background-color: #ff9; } 100% { background-color: #FFFFFF; } } @-moz-keyframes fadeIt { 0% { background-color: #FFFFFF; } 15% { background-color: #ff9; } 100% { background-color: #FFFFFF; } } @-o-keyframes fadeIt { 0% { background-color: #FFFFFF; } 15% { background-color: #ff9; } 100% { background-color: #FFFFFF; } } @keyframes fadeIt { 0% { background-color: #FFFFFF; } 15% { background-color: #ff9; } 100% { background-color: #FFFFFF; } }
Add import for variables (and theme)
// default-view :host { height: 100%; display: block; margin: 0; }
@import '../assets/styles/variables.scss'; :host { height: 100%; display: block; margin: 0; }
Update custom navbar to include cursor with link and header.
gelato-navbar { background-color: #080808; color: #ffffff; display: block; height: 50px; width: 100%; z-index: 7000; &.fixed-bottom { bottom: 0; left: 0; position: fixed; } &.fixed-top { left: 0; position: fixed; top: 0; } .item { float: left; &.item-button { font-size: 16px; font-weight: 400; padding: 7px; } &.item-header { font-size: 24px; font-weight: 700; margin-right: 10px; padding: 8px; } &.item-icon { font-size: 28px; font-weight: 400; padding: 11px; } &.item-select { font-size: 16px; font-weight: 400; padding: 14px 7px; } &.item-text { font-size: 16px; font-weight: 400; padding: 14px 7px; } } .left { float: left; } .right { float: right; } }
gelato-navbar { background-color: #080808; color: #ffffff; display: block; height: 50px; width: 100%; z-index: 7000; &.fixed-bottom { bottom: 0; left: 0; position: fixed; } &.fixed-top { left: 0; position: fixed; top: 0; } .item { float: left; &.item-button { font-size: 16px; font-weight: 400; padding: 7px; } &.item-header { cursor: pointer; font-size: 28px; font-weight: 700; margin-right: 10px; padding: 5px 10px; } &.item-icon { font-size: 28px; font-weight: 400; padding: 11px; } &.item-link { cursor: pointer; font-size: 18px; font-weight: 400; padding: 12.5px 7px; } &.item-select { font-size: 16px; font-weight: 400; padding: 14px 7px; } &.item-text { font-size: 18px; font-weight: 400; padding: 12.5px 7px; } } .left { float: left; } .right { float: right; } }
Remove pre-ui styling, its already included with mapbox, add styling for position for menu
#map { width: 100%; position:absolute; top:0; bottom:0; } /*fix zoom bar distortion problem*/ #map *, #map *:before, #map *:after { -moz-box-sizing: content-box!important; -webkit-box-sizing: content-box!important; box-sizing: content-box!important; } #map img { max-width: none; } #map label { width: auto; display: inline; } .search-form { position:fixed; z-index:1; right:10px; top:10px } pre.ui-output { display:block; position:absolute; bottom:10px; left:10px; padding:5px 10px; background:rgba(0,0,0,0.5); color:#fff; font-size:11px; line-height:18px; border-radius:3px; max-height:50%; max-width:25%; overflow:auto; word-wrap: break-word; white-space:pre-wrap; } pre.ui-output:empty { padding:0; } .filter-ui { background:#fff; position:absolute; top:10px; right:10px; z-index:100; padding:10px; border-radius:3px; }
#map { width: 100%; position:absolute; top:0; bottom:0; } /*fix zoom bar distortion problem*/ #map *, #map *:before, #map *:after { -moz-box-sizing: content-box!important; -webkit-box-sizing: content-box!important; box-sizing: content-box!important; } #map img { max-width: none; } #map label { width: auto; display: inline; } .search-form { position:fixed; z-index:1; right:10px; top:10px } .filter-ui { background:#fff; position:absolute; top:10px; right:10px; z-index:100; padding:10px; border-radius:3px; } #menu { left: 20px; }
Use normal font-weight for headers
/*------------------------------------*\ #TYPE \*------------------------------------*/ h1, h2, h3, h4, h5, h6 { font-family: $sans-font-stack; color: $header-color; display: inline-block; }
/*------------------------------------*\ #TYPE \*------------------------------------*/ h1, h2, h3, h4, h5, h6 { font-family: $sans-font-stack; font-weight: normal; color: $header-color; display: inline-block; }
Tweak positioning for the callout
.callout { padding: $bl*3; margin: $bl*3 0; width: 100%; float: right; border-radius: 10px; color: $color-green-tertiary; background-color: $color-callout-background; @include respond-to($mq-l) { margin: $bl*3; max-width: 38%; } > h3 { margin-bottom: $bl*3; } > p { @extend %text-callout; margin-top: 0; } }
.callout { padding: $bl*3; margin: $bl*3 0; width: 100%; float: right; border-radius: 10px; color: $color-green-tertiary; background-color: $color-callout-background; @include respond-to($mq-l) { margin: 0 $bl*3 $bl*3 $bl*3; max-width: 38%; } > h3 { margin-bottom: $bl*3; } > p { @extend %text-callout; margin-top: 0; } }
Mark relation on hover in docview
/** * @author: Thomas Kleinke */ fields-view, georeference-view, depicts-relations-view { .card { background-color: transparent !important; .card-header { padding: 0; background-color: rgba(0, 0, 0, 0.07); .btn { text-align: left; font-size: 14px; } } .card-body { padding: 10px 0 0 0; .field { margin-bottom: 10px; .field-label, .field-value { padding-left: $item-horizontal-padding; } .field-label { font-weight: normal; font-size: $font-size-smaller; color: gray; margin-bottom: 4px; } .field-value { padding-right: $item-horizontal-padding; font-size: $font-size-bigger; color: black; } .field-value.relation-value:hover { cursor: default; } ul { padding: 0; margin-bottom: 0; } } } } }
/** * @author: Thomas Kleinke */ fields-view, georeference-view, depicts-relations-view { .card { background-color: transparent !important; .card-header { padding: 0; background-color: rgba(0, 0, 0, 0.07); .btn { text-align: left; font-size: 14px; } } .card-body { padding: 10px 0 0 0; .field { margin-bottom: 10px; .field-label, .field-value { padding-left: $item-horizontal-padding; } .field-label { font-weight: normal; font-size: $font-size-smaller; color: gray; margin-bottom: 4px; } .field-value { padding-right: $item-horizontal-padding; font-size: $font-size-bigger; color: black; } .field-value.relation-value:hover { cursor: default; background-color: darken($list-item-hover-color, 5%); transition: background-color .65s ease; } ul { padding: 0; margin-bottom: 0; } } } } }
Swap body and container background colours
// Place all the styles related to the posts controller here. // They will automatically be included in application.css. // You can use Sass (SCSS) here: http://sass-lang.com/ #container { width: 800px; margin-left: auto; margin-right: auto; background-color: #f4f4f4; } .post { padding: 20px; margin-bottom: 10px; }
// Place all the styles related to the posts controller here. // They will automatically be included in application.css. // You can use Sass (SCSS) here: http://sass-lang.com/ body { background-color: #f4f4f4; } #container { width: 800px; margin-left: auto; margin-right: auto; background-color: white; } .post { padding: 20px; margin-bottom: 10px; }
Add params to pseudo element helper
/** * Note IE7/6 doesn't understand pseudo element as ::before and ::after * IE8 need to have :before and not ::before * So use only : and not :: if you want to support IE8 * IE9 Webkit Firefox Opera understand :: */ @mixin pseudo-element { content: ""; position:absolute; display:block; width: 0; // for ff3 positionning }
/** * Note IE7/6 doesn't understand pseudo element as ::before and ::after * IE8 need to have :before and not ::before * So use only : and not :: if you want to support IE8 * IE9 Webkit Firefox Opera understand :: */ @mixin pseudo-element($width: 0, $height: auto, $content: "") { content: $content; position: absolute; display: block; width: $width; // default 0 is for ff3 positionning @if ($height != auto) { height: $height; } }
Add bottom margin to answerslist component
.answers-list { text-align: left; svg { float: right; } }
.answers-list { text-align: left; margin-bottom: 100px; svg { float: right; } }
Remove left margin on filter-by-boundary btn
.filter-by-boundary { button { @extend .filter-options-button; margin-left: $margin-10; } }
.filter-by-boundary { button { @extend .filter-options-button; } }
Add explanations for things in global file
a { color: inherit; text-decoration: none; } input::placeholder, textarea::placeholder { opacity: 1; }
// Set default links to not have underlines since most cases this is what we want a { color: inherit; text-decoration: none; } // Tailwind preflight sets this to .5 which isn't ADA compliant input::placeholder, textarea::placeholder { opacity: 1; }
Remove border-right from last menu item
.site-header { margin: 0; padding: 4rem 0; } .page-header { margin: 0 -25% 3rem -25%; background-color: #f2f2f2; padding: 5rem 25%; h1 { font-size: 7rem; margin-bottom: 0; } p { margin-bottom: 0; } } .blog-title { font-family: $logo-font; font-size: 3rem; } .blog-menu { float: right; padding: 0; font-family: $menu-font; a { border-right: 1px solid #f2f2f2; padding: 0 2rem; } } .post-meta { margin-bottom: 0; color: #7a7a7a; } ul.post-list { list-style-type: none; li { border-bottom: thin solid #f3f3f3; padding: 3rem 0; margin-bottom: 3rem; } }
.site-header { margin: 0; padding: 4rem 0; } .page-header { margin: 0 -25% 3rem -25%; background-color: #f2f2f2; padding: 5rem 25%; h1 { font-size: 7rem; margin-bottom: 0; } p { margin-bottom: 0; } } .blog-title { font-family: $logo-font; font-size: 3rem; } .blog-menu { float: right; padding: 0; font-family: $menu-font; a { border-right: 1px solid #f2f2f2; padding: 0 2rem; &:last-child { border-right: 0; } } } .post-meta { margin-bottom: 0; color: #7a7a7a; } ul.post-list { list-style-type: none; li { border-bottom: thin solid #f3f3f3; padding: 3rem 0; margin-bottom: 3rem; } }
Apply width to video tag in css
/* Custom Stylings and Overrides ------------------------------------------------------------------- */ /* Alerts */ .alert-box { text-shadow: none !important; } .alert-box a { text-shadow: none !important; } .alert-box a:hover { border-bottom: 1px solid #fff; } // Container of scroll to top arrow #up-to-top { padding: 60px 0 10px 0 !important; } // MailChimp Form #mc_embed_signup { background-color: #fdfdfd !important; form { padding: 0 !important; } h2 { font-size: 1.953em !important; } .mc-field-group { padding-bottom: 0 !important; label { display: none !important; } input { text-indent: 1% !important; font-family: Lato; } } } // countdown .counter { padding: 4%; background-color: black; color: orange; text-align: center; h2 { color: white; font-size: 2em; font-family: Lato; } p { margin-bottom: 0 !important; } #countdown { font-size: 30px; font-weight: bold; } }
/* Custom Stylings and Overrides ------------------------------------------------------------------- */ /* Alerts */ .alert-box { text-shadow: none !important; } .alert-box a { text-shadow: none !important; } .alert-box a:hover { border-bottom: 1px solid #fff; } // Container of scroll to top arrow #up-to-top { padding: 60px 0 10px 0 !important; } // MailChimp Form #mc_embed_signup { background-color: #fdfdfd !important; form { padding: 0 !important; } h2 { font-size: 1.953em !important; } .mc-field-group { padding-bottom: 0 !important; label { display: none !important; } input { text-indent: 1% !important; font-family: Lato; } } } // countdown .counter { padding: 4%; background-color: black; color: orange; text-align: center; h2 { color: white; font-size: 2em; font-family: Lato; } p { margin-bottom: 0 !important; } #countdown { font-size: 30px; font-weight: bold; } } // Video .video-wrapper video { width: 970px; }
Change body font size to be more legible
html{ height: 100%; } body { font-family: Corbel, "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", "DejaVu Sans", "Bitstream Vera Sans", "Liberation Sans", Verdana, "Verdana Ref", sans-serif; font-size: 16px; border: 8px solid rgba(125, 222, 255, 0.5); min-height: 100%; @media only screen and (max-width: 500px) { border: 4px solid rgba(125, 222, 255, 0.5); } } a:link { border-bottom: 1px black dotted; text-decoration: none; } a:hover{ text-decoration: none; } a:visited { color: #337ab7; text-decoration: none; }
html{ height: 100%; } body { font-family: Corbel, "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", "DejaVu Sans", "Bitstream Vera Sans", "Liberation Sans", Verdana, "Verdana Ref", sans-serif; font-size: 1.75em; border: 8px solid rgba(125, 222, 255, 0.5); min-height: 100%; @media only screen and (max-width: 500px) { border: 4px solid rgba(125, 222, 255, 0.5); } } a:link { border-bottom: 1px black dotted; text-decoration: none; } a:hover{ text-decoration: none; } a:visited { color: #337ab7; text-decoration: none; }
Fix z-index of settings page
@import "../../style/colors.scss"; .Settings-container { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.5); display: flex; justify-content: center; align-items: center; overflow-y: scroll; } .Settings-box { font-size: 1.2em; background: white; margin: 10vh 0; width: 80vw; border-radius: 3px; & > * { margin: 1em 10vw; &:first-child { margin-top: 10vh; } &:last-child { margin-bottom: 10vh; } } } @mixin Settings-notification { font-weight: bold; } .Settings-notification-enabled { @include Settings-notification; color: $green; } .Settings-notification-disabled { @include Settings-notification; color: $grey; }
@import "../../style/colors.scss"; .Settings-container { position: fixed; top: 0; left: 0; z-index: 100; width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.5); display: flex; justify-content: center; align-items: center; overflow-y: scroll; } .Settings-box { font-size: 1.2em; background: white; margin: 10vh 0; width: 80vw; border-radius: 3px; & > * { margin: 1em 10vw; &:first-child { margin-top: 10vh; } &:last-child { margin-bottom: 10vh; } } } @mixin Settings-notification { font-weight: bold; } .Settings-notification-enabled { @include Settings-notification; color: $green; } .Settings-notification-disabled { @include Settings-notification; color: $grey; }
Make exhibition exhibited list display block
.exhibition-info { margin-top: 30px; padding: 0 $site-pad-hor; @include media-md {padding: 0 $site-pad-hor-md;} margin-top: 30px; overflow: hidden; .description, .additional { float: left; width: 100%; @include media-md { width: 50%; } } .description { padding: 0; margin-bottom: 20px; @include media-md { margin-bottom: 50px; padding-right: 50px; } } .additional { @extend %small-caps; @extend %gray-text; margin-bottom: 70px; .exhibited { .exhibition-exhibit-list { @include min-screen(1000px) { columns: 2; } @extend %delistify; .exhibit{ display: inline-block; } } } .catalogue { margin-top: 40px; } } }
.exhibition-info { margin-top: 30px; padding: 0 $site-pad-hor; @include media-md {padding: 0 $site-pad-hor-md;} margin-top: 30px; overflow: hidden; .description, .additional { float: left; width: 100%; @include media-md { width: 50%; } } .description { padding: 0; margin-bottom: 20px; @include media-md { margin-bottom: 50px; padding-right: 50px; } } .additional { @extend %small-caps; @extend %gray-text; margin-bottom: 70px; .exhibited { .exhibition-exhibit-list { @include min-screen(1000px) { columns: 2; } @extend %delistify; .exhibit{ display: block; } } } .catalogue { margin-top: 40px; } } }
Add default height to editors
// Editor state // // Styleguide Editor .editor { display: none; &.is-active { @extend %is-active; } } .editor__toolbar { @extend %editor-bar; } .editor__content { }
// Editor state // // Styleguide Editor .editor { display: none; &.is-active { @extend %is-active; } } .editor__content { } .editor--markdown { min-height: 500px; } .editor--html { .editor__content { min-height: 500px; } }
Enable to custom triangle shape
@mixin triangle ($size, $color, $direction) { height: 0; width: 0; @if ($direction == up) or ($direction == down) or ($direction == right) or ($direction == left) { border-color: transparent; border-style: solid; border-width: $size / 2; @if $direction == up { border-bottom-color: $color; } @else if $direction == right { border-left-color: $color; } @else if $direction == down { border-top-color: $color; } @else if $direction == left { border-right-color: $color; } } @else if ($direction == up-right) or ($direction == up-left) { border-top: $size solid $color; @if $direction == up-right { border-left: $size solid transparent; } @else if $direction == up-left { border-right: $size solid transparent; } } @else if ($direction == down-right) or ($direction == down-left) { border-bottom: $size solid $color; @if $direction == down-right { border-left: $size solid transparent; } @else if $direction == down-left { border-right: $size solid transparent; } } }
@mixin triangle ($width, $height, $color, $direction: '') { @if $direction == '' { $direction: $color; $color: $height; $height: $width; } $width: $width / 2; height: 0; width: 0; @if ($direction == up) or ($direction == down) or ($direction == right) or ($direction == left) { @if $direction == up { border-left: $width solid transparent; border-right: $width solid transparent; border-bottom: $height solid $color; } @else if $direction == right { border-top: $width solid transparent; border-bottom: $width solid transparent; border-left: $height solid $color; } @else if $direction == down { border-left: $width solid transparent; border-right: $width solid transparent; border-top: $height solid $color; } @else if $direction == left { border-top: $width solid transparent; border-bottom: $width solid transparent; border-right: $height solid $color; } } @else if ($direction == up-right) or ($direction == up-left) { border-top: $width solid $color; @if $direction == up-right { border-left: $width solid transparent; } @else if $direction == up-left { border-right: $width solid transparent; } } @else if ($direction == down-right) or ($direction == down-left) { border-bottom: $width solid $color; @if $direction == down-right { border-left: $width solid transparent; } @else if $direction == down-left { border-right: $width solid transparent; } } }
Update for responsive images scaling
.image { display: block; max-width: 100%; } img { @extend .image; }
.image { display: block; max-width: 100%; img { width: 100%; } } img { @extend .image; }
Update to correct label disabled color
// Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. // // Office UI Fabric // -------------------------------------------------- // Form field label styles @mixin ms-Label-is-disabled { color: $ms-color-neutralPrimary; } @mixin ms-Label-is-required { &:after { content: ' *'; color: $ms-color-error; } } .ms-Label { @include ms-font-s; @include ms-u-normalize; box-sizing: border-box; display: block; padding: 5px 0; &.is-required { @include ms-Label-is-required; } &.is-disabled { @include ms-Label-is-disabled; } }
// Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. // // Office UI Fabric // -------------------------------------------------- // Form field label styles @mixin ms-Label-is-disabled { color: $ms-color-neutralTertiary; } @mixin ms-Label-is-required { &:after { content: ' *'; color: $ms-color-error; } } .ms-Label { @include ms-font-s; @include ms-u-normalize; box-sizing: border-box; display: block; padding: 5px 0; &.is-required { @include ms-Label-is-required; } &.is-disabled { @include ms-Label-is-disabled; } }
Add css styles for admin panel
// SASS variable overrides must be declared before loading up Active Admin's styles. // // To view the variables that Active Admin provides, take a look at // `app/assets/stylesheets/active_admin/mixins/_variables.scss` in the // Active Admin source. // // For example, to change the sidebar width: // $sidebar-width: 242px; // Active Admin's got SASS! @import "active_admin/mixins"; @import "active_admin/base"; // Overriding any non-variable SASS must be done after the fact. // For example, to change the default status-tag color: // // .status_tag { background: #6090DB; } .pagination_information { display: none; }
// SASS variable overrides must be declared before loading up Active Admin's styles. // // To view the variables that Active Admin provides, take a look at // `app/assets/stylesheets/active_admin/mixins/_variables.scss` in the // Active Admin source. // // For example, to change the sidebar width: // $sidebar-width: 242px; // Active Admin's got SASS! @import "active_admin/mixins"; @import "active_admin/base"; // Overriding any non-variable SASS must be done after the fact. // For example, to change the default status-tag color: // // .status_tag { background: #6090DB; } .pagination_information { display: none; } .form_inline { display: inline-block; } .align-right { float: right; } .forms-container { margin: { top: 10px; bottom: 10px; } } .importer-button { margin-top: 20px; }
Fix a SASS compilation error after upgrading node-sass
.list-view { .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; color: $ui-content; } &__unit-name { line-height: 1; padding-bottom: 3px; } &:hover { background: $list-view-item-hover; text-decoration: none; } } } &-popup { &__content { } }
.list-view { .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; color: $ui-content; } &__unit-name { line-height: 1; padding-bottom: 3px; } &:hover { background: $list-view-item-hover; text-decoration: none; } } }
Cut word spacing to 0.25px margin
div.passage { background-color: $white; margin-left: 30px; margin-top: 30px; @include span-columns(10); @include omega(); input[type="text"] { outline: none; border: none; width: auto; float: left; box-shadow: none; margin: 1.5px; padding: 0; font-family: 'courier new'; &.focused, &.changed { font-weight: bold; } &.incorrectError { background-color: $incorrectErrorColor; } &.notNecessaryError { background-color: $notNecessaryErrorColor; } &.correct { background-color: $correctColor; } &.underlined { border-bottom: 1px solid $underlinedColor !important; } } .error-tooltip-item { @extend .tooltip-item; border: none; display: inline-block; padding: none; } .error-tooltip { @extend .tooltip; height: 259px; width: 341px; } }
div.passage { background-color: $white; margin-left: 30px; margin-top: 30px; @include span-columns(10); @include omega(); input[type="text"] { outline: none; border: none; width: auto; float: left; box-shadow: none; margin: 0.25px; padding: 0; font-family: 'courier new'; &.focused, &.changed { font-weight: bold; } &.incorrectError { background-color: $incorrectErrorColor; } &.notNecessaryError { background-color: $notNecessaryErrorColor; } &.correct { background-color: $correctColor; } &.underlined { border-bottom: 1px solid $underlinedColor !important; } } .error-tooltip-item { @extend .tooltip-item; border: none; display: inline-block; padding: none; } .error-tooltip { @extend .tooltip; height: 259px; width: 341px; } }
Add dashboard form in RegisterPage
@import '../../../styles/color-variables'; .bg-reboo { background-image: url('../assets/bg-login.png'); color: $darkGray; font-family: SourceSansPro; h1 { font-weight: 300; font-size: 36px; line-height: 1.25; text-align: center; color: white; } form { .form-group { padding: 10px; padding: 10px 20px; background-color: white; border-bottom: 1px solid #eee; } .flex { .form-group:not(:last-child) { border-right: 1px solid #eee; } } .control-label { display: block; font-weight: 600; font-size: 12px; color: #aaa; } .form-control { display: block; width: 100%; border: none; height: 20px; } } }
@import '../../../styles/color-variables'; .bg-reboo { background-image: url('../assets/bg-login.png'); color: $darkGray; h1 { font-weight: 300; font-size: 36px; line-height: 1.25; text-align: center; color: white; } form { background-color: white; .form-group { padding: 10px; padding: 10px 20px; border-bottom: 1px solid #eee!important; } .flex { .form-group:not(:last-child) { border-right: 1px solid #eee; } } .control-label { display: block; font-weight: 600; font-size: 12px; color: #aaa; } .form-control { display: block; width: 100%; border: none; height: 20px; } } }
Set a fallback max-width for the site in pixels
.content { background-color: $content-background-color; padding-top: 2em; padding-bottom: 2em; } .container { @include grid-row(); padding-left: $column-gutter / 2; padding-right: $column-gutter / 2; } .button, input[type="submit"].button { @extend .radius; } .code-sample { margin: 1em; } .help-api p { margin-top: 0.6em } .aka-note { font-size: 80% } pre { font-family: $code-font-family; }
.content { background-color: $content-background-color; padding-top: 2em; padding-bottom: 2em; } .container { max-width: 960px; // for browsers that don't understand rems @include grid-row(); padding-left: $column-gutter / 2; padding-right: $column-gutter / 2; } .button, input[type="submit"].button { @extend .radius; } .code-sample { margin: 1em; } .help-api p { margin-top: 0.6em } .aka-note { font-size: 80% } pre { font-family: $code-font-family; }
Fix session details backgrounds and borders
$session-background-color: #effbff; .session-details { background-color: $session-background-color; border-color: $header-grey; border-style: solid; border-top: 0; border-width: 0 2px 2px; font-size: $base-font-size; .detail-objectives, .detail-learningmaterials, .detail-taxonomies, .detail-mesh { @include detail-container($text-blue); } .collapse-objectives, .collapse-taxonomies { @include collapsed-container($text-blue); } table thead { background-color: $text-blue; color: $white; } }
$session-background-color: $active-background-color; .session-details { background-color: $session-background-color; border-color: $header-grey; border-style: solid; border-top: 0; border-width: 0 2px 2px; font-size: $base-font-size; .detail-learnergroups, .detail-instructors, .detail-objectives, .detail-learningmaterials, .detail-taxonomies, .detail-mesh, .collapsed-objectives, .collapsed-taxonomies, .collapsed-learnergroups, .session-offerings { background-color: $session-background-color; border-bottom: 1px dotted $text-blue; } table thead { background-color: $text-blue; color: $white; } }
Fix progress bar background transparency on non webkit
#loading-bar { height: 3px; position: fixed; top: 0; z-index: 1000; &::-webkit-progress-bar { background-color: transparent; } }
#loading-bar { height: 3px; position: fixed; top: 0; z-index: 1000; background: transparent; &::-webkit-progress-bar { background-color: transparent; } }
Make "load more" more visually salient
.vl-plot-group-list-container { margin-bottom: 20px; } .vis-list-header { padding-top: 6px; background-color: transparent; .description { font-size: 16px; font-weight: bold; } .explanation { color: #333; } .field-info { margin-top: -6px; } } .vis-list { align-content: flex-start; }
.vl-plot-group-list-container { margin-bottom: 20px; .vis-list-more { background: hsl(216,42%,92%); } } .vis-list-header { padding-top: 6px; background-color: transparent; .description { font-size: 16px; font-weight: bold; } .explanation { color: #333; } .field-info { margin-top: -6px; } } .vis-list { align-content: flex-start; }
Make buttons a little more palatable.
* { box-sizing: border-box; } body { font-family: sans-serif; } label { display: block; margin: 0 0 1rem 0; font-weight: normal; } input[type="text"], textarea { display: block; padding: 1rem; width: 20rem; font-size: 1rem; border: 1px solid #ccc; border-radius: 2px; } textarea { height: 10rem; } button { padding: 1rem 2rem; background: #3498db; border: none; border-radius: 2px; color: #fff; font-size: 1rem; } body > nav > ul { list-style-type: none; margin: 0 0 2rem 0; padding: 0; li { display: inline-block; &:after { content: "›"; margin-left: 0.5rem; } &:last-child:after { content: none; } } }
* { box-sizing: border-box; } body { font-family: sans-serif; } label { display: block; margin: 0 0 1rem 0; font-weight: normal; } input[type="text"], input[type="file"], textarea { display: block; padding: 1rem; width: 20rem; font-size: 1rem; border: 1px solid #ccc; border-radius: 2px; } textarea { height: 10rem; } button { display: inline-block; padding: 0.5rem 1rem; background: #3498db; border: none; border-radius: 2px; color: #fff; font-size: 1rem; } body > nav > ul { list-style-type: none; margin: 0 0 2rem 0; padding: 0; li { display: inline-block; &:after { content: "›"; margin-left: 0.5rem; } &:last-child:after { content: none; } } } ul form { display: inline-block; button { padding: 0.25rem 0.5rem; font-size: 0.8rem; } }
Remove parent selector to get sass building
.list--naked { list-style-type: none; } .list--naked li.is-active { background-color: color(primary); border-radius: $border-radius; margin-left: -5px; padding-left: 5px; &, & > a { color: color(primary, alt); text-decoration: none; } & > a:focus { color: color(text); } } .list--inline { li { display: inline-block; } } .list--timeline { border-left: 2px solid color(border); list-style: none; li { margin-bottom: 1em; padding-left: 15px; position: relative; } li::before { background-color: color(background); border: 2px solid color(border); border-radius: 50px; content: ''; display: block; left: -8px; position: absolute; top: 4px; height: 10px; width: 10px; } a { text-decoration: none; } .active { font-family: $font-family-regular; &::before { border-color: color(primary); } } }
.list--naked { list-style-type: none; } .list--naked li.is-active { background-color: color(primary); border-radius: $border-radius; margin-left: -5px; padding-left: 5px; &, > a { color: color(primary, alt); text-decoration: none; } > a:focus { color: color(text); } } .list--inline { li { display: inline-block; } } .list--timeline { border-left: 2px solid color(border); list-style: none; li { margin-bottom: 1em; padding-left: 15px; position: relative; } li::before { background-color: color(background); border: 2px solid color(border); border-radius: 50px; content: ''; display: block; left: -8px; position: absolute; top: 4px; height: 10px; width: 10px; } a { text-decoration: none; } .active { font-family: $font-family-regular; &::before { border-color: color(primary); } } }
Add margin to sides of score tile
.game-card { padding: 0px; .card-content { min-height: 100px; padding: 0px 15px; display: flex; flex-direction: column; .game-teams { display: flex; justify-content: space-between; align-items: center; flex-grow: 1; .team-name { width: 50px; flex-grow: 1; } } } } .card-score { display: flex; justify-content: space-around; align-items: center; margin: 10px; .score { font-family: score-board; text-align: center; font-size: 50px; width: 80px; color: yellow; text-shadow: 0 0 1px; background-color: #310e00; padding-left: 3px; border-radius: 5px; box-shadow: 0px 3px 5px black; } }
.game-card { padding: 0px; .card-content { min-height: 100px; padding: 0px 15px; display: flex; flex-direction: column; .game-teams { display: flex; justify-content: space-between; align-items: center; flex-grow: 1; .team-name { width: 50px; flex-grow: 1; } } } } .card-score { display: flex; justify-content: space-around; align-items: center; margin: 10px; .score { font-family: score-board; text-align: center; font-size: 50px; width: 80px; color: yellow; text-shadow: 0 0 1px; background-color: #310e00; padding-left: 3px; border-radius: 5px; box-shadow: 0px 3px 5px black; margin: 0px 15px; } }
Fix button component focus style
@import '../variables'; .pwa-button { background-color: $color-complementary; border-radius: .5rem; color: $color-foreground-brighter; display: inline-block; font-family: 'Bitter'; font-size: $font-size-l; text-align: center; transition: all $animation-speed-fast $animation-ease-vibrant; padding: .75rem 3rem; position: relative; &:before { background: $color-complementary-dark; border-radius: .5rem; content: ''; height: 100%; left: 0; position: absolute; top: 0; transition: all $animation-speed-fast $animation-ease-vibrant; width: 100%; z-index: -1; } &:hover { color: $color-complementary-brighter; padding: .75rem 2.2rem; transition: all $animation-speed-fast $animation-ease-vibrant; &:before { $size: 10%; height: 100% + $size; left: -$size / 4; position: absolute; top: -$size / 2; transition: all $animation-speed-fast $animation-ease-vibrant; width: 100% + $size / 2; } } &--spaced { font-size: $font-size-m; } }
@import '../variables'; .pwa-button { background-color: $color-complementary; border-radius: .5rem; color: $color-foreground-brighter; display: inline-block; font-family: 'Bitter'; font-size: $font-size-l; text-align: center; transition: all $animation-speed-fast $animation-ease-vibrant; padding: .75rem 3rem; position: relative; &:hover { color: $color-complementary-brighter; padding: .75rem 2.2rem; transition: all $animation-speed-fast $animation-ease-vibrant; } &:focus { outline: 0; } &--spaced { font-size: $font-size-m; } }
Make slickgrid style changes more general
#instructor-dashboard-content { #extensions { .slickgrid { .slick-header-column.ui-state-default, .slick-row > .slick-cell { height: 30px; padding: 5px; } } } }
#instructor-dashboard-content { .slickgrid { .slick-header-column.ui-state-default, .slick-row > .slick-cell { height: 30px; padding: 5px; } } }
Add aspect ratio css for iframe embeds
.target-primary:target { @extend .border-success; } .small { color: #666; font-size:0.8em; } .small a { text-decoration: none; color: #666; } .small a:hover { text-decoration: underline; color: #666; } .highlight { background: #FFFC78; } .top-buffer { margin-top:20px; } .time-small { color: #666; font-size:0.8em; } [v-cloak] { display: none; } .hidden-text { display: none; } input.copyinput { cursor: text; background-color: #fff; } .select2-container { min-width: 100px; }
.target-primary:target { @extend .border-success; } .small { color: #666; font-size:0.8em; } .small a { text-decoration: none; color: #666; } .small a:hover { text-decoration: underline; color: #666; } .highlight { background: #FFFC78; } .top-buffer { margin-top:20px; } .time-small { color: #666; font-size:0.8em; } [v-cloak] { display: none; } .hidden-text { display: none; } input.copyinput { cursor: text; background-color: #fff; } .select2-container { min-width: 100px; } .aspect-ratio { position: relative; width: 100%; height: 0; } /* Adjust the iframe so it's rendered in the outer-width and outer-height of it's parent */ .aspect-ratio iframe { position: absolute; width: 100%; height: 100%; left: 0; top: 0; } .aspect-ratio-16x9 { padding-bottom: 56.25%; } .aspect-ratio-4x3 { padding-bottom: 75%; }
Remove typ-font-family variable from settings.
// ----------------------------------------------------------------------------- // Setttings // ----------------------------------------------------------------------------- // Variables namespaced with an `_` to avoid naming collisions with personal // application/site. // Colors // ----------------------------------------------------------------------------- // Grays $_gray-darker: #222 !default; $_gray-dark: #333 !default; $_gray: #555 !default; $_gray-light: #999 !default; $_gray-lighter: #eee !default; // Theme colors $_theme-danger: #e74c3c !default; $_theme-guide: #3498db !default; $_theme-success: #2ecc71 !default; $_theme-warning: #fac75b !default; // Typography // ----------------------------------------------------------------------------- $_type-font-family: "Helvetica Neue", Helvetica, sans-serif !default; $_type-font-size: 16px !default; $_type-line-height: 1.5em !default; // Scaffolding // ----------------------------------------------------------------------------- $_base-spacing: $_type-line-height !default; $_base-padding: $_type-line-height / 2 !default; // Text // ----------------------------------------------------------------------------- // Sizing variables $_txt-small: $_type-font-size - 4 !default; $_txt-medium: $_type-font-size - 2 !default; $_txt-large: $_type-font-size + 4 !default;
// ----------------------------------------------------------------------------- // Setttings // ----------------------------------------------------------------------------- // Variables namespaced with an `_` to avoid naming collisions with personal // application/site. // Colors // ----------------------------------------------------------------------------- // Grays $_gray-darker: #222 !default; $_gray-dark: #333 !default; $_gray: #555 !default; $_gray-light: #999 !default; $_gray-lighter: #eee !default; // Theme colors $_theme-danger: #e74c3c !default; $_theme-guide: #3498db !default; $_theme-success: #2ecc71 !default; $_theme-warning: #fac75b !default; // Typography // ----------------------------------------------------------------------------- $_type-font-size: 16px !default; $_type-line-height: 1.5em !default; // Scaffolding // ----------------------------------------------------------------------------- $_base-spacing: $_type-line-height !default; $_base-padding: $_type-line-height / 2 !default; // Text // ----------------------------------------------------------------------------- // Sizing variables $_txt-small: $_type-font-size - 4 !default; $_txt-medium: $_type-font-size - 2 !default; $_txt-large: $_type-font-size + 4 !default;
Use constants spacing, add in more defaults for buttons
@import './constants.css.scss'; body { background-color: hsl(210, 100%, 98%); padding-top: 64px; font-family: 'graphik-regular'; color: $grey0; } button { border-radius: 4px; transition-duration: 0.1s; } p { font-family: 'graphik-light'; }
@import './constants.css.scss'; body { background-color: hsl(210, 100%, 98%); padding-top: $space7; font-family: 'graphik-regular'; color: $grey0; } button { padding: $space1; text-align: center; vertical-align: center; border-radius: $space0; transition-duration: 0.1s; } p { font-family: 'graphik-light'; }
Increase blur 3x for images.
/* * Configuration Options */ @import "../../config/variables"; body:not(.swg--is-amp) article:not(.swg--page-is-unlocked) .swg--locked-content { opacity: 0; user-select: none; } @supports (filter: blur(4px)) { body:not(.swg--is-amp) article .swg--locked-content { transition: filter 0.6s; } body:not(.swg--is-amp) article:not(.swg--page-is-unlocked) .swg--locked-content { animation: fadeIn 0.3s ease-in forwards; display: block; filter: blur(4px); transition: filter 0s; } } button.swg-button { background-color: $c-white !important; } button.swg-button:hover { background-color: $c-alabaster !important; } @keyframes fadeIn { from { opacity: 0; } to { opacity: 0.8; } }
/* * Configuration Options */ @import "../../config/variables"; body:not(.swg--is-amp) article:not(.swg--page-is-unlocked) .swg--locked-content { opacity: 0; user-select: none; } @supports (filter: blur(4px)) { body:not(.swg--is-amp) article .swg--locked-content { transition: filter 0.6s; } body:not(.swg--is-amp) article:not(.swg--page-is-unlocked) .swg--locked-content { animation: fadeIn 0.3s ease-in forwards; display: block; filter: blur(4px); transition: filter 0s; img { filter: blur(12px); } } } button.swg-button { background-color: $c-white !important; } button.swg-button:hover { background-color: $c-alabaster !important; } @keyframes fadeIn { from { opacity: 0; } to { opacity: 0.8; } }
Remove font-face definition from scss
// Ionicons Font Path // -------------------------- @font-face { font-family: $ionicons-font-family; src:url("#{$ionicons-font-path}/ionicons.eot?v=#{$ionicons-version}"); src:url("#{$ionicons-font-path}/ionicons.eot?v=#{$ionicons-version}#iefix") format("embedded-opentype"), url("#{$ionicons-font-path}/ionicons.ttf?v=#{$ionicons-version}") format("truetype"), url("#{$ionicons-font-path}/ionicons.woff?v=#{$ionicons-version}") format("woff"), url("#{$ionicons-font-path}/ionicons.svg?v=#{$ionicons-version}#Ionicons") format("svg"); font-weight: normal; font-style: normal; } .ion { display: inline-block; font-family: $ionicons-font-family; speak: none; font-style: normal; font-weight: normal; font-variant: normal; text-transform: none; text-rendering: auto; line-height: 1; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
// Ionicons Font Path // -------------------------- // decided to define this font-face in somewhere else /* @font-face { font-family: $ionicons-font-family; src:url("#{$ionicons-font-path}/ionicons.eot?v=#{$ionicons-version}"); src:url("#{$ionicons-font-path}/ionicons.eot?v=#{$ionicons-version}#iefix") format("embedded-opentype"), url("#{$ionicons-font-path}/ionicons.ttf?v=#{$ionicons-version}") format("truetype"), url("#{$ionicons-font-path}/ionicons.woff?v=#{$ionicons-version}") format("woff"), url("#{$ionicons-font-path}/ionicons.svg?v=#{$ionicons-version}#Ionicons") format("svg"); font-weight: normal; font-style: normal; } */ .ion { display: inline-block; font-family: $ionicons-font-family; speak: none; font-style: normal; font-weight: normal; font-variant: normal; text-transform: none; text-rendering: auto; line-height: 1; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
Revert "remove style of .submitButton"
.addFolderEntryForm { .formBody { padding-left: 16px; padding-right: 16px; } }
.addFolderEntryForm { .formBody { padding-left: 16px; padding-right: 16px; } .submitButton { display: block; position: fixed; bottom: 14px; right: 14px; } }
Fix vertical centering in sub nav
.subNavBackClipper { // Clips the top of the box shadow to not clash with the header // A bit kludgey with the negative margin but it's a simple solution compared to using absolute positioning overflow: hidden; height: 68px; margin-bottom: -20px; } .subNavBack { background: $s-color-primary8; position: relative; box-shadow: 0 1px 3px rgba(0,0,0,0.3); overflow:hidden; } .subNav__nav { height: 48px; display: flex; align-items: center; padding-left: 9px; padding-right: 9px; } .subNav__nav__item { display: flex; align-items: center; padding: 0 9px; height: 48px; margin-right: 2em; text-decoration: none; color: $s-color-neutral3; border-bottom: 5px solid transparent; } .subNav__nav__item:hover { border-color: $s-color-primary6; } .subNav__nav__item.is-current { border-color: $s-color-primary5; }
.subNavBackClipper { // Clips the top of the box shadow to not clash with the header // A bit kludgey with the negative margin but it's a simple solution compared to using absolute positioning overflow: hidden; height: 68px; margin-bottom: -20px; } .subNavBack { background: $s-color-primary8; position: relative; box-shadow: 0 1px 3px rgba(0,0,0,0.3); overflow:hidden; } .subNav__nav { height: 48px; display: flex; align-items: center; padding-left: 9px; padding-right: 9px; } .subNav__nav__item { display: flex; align-items: center; padding: 0 9px; height: 48px; margin-right: 2em; text-decoration: none; color: $s-color-neutral3; border-bottom: 5px solid transparent; border-top: 5px solid transparent; } .subNav__nav__item:hover { border-color: $s-color-primary6; } .subNav__nav__item.is-current { border-color: $s-color-primary5; }
Set style for export_csv button
header { background: url('/img/back.png'); .logo { padding: 0.8em; width: 250px; padding-left: 1.25em; } button.btn-success { margin-right: 5em; margin-top: 1.5em; } }
header { background: url('/img/back.png'); .logo { padding: 0.8em; width: 250px; padding-left: 1.25em; } button.btn-success, a.btn-success { margin-right: 5em; margin-top: 1.5em; } }
Add hover style for speech keywords
/** * Base styling */ .speech .keyword{ color: $colour-navy !important; &:hover{ &:after{ /** TODO: Add Microphone icon **/ } } } .keyword--hidden{ @extend .keyword; display: none; .speech &{ display: inline; } } .speech_output{ @include clearfix; display: none; padding: 10px 0; border-bottom: 3px solid $colour-navy; &.active{ display: block; } } .speech_output__text{ margin: 0 20px; text-align: center; } .speech_output__retry-link{ color: #ffffff; @include opacity(0.3); &:hover, &:active{ @include opacity(1); } }
/** * Base styling */ .speech .keyword{ color: $colour-navy !important; position: relative; &:after{ /** TODO: Add Microphone icon **/ font-family: FontAwesome; content: "\f130"; display: block; position: absolute; top: -1.5em; left: 45%; opacity: 0; -webkit-transform: translateY(1em); -webkit-transition: all 0.4s; } &:hover{ &:after{ opacity: 1; -webkit-transform: translateY(0); } } } .keyword--hidden{ @extend .keyword; display: none; .speech &{ display: inline; } } .speech_output{ @include clearfix; display: none; padding: 10px 0; border-bottom: 3px solid $colour-navy; &.active{ display: block; } } .speech_output__text{ margin: 0 20px; text-align: center; } .speech_output__retry-link{ color: #ffffff; @include opacity(0.3); &:hover, &:active{ @include opacity(1); } }
Add print styles for govspeak callout blocks
.govuk-govspeak { .media-player { display: none; } .attachment { margin: $gutter 0; &:first-child { margin-top: 0; } .attachment-thumb { display: none; } .attachment-details { .download { display: block; } } .accessibility-warning { h2 { @include core-14; } .toggler { display: none; } } } }
.govuk-govspeak { .media-player { display: none; } .information-block, .call-to-action { margin: $gutter-half 0; padding: 0 $gutter-half; border: 1pt solid $border-colour; } .attachment { margin: $gutter 0; &:first-child { margin-top: 0; } .attachment-thumb { display: none; } .attachment-details { .download { display: block; } } .accessibility-warning { h2 { @include core-14; } .toggler { display: none; } } } }
Update spreadsheet to ensure bootstrap calendar gets pulled in
/* * *= require jquery-ui/datepicker *= require trix */ @import "bootstrap"; @import "font-awesome"; @import "colours"; @import "base"; @import "nav"; @import "footer"; @import "home"; @import "site"; @import "school"; @import "activities"; @import "activity_type"; @import "jquery.calendars.picker"; @import "smoothness.calendars.picker"; @import "test_warning"; @import "calendars"; @import "bootstrap-year-calendar.css";
/* * *= require jquery-ui/datepicker *= require trix */ @import "bootstrap"; @import "font-awesome"; @import "colours"; @import "base"; @import "nav"; @import "footer"; @import "home"; @import "site"; @import "school"; @import "activities"; @import "activity_type"; @import "jquery.calendars.picker"; @import "smoothness.calendars.picker"; @import "test_warning"; @import "calendars"; @import "bootstrap-year-calendar";