Instruction
stringlengths
14
778
input_code
stringlengths
0
4.24k
output_code
stringlengths
1
5.44k
Change layout styles for the basic home page.
.l-homepage { @include column(12); padding: 0; @include respond-to($mq-m) { @include column(8); @include push(2); padding: $baseline-unit*14 0 $baseline-unit*15; } } .l-error-page { margin: $baseline-unit*15 0 $baseline-unit*29 0; } .l-article { @include column(12); @include respond-to($mq-m) { @include column(8); } } .l-primary-nav { margin: $baseline-unit*4 auto 0 auto; @extend %clearfix; @include respond-to($mq-l) { margin: -$baseline-unit*5 auto $baseline-unit*4 auto; } } .l-search-box { position: relative; max-width: 600px; margin: 0 auto; }
.l-homepage { h1 { @extend %heading-extra-large; } @include column(12); padding: 0; @include respond-to($mq-m) { @include column(8); @include push(2); padding: $baseline-unit*6 0 $baseline-unit*15; } } .l-error-page { margin: $baseline-unit*15 0 $baseline-unit*29 0; } .l-article { @include column(12); @include respond-to($mq-m) { @include column(8); } } .l-primary-nav { margin: $baseline-unit*4 auto 0 auto; @extend %clearfix; @include respond-to($mq-l) { margin: -$baseline-unit*5 auto $baseline-unit*4 auto; } } .l-search-box { position: relative; max-width: 600px; margin: 0 auto; }
Include SPFx ouif styles as they render the correct colors. Moved import to root of wp as template styles can change.
.template_root { @import '~office-ui-fabric/dist/sass/Fabric.scss'; @import '~office-ui-fabric/dist/components/Label/Label.scss'; @import '~office-ui-fabric/dist/components/List/List.scss'; @import '~office-ui-fabric/dist/components/ListItem/ListItem.scss'; .template_defaultList { .template_icon { background-position: top; background-repeat: no-repeat; } strong { color: "[theme: themePrimary]" } } .template_defaultCard { .singleCard { margin: 10px; border: 1px solid #eaeaea; min-height: 200px; .previewImg { width: 100%; height: 111px; background-size: cover; background-color: #eaeaea; position: relative; border-bottom: 1px solid #eaeaea; } .cardInfo { padding-left: 10px; padding-right: 10px; } .cardFileIcon { left: 10px; bottom: 8px; position: absolute; } } .singleCard:hover { border-color: #c8c8c8; cursor: pointer; } } .template_resultCount { padding-left: 10px; margin-bottom: 10px; } }
.searchWp { @import '~office-ui-fabric/dist/sass/Fabric.scss'; @import '~office-ui-fabric/dist/components/Label/Label.scss'; @import '~office-ui-fabric/dist/components/List/List.scss'; @import '~office-ui-fabric/dist/components/ListItem/ListItem.scss'; @import '~@microsoft/sp-office-ui-fabric-core/dist/sass/FabricCore.scss'; .template_defaultList { .template_icon { background-position: top; background-repeat: no-repeat; } strong { color: "[theme: themePrimary]" } } .template_defaultCard { .singleCard { margin: 10px; border: 1px solid #eaeaea; min-height: 200px; .previewImg { width: 100%; height: 111px; background-size: cover; background-color: #eaeaea; position: relative; border-bottom: 1px solid #eaeaea; } .cardInfo { padding-left: 10px; padding-right: 10px; } .cardFileIcon { left: 10px; bottom: 8px; position: absolute; } } .singleCard:hover { border-color: #c8c8c8; cursor: pointer; } } .template_resultCount { padding-left: 10px; margin-bottom: 10px; } }
Make the webchat unable to be interacted with, when closed
.webchat-banner { background-color: $govuk-blue; color: $white; @include core-19; max-height: 0; padding: 0 $gutter-half; opacity: 0; margin-bottom: 0; -webkit-transition: .7s ease-out; -webkit-transition-property: max-height, opacity, margin-bottom, padding-top, padding-bottom; transition: .7s ease-out; transition-property: max-height, opacity, margin-bottom, padding-top, padding-bottom; } .webchat-banner.open { max-height: 200px; overflow: hidden; padding-top: $gutter-half; padding-bottom: $gutter-half; margin-bottom: $gutter; opacity: 1; } .webchat-banner h2 { margin-top: 0; } .webchat-banner a { color: $white; @include bold-19; } .webchat-banner .reject { margin-left: 1em; }
.webchat-banner { background-color: $govuk-blue; color: $white; @include core-19; max-height: 0; padding: 0 $gutter-half; opacity: 0; margin-bottom: 0; overflow: hidden; -webkit-transition: .7s ease-out; -webkit-transition-property: max-height, opacity, margin-bottom, padding-top, padding-bottom; transition: .7s ease-out; transition-property: max-height, opacity, margin-bottom, padding-top, padding-bottom; } .webchat-banner.open { max-height: 200px; padding-top: $gutter-half; padding-bottom: $gutter-half; margin-bottom: $gutter; opacity: 1; } .webchat-banner h2 { margin-top: 0; } .webchat-banner a { color: $white; @include bold-19; } .webchat-banner .reject { margin-left: 1em; }
Add border to pagination section.
/* Header panel */ .ember-share-search { .search-header { padding-top: 120px; background: white; background-size: cover; } .no-results { font-size: 15px ; color: #204762; // This color can change?? } } .share-logo { width: 46px; height: 22px; background: url('../assets/img/share-logo-icon.png') no-repeat; display: inline-block; background-size: contain; vertical-align: middle; } .search-below-the-fold { background-color: #F5F5F5; border-bottom: 1px solid #dedede; .filter-heading { background-color: #efefef; } label { font-weight: normal; } .preprint-search-sidebar ul { padding-left: 25px; li { list-style: none; } } .search-result { margin-bottom: 10px; word-wrap: break-word; word-break: break-word; overflow-wrap: break-word; box-shadow : 0 1px 2px #ddd; border: none; h4 { font-weight: normal; } } } .faceted-search-item-bar { background-color: white !important; } .pagination-format { background-color: white; }
/* Header panel */ .ember-share-search { .search-header { padding-top: 120px; background: white; background-size: cover; } .no-results { font-size: 15px ; color: #204762; // This color can change?? } } .share-logo { width: 46px; height: 22px; background: url('../assets/img/share-logo-icon.png') no-repeat; display: inline-block; background-size: contain; vertical-align: middle; } .search-below-the-fold { background-color: #F5F5F5; border-bottom: 1px solid #dedede; .filter-heading { background-color: #efefef; } label { font-weight: normal; } .preprint-search-sidebar ul { padding-left: 25px; li { list-style: none; } } .search-result { margin-bottom: 10px; word-wrap: break-word; word-break: break-word; overflow-wrap: break-word; box-shadow : 0 1px 2px #ddd; border: none; h4 { font-weight: normal; } } } .faceted-search-item-bar { background-color: white !important; } .pagination-format { background-color: white; border: 1px solid #DDDDDD; }
Replace protocol in link to Google fonts with HTTPS
@import './_imports/_variables'; @import url(http://fonts.googleapis.com/css?family=Roboto:400,300,500,700|Gentium+Book+Basic:400,700); div, p, h1, h2, h3, h4, h5, h6, a, input, label, header, aside, menu, body { font-family: $sans; color: $black; } h1, h2, h3, h4, h5, h6 { margin-bottom: 1em*0.8; line-height: 130%; } p { margin-bottom: $space-med; } h1 { font-size: $font-huge; } h2 { font-size: $font-huge*0.85; } h3 { font-size: $font-huge*0.7; } h4 { font-size: $font-huge*0.62; } h5 { font-size: $font-huge*0.52; } h6 { font-size: $font-huge*0.45; } p, a { font-size: $font-med; } .subtitle { font-style: italic; color: darken($grey, 5%); }
@import './_imports/_variables'; @import url(https://fonts.googleapis.com/css?family=Roboto:400,300,500,700|Gentium+Book+Basic:400,700); div, p, h1, h2, h3, h4, h5, h6, a, input, label, header, aside, menu, body { font-family: $sans; color: $black; } h1, h2, h3, h4, h5, h6 { margin-bottom: 1em*0.8; line-height: 130%; } p { margin-bottom: $space-med; } h1 { font-size: $font-huge; } h2 { font-size: $font-huge*0.85; } h3 { font-size: $font-huge*0.7; } h4 { font-size: $font-huge*0.62; } h5 { font-size: $font-huge*0.52; } h6 { font-size: $font-huge*0.45; } p, a { font-size: $font-med; } .subtitle { font-style: italic; color: darken($grey, 5%); }
Reduce left margin of navbar elements
// $font $general-font: 'Avenir', Helvetica, Arial, sans-serif; // navbar $content-navbar-height: 71px; $file-manager-navbar-height: 119px; $left-margin-navbar-elements: 30px; $button-logo-width: 150px; $navbar-border-color: #D5D5D5; $navbar-font-size: 15px;
// $font $general-font: 'Avenir', Helvetica, Arial, sans-serif; // navbar $content-navbar-height: 71px; $file-manager-navbar-height: 119px; $left-margin-navbar-elements: 18px; $button-logo-width: 150px; $navbar-border-color: #D5D5D5; $navbar-font-size: 15px;
Fix indentation when no investigations
$side-nav-width: 200px; .main-section { min-height: 1000px; position: relative; } nav.tab-bar { border-bottom: 1px solid darken($tabbar-bg, 10%); padding-right: 20px; } .left-side-nav { @include side-nav(); background-color: $light-grey; width: $side-nav-width; border-right: 1px solid darken($light-grey, 10%); position: absolute; top:0; bottom:0; left:0; } .left-side-nav li { margin: 0; } .left-side-nav li a, .left-side-nav li.heading { padding: 5px 15px; color: $black !important; } .left-side-nav li a:hover { background-color: darken($light-grey, 5%); } .left-side-nav li a.active { border-left: 5px solid $regard-green; padding-left: 10px; color: $regard-green !important; } .muted { opacity: 0.5; } .main-container { margin-left: $side-nav-width; margin-top: 0 !important; } .row.full-width { width: 100%; max-width: 100%; }
$side-nav-width: 200px; .main-section { min-height: 1000px; position: relative; } nav.tab-bar { border-bottom: 1px solid darken($tabbar-bg, 10%); padding-right: 20px; } .left-side-nav { @include side-nav(); background-color: $light-grey; width: $side-nav-width; border-right: 1px solid darken($light-grey, 10%); position: absolute; top:0; bottom:0; left:0; } .left-side-nav li { margin: 0; } .left-side-nav li a, .left-side-nav li.heading, .left-side-nav li.muted { padding: 5px 15px; color: $black !important; } .left-side-nav li a:hover { background-color: darken($light-grey, 5%); } .left-side-nav li a.active { border-left: 5px solid $regard-green; padding-left: 10px; color: $regard-green !important; } .muted { opacity: 0.5; } .main-container { margin-left: $side-nav-width; margin-top: 0 !important; } .row.full-width { width: 100%; max-width: 100%; }
Scale up reaction buttons on hover
/* Copyright 2019 The Matrix.org Foundation C.I.C. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ .mx_ReactionTooltipButton { font-size: 16px; padding: 6px; user-select: none; } .mx_ReactionTooltipButton_selected { opacity: 0.4; }
/* Copyright 2019 The Matrix.org Foundation C.I.C. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ .mx_ReactionTooltipButton { font-size: 16px; padding: 6px; user-select: none; transition: transform 0.25s; &:hover { transform: scale(1.2); } } .mx_ReactionTooltipButton_selected { opacity: 0.4; }
Adjust letter spacing when using .no-caps with title/status fonts
// ========================================================================== // Shorthand font family declaration classes // ========================================================================== .f { font-family: $type-font-body; font-weight: $type-weight-normal; letter-spacing: normal; text-transform: $type-transform-body; } .f-title { font-family: $type-font-title; font-weight: $type-weight-medium; letter-spacing: $type-kerning-title; text-transform: $type-transform-title; } .f-status { font-family: $type-font-status; font-weight: $type-weight-semibold; letter-spacing: $type-kerning-status; text-transform: $type-transform-status; } .f-desc { font-family: $type-font-description; font-style: $type-style-description; font-weight: $type-weight-normal; letter-spacing: $type-kerning-description; text-transform: $type-transform-description; } .f-code { font-family: $type-font-code; font-weight: $type-weight-normal; text-transform: $type-transform-code; }
// ========================================================================== // Shorthand font family declaration classes // ========================================================================== .f { font-family: $type-font-body; font-weight: $type-weight-normal; letter-spacing: normal; text-transform: $type-transform-body; } .f-title { font-family: $type-font-title; font-weight: $type-weight-medium; letter-spacing: $type-kerning-title; text-transform: $type-transform-title; &.no-caps { letter-spacing: -0.05rem; } } .f-status { font-family: $type-font-status; font-weight: $type-weight-semibold; letter-spacing: $type-kerning-status; text-transform: $type-transform-status; &.no-caps { letter-spacing: -0.025rem; } } .f-desc { font-family: $type-font-description; font-style: $type-style-description; font-weight: $type-weight-normal; letter-spacing: $type-kerning-description; text-transform: $type-transform-description; } .f-code { font-family: $type-font-code; font-weight: $type-weight-normal; text-transform: $type-transform-code; }
Add styling for static pages
// Partial: Static Content Pages .static-page { font-size: 1.4rem; line-height: 1.8rem; ul.static-menu { float: right; margin-left: 30px; width: 25%; padding: 20px; background: $light-gray-color; border: 1px solid ($light-gray-color, 10%); li { margin-left: 20px; line-height: 2.1rem; font-size: 1.3rem; &:hover { text-decoration: underline; } &.title { list-style: none; a { font-weight: 700; } } a { font-weight: 400; font-size: 1.3rem; } } } }
// Partial: Static Content Pages .static-page { font-size: 1.4rem; line-height: 1.8rem; ul.static-menu { float: right; margin-left: 30px; width: 25%; padding: 10px 20px 20px; background: $light-gray-color; border: 1px solid ($light-gray-color, 10%); li { margin-left: 20px; line-height: 2.1rem; font-size: 1.3rem; &:hover { text-decoration: underline; } &.title { list-style: none; margin-top: 10px; a { font-weight: 700; } } a { font-weight: 400; font-size: 1.3rem; } } } }
Fix line breaking in comment stars
/*.loading {*/ /*border: 10px solid red;*/ /*transition: none;*/ /*}*/ .comments { .comment { /*background: {*/ /*color: $flat-clouds;*/ /*}*/ .btn-group { opacity: 0; transition: opacity 0.2s; } &:hover { .btn-group { opacity: 1; } } .star { clear: left; line-height: 1.2; padding: { top: 5px; } text: { align: right; } width: 34px; a { color: $flat-gray-2; &.starred { color: $flat-sunflower; } .wrapper { } } } } .loading { } .animate { &.ng-enter, &.ng-leave { transition: all 0.5s; } &.ng-leave.ng-leave-active, &.ng-enter { opacity: 0; } &.ng-enter.ng-enter-active, &.ng-leave { opacity: 1; } } }
/*.loading {*/ /*border: 10px solid red;*/ /*transition: none;*/ /*}*/ .comments { .comment { /*background: {*/ /*color: $flat-clouds;*/ /*}*/ .btn-group { opacity: 0; transition: opacity 0.2s; } &:hover { .btn-group { opacity: 1; } } .star { clear: left; line-height: 1.2; margin: { left: -15px; } padding: { top: 5px; } text: { align: right; } width: 49px; a { color: $flat-gray-2; &.starred { color: $flat-sunflower; } .wrapper { } } } } .loading { } .animate { &.ng-enter, &.ng-leave { transition: all 0.5s; } &.ng-leave.ng-leave-active, &.ng-enter { opacity: 0; } &.ng-enter.ng-enter-active, &.ng-leave { opacity: 1; } } }
Remove outdated 60vw max in dataset description
@import 'variables'; .container { flex-direction: column; display: block; white-space: pre-wrap; max-width: 60vw; } .button { background-color: $blue; color: #fff; border: 0; padding: 5px 10px; border-bottom: 1px solid; float: right; }
@import 'variables'; .container { flex-direction: column; display: block; white-space: pre-wrap; } .button { background-color: $blue; color: #fff; border: 0; padding: 5px 10px; border-bottom: 1px solid; float: right; }
Add mobile style to represent how things look like on mobile devices
.style-guide { @extend %container; background-color: $white; padding: 0 10px; box-sizing: border-box; } .style-guide__title { font-size: 2.5em; padding: 60px 30px 30px; } .style-guide__container { border: 2px solid; border-radius: 10px; border-color: $light-gray; box-sizing: border-box; margin-bottom: 5px; width: 100%; } .style-guide__container-title { background-color: lighten($light-gray, 2%); border-bottom: 1px solid $light-gray; padding: 30px 30px 16px; } .style-guide__container-body { padding: 30px; overflow: auto; }
.style-guide { @extend %container; background-color: $white; box-sizing: border-box; @include breakpoint($max-mobile-container) { padding: 0 10px; } } .style-guide__title { font-size: 2.5em; padding: 60px 30px 30px; } .style-guide__container { width: 100%; @include breakpoint($max-mobile-container) { border: 2px solid; border-radius: 10px; border-color: $light-gray; box-sizing: border-box; margin-bottom: 5px; } } .style-guide__container-title { background-color: lighten($light-gray, 2%); border-bottom: 1px solid $light-gray; padding: 30px 30px 16px; } .style-guide__container-body { overflow: auto; padding-bottom: 30px; @include breakpoint($max-mobile-container) { padding: 30px; } }
Clean up Sticky CSS by removing unused code
// Foundation for Sites by ZURB // foundation.zurb.com // Licensed under MIT Open Source @mixin foundation-sticky { .sticky-container { position: relative; // &.right { // left: 100%; // } } .sticky { position: absolute; z-index: 0; transform: translate3d(0,0,0); // margin-top: 1em; } .sticky.is-stuck { position: fixed; z-index: 5; &.is-at-top { top: 0; // bottom: auto; // margin-top: 1em !important; } &.is-at-bottom { bottom: 0; // top: auto; // margin-bottom: 1em; } } .sticky.is-anchored { position: absolute; left: auto; right: auto; &.is-at-bottom { bottom: 0; // top: 150%; // margin-bottom: 1em; } } }
// Foundation for Sites by ZURB // foundation.zurb.com // Licensed under MIT Open Source @mixin foundation-sticky { .sticky-container { position: relative; } .sticky { position: absolute; z-index: 0; transform: translate3d(0,0,0); } .sticky.is-stuck { position: fixed; z-index: 5; &.is-at-top { top: 0; } &.is-at-bottom { bottom: 0; } } .sticky.is-anchored { position: absolute; left: auto; right: auto; &.is-at-bottom { bottom: 0; } } }
Change main font to Avenir Next
// Dimensions $content-max-width: 624px; // Fonts $font-stack: "Cabin", "Gill Sans", "Arial", sans-serif; $mono-font-stack: "Consolas", "Inconsolas", monospace; $font-normal: 400; $font-heavy: 700; // Colours $medium-purple: #7d61d7; $lavender: #e5dff7; $perano: #b1a0e7; $dark-slate-blue: #4b3a81; $violent-violet: #261d41; $charcoal: #4a4a4a; $grey: #828282; $white: #ffffff;
// Dimensions $content-max-width: 624px; // Fonts $font-stack: "Avenir Next", "Avenir", "Arial", sans-serif; $mono-font-stack: "Consolas", "Inconsolas", monospace; $font-normal: 400; $font-heavy: 700; // Colours $medium-purple: #7d61d7; $lavender: #e5dff7; $perano: #b1a0e7; $dark-slate-blue: #4b3a81; $violent-violet: #261d41; $charcoal: #4a4a4a; $grey: #828282; $white: #ffffff;
Add some styling for coc agreement
.dashboard{ .navbar-site .navbar-brand{ padding-right: 5px; } } .dashboard-header { padding: 20px 0 0 33px; height: 65px; margin: 0; border-bottom: 1px solid #f8f8f8; font-size:21px; font-weight: 500; color:#4A4A4A; line-height:24px; > .header__title { margin-right: 24px; } .btn { font-size: 13px; margin-top: -3px; padding: 8px 12px 6px; } } .dashboard-alert { padding: 10px 33px 0px 33px; }
.dashboard{ .navbar-site .navbar-brand{ padding-right: 5px; } } .dashboard-header { padding: 20px 0 0 33px; height: 65px; margin: 0; border-bottom: 1px solid #f8f8f8; font-size:21px; font-weight: 500; color:#4A4A4A; line-height:24px; > .header__title { margin-right: 24px; } .btn { font-size: 13px; margin-top: -3px; padding: 8px 12px 6px; } } .dashboard-alert { padding: 10px 33px 0px 33px; } .agreement-form { font-size: 16px; blockquote { margin: 40px 0; p { line-height: 1.5; margin: 20px 0; &:first-child { margin-top: 0; } &:last-child { margin-bottom: 0; } } h2 { margin-top: 35px; } } }
Remove font smoothing and abstract out
// 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-bar { overflow: hidden; text-align: center; background-color: $color-opt-out-background; p { @extend %type-small; margin: $baseline-unit*2 0; @include respond-to($mq-m) { @include column(8); margin-top: $baseline-unit*2; margin-bottom: $baseline-unit*2; text-align: left; } } .icon--desktop { display: inline-block; position: relative; top: 2px; left: -3px; } form { @include respond-to($mq-m) { @include column(4); text-align: right; } } } .opt-out-bar__button { @extend %type-small; @extend %font-smoothing; padding: $baseline-unit*2 0; color: $color-link-default; border: 0; background: transparent; border-top: 1px solid $color-grey-light; @include respond-to($mq-m) { border: 0; } &:before { @extend .icon; @include inline-block; padding-right: $baseline-unit; } &:hover, &:focus { outline: none; text-decoration: underline; } }
// 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-bar { overflow: hidden; text-align: center; background-color: $color-opt-out-background; p { @extend %type-small; margin: $baseline-unit*2 0; @include respond-to($mq-m) { @include column(8); margin-top: $baseline-unit*2; margin-bottom: $baseline-unit*2; text-align: left; } } .icon--desktop { display: inline-block; position: relative; top: 2px; left: -3px; } form { @include respond-to($mq-m) { @include column(4); text-align: right; } } } .opt-out-bar__button { @extend %type-small; padding: $baseline-unit*2 0; color: $color-link-default; border: 0; background: transparent; border-top: 1px solid $color-grey-light; @include respond-to($mq-m) { border: 0; } &:before { @extend .icon; @include inline-block; padding-right: $baseline-unit; } &:hover, &:focus { outline: none; text-decoration: underline; } }
Update - sΓ‘b mai 6 00:57:15 -03 2017
@media print { .main{ .wrapper{ .sidebar{ display: none; } .content{ /* CONTENT MAIN */ font-family: $font-family-secondary; .resume{ .header{ .title{ display: none; h1{} } .btn-print{ display: none; a{} } } .content{ .table-of-contents{ display: none !important; } h1{ font-size: 4.7rem; font-weight: 800; } h2{ font-size: 3.7rem; } h3{ font-size: 3rem; } h3,h2{ font-weight: 600; } h3,h4{ font-weight: 600; } /* Avoid printing hrefs when this class is applied */ a[href]:after { content: none !important; } p,li{ font-size: 22px !important; } blockquote{ border: none; background-color: transparent; } } } } } .footer{ display: none; } } }
@media print { .main{ .wrapper{ .sidebar{ display: none; } .content-main{ /* CONTENT MAIN */ .resume{ .header{ .title{ display: none; h1{} } .btn-print{ display: none; a{} } } .content{ font-family: $font-family-secondary !important; .table-of-contents{ display: none !important; } h1{ font-size: 4.7rem; font-weight: 800; } h2{ font-size: 3.7rem; } h3{ font-size: 3rem; } h3,h2{ font-weight: 600; } h3,h4{ font-weight: 600; } /* Avoid printing hrefs when this class is applied */ a[href]:after { content: none !important; } p,li{ font-size: 22px !important; } blockquote{ border: none; background-color: transparent; } } } } } .footer{ display: none; } } }
Enlarge fullscreen btn on mobile
body { padding: 0; margin: 0; background: #000; color: #fff; overflow: hidden; user-select:none; -webkit-tap-highlight-color:rgba(0,0,0,0); } canvas { width: 100%; height: 100%; }
body { padding: 0; margin: 0; background: #000; color: #fff; overflow: hidden; user-select:none; -webkit-tap-highlight-color:rgba(0,0,0,0); } canvas { width: 100%; height: 100%; } @media (max-width: 759px) { #toggleFullScreenBtn { position: absolute; font-size: 40px; line-height: 120px; width: 50vw; top: 50%; left: 50%; transform: translate(-50%, -50%); } }
Add top margin to dt in classifiers.
.sidebar-section { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 2px solid #ececec; h3 { font-size: 18px; } dt { font-weight: bold; } dd { padding-left: 1em; } } .sidebar-section.status { padding-bottom: 10px; } .sidebar-section.maintainers { @include clearfix; img { margin: 0 5px 5px 0; display: inline; float: left; @media only screen and (max-width: 1000px){ max-width: 40px; } } } .sidebar-section.meta { padding-bottom: 0; border: 0; }
.sidebar-section { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 2px solid #ececec; h3 { font-size: 18px; } dt { font-weight: bold; margin-top: 0.3em; } dd { padding-left: 1em; } } .sidebar-section.status { padding-bottom: 10px; } .sidebar-section.maintainers { @include clearfix; img { margin: 0 5px 5px 0; display: inline; float: left; @media only screen and (max-width: 1000px){ max-width: 40px; } } } .sidebar-section.meta { padding-bottom: 0; border: 0; }
Fix wrapping of long tooltips for URLs in analytics tables.
@import "node_modules/tippy.js/dist/tippy"; @import "node_modules/tippy.js/themes/light-border"; .btn-link.btn-tooltip { padding: 0px; margin: 0px; border-width: 0px; vertical-align: baseline; font-size: inherit; } .col-form-label .btn-link.btn-tooltip { margin-left: 8px; } .tippy-tooltip { text-align: left; p:last-child { margin-bottom: 0px; } } .tippy-tooltip.wide-theme { max-width: 700px; } .tippy-tooltip.forced-wide-theme { min-width: 400px; max-width: 600px; }
@import "node_modules/tippy.js/dist/tippy"; @import "node_modules/tippy.js/themes/light-border"; .btn-link.btn-tooltip { padding: 0px; margin: 0px; border-width: 0px; vertical-align: baseline; font-size: inherit; } .col-form-label .btn-link.btn-tooltip { margin-left: 8px; } .tippy-tooltip { text-align: left; word-break: break-word; p:last-child { margin-bottom: 0px; } } .tippy-tooltip.wide-theme { max-width: 700px; } .tippy-tooltip.forced-wide-theme { min-width: 400px; max-width: 600px; }
Add home intro animations and break points to home elementes
.#{$namespace}-home { display: flex; flex-direction: column; align-items: center; &__header { margin: 2vh 0 6vh 0; } &__title { font-size: 0; line-height: 0; } ##{$namespace}-form-metersAround { display: flex; flex-direction: column; align-items: center } .#{$namespace}-btn--geolocalizer { margin-bottom: 8vh; } .#{$namespace}--slider { margin-bottom: 3vh; } }
.#{$namespace}-home { display: flex; flex-direction: column; align-items: center; &__header { margin: 1vh 0 12vh 0; @include breakpoint($break-tablet) { margin: 2vh 0 6vh 0; } } &__title { font-size: 0; line-height: 0; } .#{$namespace}-logo { animation: 1s ease-in-out 1.5s 1 forwards logo_animation; @keyframes logo_animation { 0% { opacity: 1; } 50% { opacity: 0.8; transform: scale(1.1); } 100% { opacity: 0.4; transform: scale(0.8); } } } ##{$namespace}-form-metersAround { display: flex; flex-direction: column; align-items: center } .#{$namespace}--slider { margin-bottom: 3vh; } .#{$namespace}-btn--geolocalizer { &--is-pulse { animation: 1s ease-in-out 3.5s 2 forwards geolocalizer_pulse; @keyframes geolocalizer_pulse { 0% { transform: scale(1); } 25% { transform: scale(1.1); } 50% { transform: scale(0.9); } 75% { transform: scale(1.2); } 100% { transform: scale(1); } } } } }
Fix spacing for privacy dropdown dialog.
@import 'cdb-variables/sizes'; @import 'cdb-variables/colors'; .Privacy-dropdown { position: relative; } .Privacy-dropdownTrigger { height: 24px; overflow: hidden; } .Privacy-dropdownButton { width: 100%; &.is-selected { background: rgba($cHighlight, 0.16); } } .Privacy-dropdownArrow { fill: currentColor; width: 6px; margin-left: 4px; } .Editor-PrivacyDialog { position: absolute; top: 24px; right: 0; left: 0; width: 248px; z-index: 100; } .Privacy-passwordField { padding: $baseSize $baseSize + 4; }
@import 'cdb-variables/sizes'; @import 'cdb-variables/colors'; .Privacy-dropdown { position: relative; } .Privacy-dropdownTrigger { height: 24px; overflow: hidden; } .Privacy-dropdownButton { width: 100%; &.is-selected { background: rgba($cHighlight, 0.16); } } .Privacy-dropdownArrow { fill: currentColor; width: 6px; margin-left: 4px; } .Editor-PrivacyDialog { position: absolute; top: $baseSize * 4; right: 0; left: 0; width: 248px; z-index: 100; } .Privacy-passwordField { padding: $baseSize $baseSize + 4; }
Add default to color variable
// Color // –––––––––––––––––––––––––––––––––––––––––––––––––– $color-initial: #ffffff; $color-primary: #9b4dca; $color-secondary: #606c76; $color-tertiary: #f4f5f6; $color-quaternary: #d1d1d1;
// Color // –––––––––––––––––––––––––––––––––––––––––––––––––– $color-initial: #ffffff !default; $color-primary: #9b4dca !default; $color-secondary: #606c76 !default; $color-tertiary: #f4f5f6 !default; $color-quaternary: #d1d1d1 !default;
Remove bottom margin, as this is already set on the surrounding form-group
// Date of birth .date-of-birth label { display: block; margin-bottom: 5px; } .date-of-birth .form-group { width: 50px; float: left; margin-right: 20px; clear: none; } .date-of-birth .form-group-year { width: 70px; } .date-of-birth .form-group input { width: 100%; } // Use Modernizr to detect for touch events // Build: http://modernizr.com/download/#-touch-cssclasses-teststyles-prefixes // Hide date of birth .touch .date-of-birth { display: none; } // Hide native date of birth .no-touch .native-date-of-birth { display: none; } // Show native date of birth .touch .native-date-of-birth { display: block; } // Set a minimum height for date inputs .touch input[type="date"] { min-height: 36px; }
// Date of birth .date-of-birth label { display: block; margin-bottom: 5px; } .date-of-birth .form-group { width: 50px; float: left; margin-right: 20px; margin-bottom: 0; clear: none; } .date-of-birth .form-group-year { width: 70px; } .date-of-birth .form-group input { width: 100%; } // Use Modernizr to detect for touch events // Build: http://modernizr.com/download/#-touch-cssclasses-teststyles-prefixes // Hide date of birth .touch .date-of-birth { display: none; } // Hide native date of birth .no-touch .native-date-of-birth { display: none; } // Show native date of birth .touch .native-date-of-birth { display: block; } // Set a minimum height for date inputs .touch input[type="date"] { min-height: 36px; }
Add padding for lists inside of article
// Common style for article (page / post) article { background-color: $content-bg; color: $content-fg; border: 1px solid $border-color; border-radius: 2px; width: 100%; margin: 10px auto; padding: 10px; .by, .author, .tags-title, .footer-category { display: none; } .category { @extend .fa, .fa-folder-open; font-weight: bold; } .tags { @extend .fa, .fa-tag; } .entry-time { @extend .fa, .fa-calendar-o; } .entry-meta, .article-footer { color: $meta-gray; } }
// Common style for article (page / post) article { background-color: $content-bg; color: $content-fg; border: 1px solid $border-color; border-radius: 2px; width: 100%; margin: 10px auto; padding: 10px; .by, .author, .tags-title, .footer-category { display: none; } .category { @extend .fa, .fa-folder-open; font-weight: bold; } .tags { @extend .fa, .fa-tag; } .entry-time { @extend .fa, .fa-calendar-o; } .entry-meta, .article-footer { color: $meta-gray; } ul { // revert to default padding, otherwise the list decoration won't show padding-left: 40px; } }
Add media for small questions
.sv-row__question { display: inline-block; vertical-align: top; } .sv-row__question--small:only-child { max-width: 50%; }
.sv-row__question { display: inline-block; vertical-align: top; } .sv-row__question--small:only-child { @media only screen and (min-width: 768px) { max-width: 50%; } }
Add util for exact width
.vh-100 { height: 100vh !important; }
.vh-100 { height: 100vh !important; } .w-exact-200 { width: 200px; }
Use a single line per selector
// This file is part of the DITA Open Toolkit project. // // Copyright 2016 Eero Helenius // // See the accompanying LICENSE file for applicable license. // block .consequence { } .hazardstatement { } .hazardsymbol { } .howtoavoid { } .messagepanel { } .typeofhazard { } .hazardstatement { &--caution { background-color: $hazard-ansi-yellow; } &--danger { background-color: $hazard-ansi-red; } &--warning { background-color: $hazard-ansi-orange; } &--attention, &--note, &--notice { background-color: $hazard-ansi-blue; } &--fastpath, &--important, &--other, &--remember, &--restriction, &--tip { @extend .hazardstatement--caution; } }
// This file is part of the DITA Open Toolkit project. // // Copyright 2016 Eero Helenius // // See the accompanying LICENSE file for applicable license. // block .consequence { } .hazardstatement { } .hazardsymbol { } .howtoavoid { } .messagepanel { } .typeofhazard { } .hazardstatement { &--caution { background-color: $hazard-ansi-yellow; } &--danger { background-color: $hazard-ansi-red; } &--warning { background-color: $hazard-ansi-orange; } &--attention, &--note, &--notice { background-color: $hazard-ansi-blue; } &--fastpath, &--important, &--other, &--remember, &--restriction, &--tip { @extend .hazardstatement--caution; } }
Set correct cursor for facets
@import "globals/oxford-palette"; @mixin label($color, $font-size: ms(-1)) { color: #fff; display: inline-block; background-color:($color); @include border-radius(8px); font-size: $font-size !important; padding: 2px 4px 1px 4px; font-weight: 600; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); @include box-shadow(0 0 1px darken($success-green, 10%)) } $fail-red: #B94A48; $success-green: #468847; .label-place-open { @include label($success-green); } .label-place-closed { @include label($fail-red); } .label-facet { @include label($pantone624, ms(0)); margin-top: 5px; }
@import "globals/oxford-palette"; @mixin label($color, $font-size: ms(-1)) { color: #fff; display: inline-block; background-color:($color); @include border-radius(8px); font-size: $font-size !important; padding: 2px 4px 1px 4px; font-weight: 600; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); @include box-shadow(0 0 1px darken($success-green, 10%)) } $fail-red: #B94A48; $success-green: #468847; .label-place-open { @include label($success-green); } .label-place-closed { @include label($fail-red); } .label-facet { @include label($pantone624, ms(0)); margin-top: 5px; cursor: pointer; }
Use _mixins Sass module when import radio mixins.
/** @license Copyright 2018 Google Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ @use '@material/radio'; @use '@material/ripple'; @include radio.core-styles(); @include ripple.common(); :host { display: inline-block; outline: none; } .mdc-radio { vertical-align: bottom; @include radio.unchecked-stroke-color(var(--mdc-radio-unchecked-color, #{radio.$unchecked-color})); @include radio.disabled-unchecked-stroke-color(var(--mdc-radio-disabled-color, #{radio.$disabled-circle-color})); @include radio.disabled-checked-stroke-color(var(--mdc-radio-disabled-color, #{radio.$disabled-circle-color})); @include radio.disabled-ink-color(var(--mdc-radio-disabled-color, #{radio.$disabled-circle-color})); }
/** @license Copyright 2018 Google Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ @use '@material/radio/mixins' as radio-mixins; @use '@material/radio/variables' as radio-variables; @use '@material/ripple'; @include radio-mixins.core-styles(); @include ripple.common(); :host { display: inline-block; outline: none; } .mdc-radio { vertical-align: bottom; @include radio-mixins.unchecked-stroke-color(var(--mdc-radio-unchecked-color, #{radio-variables.$unchecked-color})); @include radio-mixins.disabled-unchecked-stroke-color(var(--mdc-radio-disabled-color, #{radio-variables.$disabled-circle-color})); @include radio-mixins.disabled-checked-stroke-color(var(--mdc-radio-disabled-color, #{radio-variables.$disabled-circle-color})); @include radio-mixins.disabled-ink-color(var(--mdc-radio-disabled-color, #{radio-variables.$disabled-circle-color})); }
Set default cover height as auto
// scss-lint:disable ColorVariable $cover-overlay: transparentize(rgb(0, 0, 0), 0.7) transparentize(rgb(0, 0, 0), 0.4) !default; $cover-rounded: -20% 50% !default; $cover-height-default: 72vh !default; $cover-color-default: rgb(255, 255, 255) !default; $cover-content-margin: 30px !default;
// scss-lint:disable ColorVariable $cover-overlay: transparentize(rgb(0, 0, 0), 0.7) transparentize(rgb(0, 0, 0), 0.4) !default; $cover-rounded: -20% 50% !default; $cover-height-default: auto !default; $cover-color-default: rgb(255, 255, 255) !default; $cover-content-margin: 30px !default;
Increase header z-index to 2 to keep it over main el
:local(.styles) { z-index: 1; height: 120px; width: 100%; padding: 20px 0; opacity: 1; background: rgba(0, 0, 0, .8); .logo { color: #fff; text-decoration: none; } .logo h1 { margin: 0; font-family: 'Noto Sans', sans-serif; font-weight: 700; font-size: 2.2em; } .btn-group { margin-top: 1em; } @media only screen and (min-width : 768px) { position: fixed; height: 74px; .channel-dropdown-container { text-align: right; } .btn-group { margin-top: 0; } } }
:local(.styles) { $shadow: rgba(0,0,0,0.6); z-index: 2; height: 120px; width: 100%; padding: 20px 0; opacity: 1; background: rgba(0, 0, 0, 0.8); box-shadow: 0 1px 3px $shadow; .logo { color: #fff; text-decoration: none; } .logo h1 { margin: 0; font-family: 'Noto Sans', sans-serif; font-weight: 700; font-size: 2.2em; } .btn-group { margin-top: 1em; } @media only screen and (min-width : 768px) { position: fixed; height: 74px; .channel-dropdown-container { text-align: right; } .btn-group { margin-top: 0; } } }
Update annotated tour preview layout
.b-annotated-tour-preview { background-color: siteColor(vam-black); height: 500px; margin-bottom: 15px; overflow: hidden; position: relative; &__content { height: 100%; width: 100%; } &__overlay { background-color: rgba(siteColor(vam-black), .5); height: 100%; width: 100%; &-container { height: 100%; padding: 10px; position: absolute; width: 100%; z-index: 1; } } &__btn { margin: auto; &-container { display: flex; height: 100%; position: absolute; width: 100%; z-index: 2; } } &__image { display: block; height: 100%; margin: auto; .objectfit & { object-fit: cover; width: 100%; } } }
.b-annotated-tour-preview { background-color: siteColor(vam-black); height: 500px; margin-bottom: 15px; overflow: hidden; position: relative; &__content { height: 100%; width: 100%; } &__overlay { background-color: rgba(siteColor(vam-black), .5); height: 100%; left: 0; width: 100%; &-container { height: 100%; padding: 10px; position: absolute; width: 100%; z-index: 1; } } &__btn { margin: auto; &-container { display: flex; height: 100%; position: absolute; width: 100%; z-index: 2; } } &__image { display: block; height: 100%; left: 0; margin: auto; .objectfit & { object-fit: cover; width: 100%; } } }
Fix overflow bug with Firefox that prevents scrolling
@import "variables"; @import "bower_components/bootstrap/scss/bootstrap-flex"; .container-fluid { padding-top: 8px; }
@import "variables"; @import "bower_components/bootstrap/scss/bootstrap-flex"; html, body { height: 100%; overflow: auto; } .container-fluid { padding-top: 8px; }
Add some useful gutter modifiers
/*------------------------------------*\ GENERIC \*------------------------------------*/ $gutter: 20px; $site-max-width: 1000px; $site-min-width: 320px; /*------------------------------------*\ BREAKPOINTS \*------------------------------------*/ $breakpoint--palm: "(max-width: 683px)"; $breakpoint--portable: "(max-width: 999px)"; $breakpoint--lap: "(min-width: 684px) and (max-width: 999px)"; $breakpoint--desk: "(min-width: 1000px)"; $breakpoint--desk--wide: "(min-width: 1300px)"; $breakpoint--lap-and-up: "(min-width: 684px)"; /*------------------------------------*\ GRID SYSTEM \*------------------------------------*/ $grid--responsive: true; $grid--mobile-first: true; $grid--gutter: $gutter; $grid--use-silent-classes: true; $grid--push: false; $grid--pull: false;
/*------------------------------------*\ GENERIC \*------------------------------------*/ $gutter: 20px; $gutter--mini: ($gutter / 2); $gutter--midi: ($gutter + ($gutter / 2)); $gutter--double: ($gutter * 2); $gutter--treble: ($gutter * 3); $site-max-width: 1000px; $site-min-width: 320px; /*------------------------------------*\ BREAKPOINTS \*------------------------------------*/ $breakpoint--palm: "(max-width: 683px)"; $breakpoint--portable: "(max-width: 999px)"; $breakpoint--lap: "(min-width: 684px) and (max-width: 999px)"; $breakpoint--desk: "(min-width: 1000px)"; $breakpoint--desk--wide: "(min-width: 1300px)"; $breakpoint--lap-and-up: "(min-width: 684px)"; /*------------------------------------*\ GRID SYSTEM \*------------------------------------*/ $grid--responsive: true; $grid--mobile-first: true; $grid--gutter: $gutter; $grid--use-silent-classes: true; $grid--push: false; $grid--pull: false;
Add styles for a select component that allows buttons to the right
/*** Fieldset container ***/ div[data-fieldtype] { border-bottom: 1px dashed #eee; margin-bottom: 10px; } // The last container, just before save buttons. div[data-fieldtype]:last-child, div[data-fieldtype="meta"] { border-bottom: 1px solid #bbb; padding-bottom: 20px; margin-bottom: 15px; } /*** Styles for all Fieldsets ***/ fieldset[data-bolt-field] { //margin-bottom: 20px; /*** Label ***/ label, .control-label { font-weight: bold; font-size: 13px; color: lighten(black, 30%); } // Main label. label.main { color: desaturate(lighten($boltblue, 35%), 20); font-size: 15px; } /*** Info popup ***/ .info-pop { cursor: help; color: #bbb; padding-left: 4px; } }
/*** Fieldset container ***/ div[data-fieldtype] { border-bottom: 1px dashed #eee; margin-bottom: 10px; } // The last container, just before save buttons. div[data-fieldtype]:last-child, div[data-fieldtype="meta"] { border-bottom: 1px solid #bbb; padding-bottom: 20px; margin-bottom: 15px; } /*** Styles for all Fieldsets ***/ fieldset[data-bolt-field] { //margin-bottom: 20px; /*** Label ***/ label, .control-label { font-weight: bold; font-size: 13px; color: lighten(black, 30%); } // Main label. label.main { color: desaturate(lighten($boltblue, 35%), 20); font-size: 15px; } /*** Info popup ***/ .info-pop { cursor: help; color: #bbb; padding-left: 4px; } /*** Select component ***/ .select-component { display: table; width: 100%; & > div { display: table-row; // Select & div:nth-child(odd) { display: table-cell; width: 100%; } // Buttons & div:nth-child(even) { display: table-cell; vertical-align: top; button { margin-left: 6px; margin-top: 4px; &::before { font-family: FontAwesome; display: block; width: 1.2em; } &.select-all::before { content: "\f00c"; } &.select-none::before { content: "\f00d"; } } } } } }
Remove accidentally added new functions
// Settings // -------- @import "settings/rem"; // Variables // --------- @import "variables/transition-timings"; // Helpers // ------- // Functions // --------- @import "functions/strip-units"; @import "functions/tint-shade"; @import "functions/rem"; @import "functions/reverse-list"; @import "functions/to-list"; @import "functions/reverse-gradient"; // CSS3 // ---- @import "css3/border-radius"; // Utilities // --------- @import "utilities/clearfix"; @import "utilities/hide-text"; @import "utilities/icon-fonts"; @import "utilities/tap-highlight"; @import "utilities/triangle";
// Settings // -------- @import "settings/rem"; // Variables // --------- @import "variables/transition-timings"; // Helpers // ------- // Functions // --------- @import "functions/strip-units"; @import "functions/tint-shade"; @import "functions/rem"; // CSS3 // ---- @import "css3/border-radius"; // Utilities // --------- @import "utilities/clearfix"; @import "utilities/hide-text"; @import "utilities/icon-fonts"; @import "utilities/tap-highlight"; @import "utilities/triangle";
Add default book image for placeholder for undigitized books
/* book list page */ #book-list { #header { @include responsive-banner("/static/img/winthrop_banner_book"); } .results-count { color: white; font-weight: normal; } }
/* book list page */ #book-list { #header { @include responsive-banner("/static/img/winthrop_banner_book"); } .results-count { color: white; font-weight: normal; } .result { img.placeholder { background-image: url("/static/img/winthrop_default_book.svg"); } } }
Remove duplicate form-submit-wrapper sass mixin
@mixin form-submit-wrapper() { @include span(18 of 18 no-gutters); text-align: center; padding: 2 * gutter(); } @mixin form-fields-wrapper() { @include span(18 of 18 no gutters); padding: gutter(); } @mixin form-label() { display: block; font-weight: 600; margin-left: 0; margin-bottom: $small-spacing / 2; } @mixin form-submit-wrapper() { text-align: center; }
@mixin form-submit-wrapper() { @include span(18 of 18 no-gutters); text-align: center; padding: 2 * gutter(); } @mixin form-fields-wrapper() { @include span(18 of 18 no gutters); padding: gutter(); } @mixin form-label() { display: block; font-weight: 600; margin-left: 0; margin-bottom: $small-spacing / 2; }
Add space to the add-area buttons
@charset "UTF-8"; .graduation-status { flex-basis: 270px; margin-right: $page-edge-padding; font-size: 14px; menu { margin-top: 0; } } .graduation-status .area-type-heading { font-size: 0.9em; font-weight: normal; margin-top: 0; margin-bottom: 0; @include font-feature-settings('smcp'); h1, h2, h3, h4, h5, h6 { font-weight: inherit; font-size: inherit; margin: 0; display: inline-block; padding: 5px 0 3px; } } .add-area-of-study { @extend %add-button; @extend %block-flat; cursor: pointer; position: relative; top: -1px; }
@charset "UTF-8"; .graduation-status { flex-basis: 270px; margin-right: $page-edge-padding; font-size: 14px; menu { margin-top: 0; } } .graduation-status .area-type-heading { font-size: 0.9em; font-weight: normal; margin-top: 0; margin-bottom: 0; @include font-feature-settings('smcp'); h1, h2, h3, h4, h5, h6 { font-weight: inherit; font-size: inherit; margin: 0; display: inline-block; padding: 5px 0 3px; } } .add-area-of-study { @extend %add-button; @extend %block-flat; margin-left: 3px; cursor: pointer; position: relative; top: -1px; }
Remove overwrite of h5 in footer
/* This stylefile is written to be temporary. This needs to be gone after dom change of homepage*/ #content, footer { h5 { /* h2 style */ font-weight: $bold-font-weight; font-size: 36px; margin-top: 48px; margin-bottom: 12px; } .static-content h5 { /* h3 style */ font-weight: $bold-font-weight;; font-size: 24px; margin-top: 48px; margin-bottom: 12px; } }
/* This stylefile is written to be temporary. This needs to be gone after dom change of homepage*/ #content { h5 { /* h2 style */ font-weight: $bold-font-weight; font-size: 36px; margin-top: 48px; margin-bottom: 12px; } .static-content h5 { /* h3 style */ font-weight: $bold-font-weight;; font-size: 24px; margin-top: 48px; margin-bottom: 12px; } }
Fix mobilization list item name cell font-size.
@import '../../_mobilization-list-variables'; .mobilization-list { .mobilization-list-item { .list-item-name { font-size: .95vw; .table { height: $avatarHeight; } } } }
@import '../../_mobilization-list-variables'; .mobilization-list { .mobilization-list-item { .list-item-name { .table { height: $avatarHeight; } } } }
Remove scrollbars for dummy transitions
@import 'bootstrap'; @import 'modals'; @import 'flyouts'; @import 'popovers'; @import 'tabs'; @import 'navigation'; @import 'typography'; body { margin: 0; background-color: $clouds; font-weight: 100; } .main-container { padding: 0 20px 100px; @media screen and (min-width: 768px) { padding-left: 270px; } } .example-button-container { margin: 40px; &.frontpage { #hello-world { margin: 60px 0; } } } #hello-world-popover { max-width: 430px; } .fixed-to-bottom { position: fixed; bottom: 0; padding: 20px 24px 20px 0; } .red-box, .blue-box, .green-box { padding: 20px; color: white; } .red-box { background-color: red; } .blue-box { background-color: blue; } .green-box { background-color: green; }
@import 'bootstrap'; @import 'modals'; @import 'flyouts'; @import 'popovers'; @import 'tabs'; @import 'navigation'; @import 'typography'; body { margin: 0; background-color: $clouds; font-weight: 100; // don't show scrollbars for certain transitions overflow: hidden; } .main-container { padding: 0 20px 100px; @media screen and (min-width: 768px) { padding-left: 270px; } } .example-button-container { margin: 40px; &.frontpage { #hello-world { margin: 60px 0; } } } #hello-world-popover { max-width: 430px; } .fixed-to-bottom { position: fixed; bottom: 0; padding: 20px 24px 20px 0; } .red-box, .blue-box, .green-box { padding: 20px; color: white; } .red-box { background-color: red; } .blue-box { background-color: blue; } .green-box { background-color: green; }
Fix cookie consent styling on mobile
.cc { &-banner { background-color: black; bottom: 0; color: white; display: flex; justify-content: space-around; align-items: center; height: $topbar-height; left: 0; padding: 8px; position: fixed; right: 0; z-index: 9999; } &-btn { background-color: $brand-primary; color: white !important; border-radius: 3px; text-decoration: none !important; padding: 5px 6px 4px; } &-invisible { display: none; } }
.cc { &-window { background-color: black; bottom: 0; color: white; display: flex; justify-content: space-around; align-items: center; height: $topbar-height; left: 0; padding: 8px; position: fixed; right: 0; z-index: 9999; } &-btn { background-color: $brand-primary; color: white !important; border-radius: 3px; text-decoration: none !important; padding: 5px 6px 4px; } &-invisible { display: none; } }
Change @font-face path to use relative URL
/* 960 Grid System ~ Text CSS. * Learn more ~ http://960.gs/ * * * Licensed under GPL and MIT. */ @import "960/text"; @include text; /* Need to solve licensing first */ @font-face { font-family: 'Roadgeek E'; src: local('Roadgeek E'), local('RoadgeekE'), url(/fonts/RoadgeekE.otf); } /* Headline Font based on Highway Gothic/FHWA to preserve RH identity on the web unachievable with Interstate */ @font-face { font-family: 'FreeWay Bold'; src: local('FreeWay Bold'), local('FreeWayBold'), url(/fonts/FreeWay-Bold.ttf); } body { font: 12px/1.5 $screenfont; } h1,h2,h3,h4,h5 { font-family: $headlinefont; }
/* 960 Grid System ~ Text CSS. * Learn more ~ http://960.gs/ * * * Licensed under GPL and MIT. */ @import "960/text"; @include text; /* Need to solve licensing first */ @font-face { font-family: 'Roadgeek E'; src: local('Roadgeek E'), local('RoadgeekE'), url(../../fonts/RoadgeekE.otf); } /* Headline Font based on Highway Gothic/FHWA to preserve RH identity on the web unachievable with Interstate */ @font-face { font-family: 'FreeWay Bold'; src: local('FreeWay Bold'), local('FreeWayBold'), url(../../fonts/FreeWay-Bold.ttf); } body { font: 12px/1.5 $screenfont; } h1,h2,h3,h4,h5 { font-family: $headlinefont; }
Add utilities scss to mobile
// Core variables and mixins @import "mice/variables"; @import "mice/mixins"; @import "mice/normalize"; @import "mice/typography"; @import "mice/buttons"; @import "mice/icons"; // Components @import "mice/lists"; @import "mice/media"; @import "mice/panels"; // Base CSS @import "mobile/variables"; @import "mobile/base"; @import "mobile/bars"; @import "mice/forms";
// Core variables and mixins @import "mice/variables"; @import "mice/mixins"; @import "mice/normalize"; @import "mice/typography"; @import "mice/buttons"; @import "mice/icons"; // Components @import "mice/lists"; @import "mice/media"; @import "mice/panels"; @import "mice/utilities"; // Base CSS @import "mobile/variables"; @import "mobile/base"; @import "mobile/bars"; @import "mice/forms";
Update to the size mixin
// Element Size // ********************************************** @mixin size($width, $height, $display:false) { width:$width; height:$height; @if $display { display:$display; } } // Set Mobile Box Ratio // ********************************************** @mixin setBoxRatio($width, $height, $ratio : 2) { @include device(mobile) { width: $width / $ratio; height: $height / $ratio; margin-left: ($width / ($ratio * 2)) * -1; background-size: 100% 100%; } }
// Element Size // ********************************************** @mixin size($width, $height: $width, $display:false) { width:$width; height:$height; @if $display { display:$display; } } // Set Mobile Box Ratio // ********************************************** @mixin setBoxRatio($width, $height, $ratio : 2) { @include device(mobile) { width: $width / $ratio; height: $height / $ratio; margin-left: ($width / ($ratio * 2)) * -1; background-size: 100% 100%; } }
Remove REM calc from container.
.container { @include push--sides($page-gutter); position: relative; max-width: $max-width; @include mq('tablet') { @include push--sides($page-gutter--tablet); } @include mq('desktop') { @include push--sides($page-gutter--desktop); } @include mq($max-width + ( strip-unit($page-gutter--desktop) * 10 * 2 )) { @include push--auto; } }
.container { @include push--sides($page-gutter); position: relative; max-width: $max-width; @include mq('tablet') { @include push--sides($page-gutter--tablet); } @include mq('desktop') { @include push--sides($page-gutter--desktop); } @include mq($max-width + ( $page-gutter--desktop * 2 )) { @include push--auto; } }
Remove the space between two or more consecutive code blocks.
@import "settings"; @import "mixins"; @import "documentation"; /*html*/#voxel { .voxel-hologram-code-block__example { @include voxel-hologram-code-block__example(); } .voxel-hologram-code-block__example__container { @include voxel-hologram-code-block__example__container(); } // Remove the space between the rendered example and its code. .voxel-code-snippet--display-only, .voxel-hologram-code-block__example + .voxel-code-snippet { margin-top: 0; } }
@import "settings"; @import "mixins"; @import "documentation"; /*html*/#voxel { .voxel-hologram-code-block__example { @include voxel-hologram-code-block__example(); } .voxel-hologram-code-block__example__container { @include voxel-hologram-code-block__example__container(); } // Remove the space between the rendered example and its code. .voxel-hologram-code-block__example + .voxel-code-snippet { margin-top: 0; } .voxel-code-snippet--display-only { margin-bottom: 0; margin-top: 0; } }
Add padding for breadcrumb nav
.nav-breadcrumb-select-wrapper { display: inline-block; } .nav-breadcrumb-divider { font-size: 1.5rem; font-weight: 100; line-height: 1; margin: 0 0.5rem; vertical-align: middle; } .nav-breadcrumb-select { position: relative; width: 16rem; select { padding-left: 2rem; } &::before { background-image: url('#{$static-img-path}/org-small.svg'); background-repeat: no-repeat; content: ''; position: absolute; left: 0.8rem; width: 1rem; height: 1rem; top: 0.6rem; } } .nav-breadcrumb-select-org { &::before { background-image: url('#{$static-img-path}/org-small.svg'); } } .nav-breadcrumb-select-space { &::before { background-image: url('#{$static-img-path}/space-small.svg'); } } .nav-breadcrumb-select-app { &::before { background-image: url('#{$static-img-path}/app-small.svg'); } }
@import '../core.scss'; .nav-breadcrumb { background-color: $color-white; padding: 1rem 2rem; } .nav-breadcrumb-select-wrapper { display: inline-block; } .nav-breadcrumb-divider { font-size: 1.5rem; font-weight: 100; line-height: 1; margin: 0 0.5rem; vertical-align: middle; } .nav-breadcrumb-select { position: relative; width: 16rem; select { padding-left: 2rem; } &::before { background-image: url('#{$static-img-path}/org-small.svg'); background-repeat: no-repeat; content: ''; position: absolute; left: 0.8rem; width: 1rem; height: 1rem; top: 0.6rem; } } .nav-breadcrumb-select-org { &::before { background-image: url('#{$static-img-path}/org-small.svg'); } } .nav-breadcrumb-select-space { &::before { background-image: url('#{$static-img-path}/space-small.svg'); } } .nav-breadcrumb-select-app { &::before { background-image: url('#{$static-img-path}/app-small.svg'); } }
Remove TODO comment that was done – thanks @bitboxer
// TODO: Only on small screens, otherwise put next to real content // Call it sidebar $sidebar-divider-color: #262930; section.main { @media #{$medium-up} { @include grid-column(10); } } aside.sidebar { @media #{$small-only} { @include off-canvas-menu(left); } @media #{$medium-up} { @include grid-column(2); background-color: $off-canvas-bg; } h3 { color: $topbar-link-color; } input[type=submit] { background-color: $alert-color; color: white; font-weight: bold; } hr { background-color: $sidebar-divider-color; height: 20px; border-width: 0px; } }
// Call it sidebar $sidebar-divider-color: #262930; section.main { @media #{$medium-up} { @include grid-column(10); } } aside.sidebar { @media #{$small-only} { @include off-canvas-menu(left); } @media #{$medium-up} { @include grid-column(2); background-color: $off-canvas-bg; } h3 { color: $topbar-link-color; } input[type=submit] { background-color: $alert-color; color: white; font-weight: bold; } hr { background-color: $sidebar-divider-color; height: 20px; border-width: 0px; } }
Fix bug: omitted button styling.
@import "variables"; @import "notification"; html { overflow: hidden; width: 500px; } body { margin: 0; float:left; //shrink to fit } * { box-sizing: border-box; }
@import "variables"; @import "buttons"; @import "notification"; html { overflow: hidden; width: 500px; } body { margin: 0; float: left; //shrink to fit } * { box-sizing: border-box; }
Add comments to helper classes, todo for cleanup
// Layout helper classes .is-invisible { @include is-hidden; } .is-hidden { display: none; } .is-hidden-on-small-screens { @include respond-below($break-small) { display: none !important; } } .is-hidden-on-large-screens { @include respond-at-and-above($break-small) { display: none !important; } } .clearfix { @include clearfix; } .mx-auto { margin-left: auto; margin-right: auto; } .-hoisted { @include respond-at-and-above(1200px) { margin-top: -40px; } }
/** * @file Layout Helper Classes * @module Helper Classes * @overview Utility helper classes for common layout manipulations * @todo remove .mx-auto, .-hoisted when we redo storefront pages */ .is-invisible { @include is-hidden; } .is-hidden { display: none; } .is-hidden-on-small-screens { @include respond-below($break-small) { display: none !important; } } .is-hidden-on-large-screens { @include respond-at-and-above($break-small) { display: none !important; } } .clearfix { @include clearfix; } .mx-auto { margin-left: auto; margin-right: auto; } .-hoisted { @include respond-at-and-above(1200px) { margin-top: -40px; } }
Add padding to media elements to match copy margins
@import 'base'; body { // margin: 0; } // Allow opening section to be full height body, html, .main-content-view { height: 100%; } %ornamentation { position: relative; margin-left: auto; margin-right: auto; &:after { display: block; width: rem(200); height: 0; padding-bottom: rem(6); background-color: $orange; margin: 0 auto; margin-top: $base-line-height / 3; margin-bottom: $base-line-height * 2; content: "" } } .section-title { @extend %ornamentation; text-align: center; } *, *:before, *:after { box-sizing: border-box; } %vertically-centre { position: relative; top: 50%; transform: translateY(-50%); } .media { max-width: rem(1400); margin: 0 auto; }
@import 'base'; body { // margin: 0; } // Allow opening section to be full height body, html, .main-content-view { height: 100%; } %ornamentation { position: relative; margin-left: auto; margin-right: auto; &:after { display: block; width: rem(200); height: 0; padding-bottom: rem(6); background-color: $orange; margin: 0 auto; margin-top: $base-line-height / 3; margin-bottom: $base-line-height * 2; content: "" } } .section-title { @extend %ornamentation; text-align: center; } *, *:before, *:after { box-sizing: border-box; } %vertically-centre { position: relative; top: 50%; transform: translateY(-50%); } .media { max-width: rem(1400); margin: 0 auto; padding: 0 10px; }
Set min height for btn-circle
.btn-outline-white { @include button-outline-variant($white, $black); } .btn-circle { z-index: 1; width: 8rem; height: 8rem; border-radius: 50%; border: 1px solid $white; background-color: transparent; display: block; position: relative; overflow: hidden; a { width: 100%; color: $white; display: inline-block; transform: translateY(-90px); div { display: flex; align-items: center; justify-content: center; white-space: normal; } @include hover-focus { transform: none; } } } .btn-social { @include hover-focus; border-radius: 0; color: $white; &.btn-twitter { background: $twitter; @include hover-focus { background: darken($twitter, 5%); } } &.btn-facebook { background: $facebook; @include hover-focus { background: darken($facebook, 5%); } } &.btn-googleplus { background: $googleplus; @include hover-focus { background: darken($googleplus, 5%); } } &.btn-linkedin { background: $linkedin; @include hover-focus { background: darken($linkedin, 5%); } } @include hover-focus { color: $white; } } .btn-scroll { visibility: hidden; }
.btn-outline-white { @include button-outline-variant($white, $black); } .btn-circle { z-index: 1; width: 8rem; min-height: 8rem; border-radius: 50%; border: 1px solid $white; background-color: transparent; display: block; position: relative; overflow: hidden; a { width: 100%; color: $white; display: inline-block; transform: translateY(-90px); div { display: flex; align-items: center; justify-content: center; white-space: normal; } @include hover-focus { transform: none; } } } .btn-social { @include hover-focus; border-radius: 0; color: $white; &.btn-twitter { background: $twitter; @include hover-focus { background: darken($twitter, 5%); } } &.btn-facebook { background: $facebook; @include hover-focus { background: darken($facebook, 5%); } } &.btn-googleplus { background: $googleplus; @include hover-focus { background: darken($googleplus, 5%); } } &.btn-linkedin { background: $linkedin; @include hover-focus { background: darken($linkedin, 5%); } } @include hover-focus { color: $white; } } .btn-scroll { visibility: hidden; }
Fix centering issue with new catalog placement
@import '../variables.scss'; @import '../classes.scss'; .root { display: flex; flex-direction: column; justify-content: space-between; align-items: top; text-transform: uppercase; margin: 50px auto; > a { padding: 25px 0; display: flex; flex-direction: column; justify-content: space-between; align-items: center; text-decoration: none; > div { text-align: center; } } } @media (min-width: $screen-md-min) { .root { flex-direction: row; } }
@import '../variables.scss'; @import '../classes.scss'; .root { display: flex; flex-direction: column; justify-content: space-between; align-items: top; text-transform: uppercase; margin: 50px auto; > a { padding: 25px 0; display: flex; flex-direction: column; justify-content: space-between; align-items: center; text-decoration: none; > div { text-align: center; } } a:first-child:nth-last-child(1) { /* Center catalogs when there is only one */ width: 100%; } } @media (min-width: $screen-md-min) { .root { flex-direction: row; } }
Add new rules for columns in fadder section
#fadder { background-color: #fff; color: #222; transform: skew(0deg, -2deg); padding-top: 50px; padding-bottom: 50px; margin-bottom: 85px; .component { transform: skew(0deg, 2deg); } }
#fadder { background-color: #fff; color: #222; transform: skew(0deg, -2deg); padding-top: 50px; padding-bottom: 50px; margin-bottom: 85px; .component { transform: skew(0deg, 2deg); } } .fadder-content { display: flex; } .fadder-description { width: 70%; } .fadder-imageColumn { width: 30%; display: relative; } .fadder-image { height: 250px; position: absolute; top: 0px; }
Allow a display parameter in the ellipsis mixin
@charset "UTF-8"; /// Truncates text and adds an ellipsis to represent overflow. /// /// @param {number} $width [100%] /// The `max-width` for the string to respect before being truncated /// /// @example scss /// .element { /// @include ellipsis; /// } /// /// @example css /// .element { /// display: inline-block; /// max-width: 100%; /// overflow: hidden; /// text-overflow: ellipsis; /// white-space: nowrap; /// word-wrap: normal; /// } @mixin ellipsis($width: 100%) { display: inline-block; max-width: $width; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; word-wrap: normal; }
@charset "UTF-8"; /// Truncates text and adds an ellipsis to represent overflow. /// /// @param {number} $width [100%] /// The `max-width` for the string to respect before being truncated /// /// @example scss /// .element { /// @include ellipsis; /// } /// /// @example css /// .element { /// display: inline-block; /// max-width: 100%; /// overflow: hidden; /// text-overflow: ellipsis; /// white-space: nowrap; /// word-wrap: normal; /// } @mixin ellipsis($width: 100%, $display: inline-block) { display: $display; max-width: $width; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; word-wrap: normal; }
Put the application CSS back to the original format
/* * 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 vendor/assets/stylesheets of plugins, if any, 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_tree . *= require_self */
Add style for a tag badge (number of questions tagged with badge)
//= require select2 .tags-display { background: #d7dce0; padding: 10px; margin: 25px auto; i.icon-tags { background: #1abc9c; color: white; } .tag { border-radius: 4px; background: white; color: #1abc9c; cursor: pointer; overflow: hidden; padding: 6px 13px 6px 13px; position: relative; vertical-align: middle; display: inline-block; zoom: 1; } }
//= require select2 .badge-tag { background-color: #1abc9c; } .tags-display { background: #d7dce0; padding: 10px; margin: 25px auto; i.icon-tags { background: #1abc9c; color: white; } .tag { border-radius: 4px; background: white; color: #1abc9c; cursor: pointer; overflow: hidden; padding: 6px 13px 6px 13px; position: relative; vertical-align: middle; display: inline-block; zoom: 1; } }
Add fix for IE11 flexbox height bug
#app-sidebar { position: fixed !important; } #app-content { width: $navigation-width !important; } #app-sidebar.disappear { right: -$sidebar-max-width !important; }
#app-sidebar { position: fixed !important; } #app-content { width: $navigation-width !important; /** * set min height so the container will grow in IE11 * https://stackoverflow.com/questions/28627879/flexbox-not-filling-height-in-ie11 */ min-height: calc(100vh - 50px); } #app-sidebar.disappear { right: -$sidebar-max-width !important; }
Make action item height dynamic
.action-grid { @include clearfix; margin: $base-spacing 0; position: relative; button { color: $base-font-color; white-space: normal; } } .action-grid__action { $grid-item-border: 1px solid transparentize($base-font-color, .8); @include transition (all .2s ease-in-out); background: $base-background-color; border-bottom: $grid-item-border; border-right: $grid-item-border; cursor: pointer; float: left; overflow: hidden; width: 100%; @include media($large-screen) { @include span-columns(4); height: 14em; padding: 2em; } &:hover { background: transparentize($base-font-color, .95); } h2 { color: $base-font-color; font-size: 1.3em; margin-bottom: .4em; } } .nearby-station-search h2 { &:before { @include sprite-rail-station-small; content: ''; display: inline-block; margin-right: $base-spacing / 2; vertical-align: middle; @include media($large-screen) { @include sprite-rail-station; display: block; margin: 0 auto $base-spacing / 2; } } }
.action-grid { @include clearfix; margin: $base-spacing 0; position: relative; button { color: $base-font-color; white-space: normal; } } .action-grid__action { $grid-item-border: 1px solid transparentize($base-font-color, .8); @include transition (all .2s ease-in-out); background: $base-background-color; border-bottom: $grid-item-border; border-right: $grid-item-border; cursor: pointer; float: left; overflow: hidden; width: 100%; @include media($large-screen) { @include span-columns(4); padding: 2em; } &:hover { background: transparentize($base-font-color, .95); } h2 { color: $base-font-color; font-size: 1.3em; margin-bottom: .4em; } } .nearby-station-search h2 { &:before { @include sprite-rail-station-small; content: ''; display: inline-block; margin-right: $base-spacing / 2; vertical-align: middle; @include media($large-screen) { @include sprite-rail-station; display: block; margin: 0 auto $base-spacing / 2; } } }
Increase width of indented panel within forms
// Panels // ========================================================================== // GOV.UK front end toolkit dependencies @import "helpers"; // Indented panels with a grey left hand border .panel-indent { @extend %contain-floats; clear: both; border-left: 10px solid $border-colour; padding: em(15,19); margin-bottom: em(15,19); legend { margin-top: 0; } // Remove bottom margin on last paragraph p:only-child, p:last-child { margin-bottom: 0; } .form-group:last-child { margin-bottom: 0; } }
// Panels // ========================================================================== // GOV.UK front end toolkit dependencies @import "helpers"; // Indented panels with a grey left hand border .panel-indent { @extend %contain-floats; clear: both; border-left: 10px solid $border-colour; padding: em(15,19); margin-bottom: em(15,19); legend { margin-top: 0; } // Remove bottom margin on last paragraph p:only-child, p:last-child { margin-bottom: 0; } .form-group:last-child { margin-bottom: 0; } } // Indented panels within forms form .panel-indent { border-left-width: 5px; padding-bottom: 0; }
Fix query builder background color
.mb-element-queryBuilder.modal-body { background-color: #00ff00; .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 { 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 { } }
Set a max-width on the email field
--- --- /** * Overrides and custom styles for the tech blog. * Built for Neue 6.0. */ body { background: #fff; } .chrome > .wrapper { box-shadow: none; } .navigation__intro { float: left; padding: 12px; font-weight: 400; } .navigation__intro, .navigation__intro a { color: #999; font-weight: 400; } .navigation__intro .navigation__intro-primary { color: #000; font-weight: 700; } .post-link-heading { margin-bottom: 0; } .post-link-heading a { color: #4e2b63; } .post-link-heading a:after { content: ' β†’'; font-family: 'Helvetica Neue', 'Arial', sans-serif; color: #ddd; text-decoration: none; } .post-link-heading a:hover { text-decoration: none; } .post .footnote { margin-bottom: 24px; } .post-link-heading a:hover span { text-decoration: underline; } .post-date { margin-bottom: 12px; } .cta { border: 2px solid rgb(221, 221, 221); } input.email { width: 322px; }
--- --- /** * Overrides and custom styles for the tech blog. * Built for Neue 6.0. */ body { background: #fff; } .chrome > .wrapper { box-shadow: none; } .navigation__intro { float: left; padding: 12px; font-weight: 400; } .navigation__intro, .navigation__intro a { color: #999; font-weight: 400; } .navigation__intro .navigation__intro-primary { color: #000; font-weight: 700; } .post-link-heading { margin-bottom: 0; } .post-link-heading a { color: #4e2b63; } .post-link-heading a:after { content: ' β†’'; font-family: 'Helvetica Neue', 'Arial', sans-serif; color: #ddd; text-decoration: none; } .post-link-heading a:hover { text-decoration: none; } .post .footnote { margin-bottom: 24px; } .post-link-heading a:hover span { text-decoration: underline; } .post-date { margin-bottom: 12px; } .cta { border: 2px solid rgb(221, 221, 221); } input.email { max-width: 322px; }
Add fallback styles for when social buttons fail to load.
.Footer { display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 1.5rem 1.5rem; background: hsl(0, 0, 25%); color: hsl(0, 0, 60%); font-size: 0.85em; text-align: center; a { padding-bottom: 1px; border: 0; color: hsl(0, 0, 90%); &:hover, &:focus, &:active { color: #fff; text-decoration: underline; } } } .Footer-credits { margin: 0; padding: 0; } .Footer-credit { display: block; margin: 0; @include breakpoint("med") { display: inline-block; margin: 0 0.25em; } } .Footer-creditSeparator { display: none; @include breakpoint("med") { display: inline-block; padding: 0 0.25em; } } .Footer-social iframe { display: inline-block; margin: 0 0 1em; }
.Footer { display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 1.5rem 1.5rem; background: hsl(0, 0, 25%); color: hsl(0, 0, 60%); font-size: 0.85em; text-align: center; a { padding-bottom: 1px; border: 0; color: hsl(0, 0, 90%); &:hover, &:focus, &:active { color: #fff; text-decoration: underline; } } } .Footer-credits { margin: 0; padding: 0; } .Footer-credit { display: block; margin: 0; @include breakpoint("med") { display: inline-block; margin: 0 0.25em; } } .Footer-creditSeparator { display: none; @include breakpoint("med") { display: inline-block; padding: 0 0.25em; } } .Footer-social { a, // for if loading the social button fails iframe { display: inline-block; margin: 0 0 1em; vertical-align: top; } }
Add new image to large screen display
@charset "UTF-8" /*Layout (global rules for all sizes) */ body { margin:0; padding:0; header a.logo{ display: block; position: absolute; background-position: 0px 0px; background-repeat: no-repeat; } nav{ width: 100%; display: block; position: absolute; background-color: #a6430a; } } /*Large Screen style sheets */ @media screen and (max-width: 990px){ body footer{ padding-left: 20px; } } header{ height: 275px; background: url(personal-website-new.png) no-repeat right 0px; a.logo{ width: 150px; height: 85px; top: 28px; right: 30px; } } article{ padding: 60px 20px 10px 20px; } .promo-container{ padding: 0px 0px 15px 20px; .promo{ width: 33%; float: left; .content{ padding: 0px 30px 0px 70px; } } } nav{ top: 275px; a{ margin: 12px 0px 10px 20px; } }
@charset "UTF-8" /*Layout (global rules for all sizes) */ body { margin:0; padding:0; header a.logo{ display: block; position: absolute; background-position: 0px 0px; background-repeat: no-repeat; } nav{ width: 100%; display: block; position: absolute; background-color: #a6430a; } } /*Large Screen style sheets */ @media screen and (max-width: 990px){ body footer{ padding-left: 20px; } } header{ height: 275px; background: url(personal-website-text-hd.png) no-repeat right 0px; background-size: 100% auto; } article{ padding: 60px 20px 10px 20px; } .promo-container{ padding: 0px 0px 15px 20px; .promo{ width: 33%; float: left; .content{ padding: 0px 30px 0px 70px; } } } nav{ top: 275px; a{ margin: 12px 0px 10px 20px; } }
Move to folder: expand button padding updated.
.pd-folder-tree { @extend .bordered-container; @extend .scroll-if-needed; border-radius: $global-border-radius; height: 28em; &-table { width: auto; min-width: 100%; max-width: initial; } &-listItem-button { @extend .pm-button; @extend .pm-button--for-icon; display: flex; padding: 0.25em; } &-listItem-name { min-width: 10em; } &-listItem-selected { justify-content: center; min-width: 3em; &-check { padding: 0.15em; } } }
.pd-folder-tree { @extend .bordered-container; @extend .scroll-if-needed; border-radius: $global-border-radius; height: 28em; &-table { width: auto; min-width: 100%; max-width: initial; } &-listItem-button { @extend .pm-button; @extend .pm-button--for-icon; display: flex; padding: 0; } &-listItem-name { min-width: 10em; } &-listItem-selected { justify-content: center; min-width: 3em; &-check { padding: 0.15em; } } }
Improve font loading with `swap`
@import url('https://fonts.googleapis.com/css?family=Lato:300,400,700|Source+Code+Pro:300|PT+Sans|Roboto+Slab:200'); @font-face { font-family: 'LCALLIG'; src: url('../fonts/LCALLIG.eot'); src: local('../fonts/LCALLIG'), url('../fonts/LCALLIG.woff') format('woff'), url('../fonts/LCALLIG.ttf') format('truetype'); }
@import url('https://fonts.googleapis.com/css?family=Lato:300,400,700|Source+Code+Pro:300|PT+Sans|Roboto+Slab:200&display=swap'); @font-face { font-family: 'LCALLIG'; src: url('../fonts/LCALLIG.eot'); src: local('../fonts/LCALLIG'), url('../fonts/LCALLIG.woff') format('woff'), url('../fonts/LCALLIG.ttf') format('truetype'); font-display: swap; }
Move gem import to support GOVUK Frontend
@import "conditionals"; @import "colours"; @import "typography"; @import "css3"; @import "grid_layout"; @import "measurements"; @import "design-patterns/buttons"; @import "helpers/layouts"; @import "helpers/margins"; @import "components/*"; @import "views/browse"; @import "views/latest-changes"; @import "views/topics"; @import "views/taxons"; @import "views/email-signups"; @import "views/organisations"; @import "views/organisation"; @import "views/campaign"; @import "modules/full-page-width"; // gem components @import 'govuk_publishing_components/all_components';
// gem components @import 'govuk_publishing_components/all_components'; @import "conditionals"; @import "colours"; @import "typography"; @import "css3"; @import "grid_layout"; @import "measurements"; @import "design-patterns/buttons"; @import "helpers/layouts"; @import "helpers/margins"; @import "components/*"; @import "views/browse"; @import "views/latest-changes"; @import "views/topics"; @import "views/taxons"; @import "views/email-signups"; @import "views/organisations"; @import "views/organisation"; @import "views/campaign"; @import "modules/full-page-width";
Improve layout of detail header on phones
@mixin detail-container ($bottom-border-color) { border-bottom: 1px dotted $bottom-border-color; margin: 0; min-height: 2rem; padding: 1rem 0; } @mixin detail-container-title-style () { color: $text-blue; font-size: 1rem; font-weight: bold; text-align: center; @include for-laptop-and-up { text-align: left; } &.collapsible { &::after { content: '\25BC'; } } &.collapsed { &::after { content: '\25BA'; } } } @mixin detail-container-header () { display: flex; justify-content: space-between; @include for-phone-only { flex-wrap: wrap; } } @mixin detail-container-title () { @include detail-container-title-style; } @mixin detail-container-actions () { display: flex; justify-content: space-around; & > * { margin-right: .5rem; } .bigadd { background-color: $ilios-green; color: $white; } .bigcancel { background-color: $ilios-red; color: $white; } } @mixin detail-container-content () { clear: both; margin-top: 2rem; padding: .5rem; table { @include ilios-table-structure; @include ilios-removable-table; } }
@mixin detail-container ($bottom-border-color) { border-bottom: 1px dotted $bottom-border-color; margin: 0; min-height: 2rem; padding: 1rem 0; } @mixin detail-container-title-style () { @include ilios-heading-h4; font-weight: bold; &.collapsible { &::after { content: '\25BC'; } } &.collapsed { &::after { content: '\25BA'; } } } @mixin detail-container-header () { display: flex; justify-content: space-between; @include for-phone-only { align-items: center; flex-direction: column; justify-content: space-around; } } @mixin detail-container-title () { @include detail-container-title-style; } @mixin detail-container-actions () { display: flex; justify-content: flex-end; & > * { margin-right: .5rem; } .bigadd { background-color: $ilios-green; color: $white; } .bigcancel { background-color: $ilios-red; color: $white; } } @mixin detail-container-content () { clear: both; margin-top: 2rem; padding: .5rem; table { @include ilios-table-structure; @include ilios-removable-table; } }
Remove pagination visibility if there isn_t projects to paginate
.mod-pagination { background: #f1f1f1; border: 1px solid #e5e5e5; text-align: center; padding: 1em; cursor: default; a, span { padding: 0.2em 0.3em; display: inline; font-size: 14px; } .disabled { color: #aaaaaa; } .current { font-style: normal; font-weight: bold; background-color: darken(#f1f1f1, 20); display: inline-block; width: 1.4em; height: 1.4em; line-height: 1.5; -moz-border-radius: 1em; -webkit-border-radius: 1em; border-radius: 1em; text-shadow: rgba(white, .8) 1px 1px 1px; } a { text-decoration: none; color: black; &:hover, &:focus { text-decoration: underline; } } }
.mod-pagination { text-align: center; cursor: default; .pagination{ background: #f1f1f1; border: 1px solid #e5e5e5; padding: 1em; } a, span { padding: 0.2em 0.3em; display: inline; font-size: 14px; } .disabled { color: #aaaaaa; } .current { font-style: normal; font-weight: bold; background-color: darken(#f1f1f1, 20); display: inline-block; width: 1.4em; height: 1.4em; line-height: 1.5; -moz-border-radius: 1em; -webkit-border-radius: 1em; border-radius: 1em; text-shadow: rgba(white, .8) 1px 1px 1px; } a { text-decoration: none; color: black; &:hover, &:focus { text-decoration: underline; } } }
Add aspect ratio object package demo specific styling
.c-demo__view { padding: spacing(l); border: (spacing(s) / 2) solid color(a, gray); border-bottom: none; } .c-demo { .o-grid__item > div, [class*='u-width-'] { padding: spacing(m); background: color(b, gray); text-align: center; } .o-grid__item { width: 50%; } }
.c-demo__view { padding: spacing(l); border: (spacing(s) / 2) solid color(a, gray); border-bottom: none; } .c-demo { .o-grid__item > div, [class*='u-width-'] { padding: spacing(m); background: color(b, gray); text-align: center; } .o-grid__item { width: 50%; } .o-aspect-ratio + .o-aspect-ratio { margin-top: spacing(m); } .o-aspect-ratio__inner { display: flex; align-items: center; justify-content: center; background: color(b, gray); } }
Update `.sr-only` mixin and utility
@mixin sr-only { border: 0; clip: rect(0, 0, 0, 0); clip-path: inset(50%); height: 1px; overflow: hidden; padding: 0; position: absolute; white-space: nowrap; width: 1px; } @mixin sr-only-focusable { &:active, &:focus { clip: auto; clip-path: none; height: auto; overflow: visible; position: static; white-space: normal; width: auto; } }
@mixin sr-only { border: 0; clip: rect(0, 0, 0, 0); height: 1px; overflow: hidden; padding: 0; position: absolute; white-space: nowrap; width: 1px; } @mixin sr-only-focusable { &:active, &:focus { clip: auto; height: auto; overflow: visible; position: static; white-space: normal; width: auto; } }
Move filter title font-size style so its not affecting whole f-panel
.filter { position: relative; min-height: $adl-filter-min-height; border-bottom: 2px solid $adl-grey-light; color: $adl-filter-text; font-size: 1.2rem; &.active { .option { display: block; } } .title { padding: $adl-filter-padding; } .options-list { .option { background-color: $adl-grey-darkest; padding: 8px $adl-filter-padding-side; border-top: 1px solid $adl-grey-light; color: $adl-filter-text; > input { display: none; } } .more { text-align: center; font-size: 1rem; } } }
.filter { position: relative; min-height: $adl-filter-min-height; border-bottom: 2px solid $adl-grey-light; color: $adl-filter-text; &.active { .option { display: block; } } .title { padding: $adl-filter-padding; font-size: 1.2rem; } .options-list { .option { background-color: $adl-grey-darkest; padding: 8px $adl-filter-padding-side; border-top: 1px solid $adl-grey-light; color: $adl-filter-text; > input { display: none; } } .more { text-align: center; font-size: 1rem; } } }
Expand CSS selectors with multiple items to multiline
@import 'variables'; // default icon selector #character-icon-selector { display: inline-block; vertical-align: top; margin-left: 5px; } .character-galleries-simple { padding: 10px; } .character-screenname { font-size: 85%; } .character-form { display: inline-block; vertical-align: top; } // template descriptions on templates#show .single-description { a { color: $font_color_descriptions_link; } a:visited { color: $font_color_descriptions_link_visited; } padding: 5px; background-color: $bg_color_descriptions; } // character icon view .character-icon-list { padding: 10px; } .character-icon { width: 100px; height: 100px; text-align: center; } .character-icon-item .icon { margin: 5px; } .character-no-icon { @extend .character-icon; border: 1px $border_color_character_iconless solid; display: inline-block; } // character list view .character-list-template { padding: 10px; }
@import 'variables'; // default icon selector #character-icon-selector { display: inline-block; vertical-align: top; margin-left: 5px; } .character-galleries-simple { padding: 10px; } .character-screenname { font-size: 85%; } .character-form { display: inline-block; vertical-align: top; } // template descriptions on templates#show .single-description { a { color: $font_color_descriptions_link; } a:visited { color: $font_color_descriptions_link_visited; } padding: 5px; background-color: $bg_color_descriptions; } // character icon view .character-icon-list { padding: 10px; } .character-icon { width: 100px; height: 100px; text-align: center; } .character-icon-item .icon { margin: 5px; } .character-no-icon { @extend .character-icon; border: 1px $border_color_character_iconless solid; display: inline-block; } // character list view .character-list-template { padding: 10px; }
Fix positioning of sidebar at different screen widths
body.fragments { // This was creating scrollbars .tab-content { overflow: visible; } // Make it flush .tab-pane { @include flush-child-spans; // Space sections > div { margin-bottom: 20px; } } // Make the pills grey scale .nav-pills a { color: $near-black; background: $light-grey; &:hover { color: black; background: #eee; } } .nav-pills > .active > a, .nav-pills > .active > a:hover, .nav-pills > .active > a:focus { color: white; background: $near-black; } }
body.fragments { // This was creating scrollbars .tab-content { overflow: visible; } // Make it flush .tab-pane { @include flush-child-spans; // Space sections > div { margin-bottom: 20px; } } // Make the pills grey scale .nav-pills a { color: $near-black; background: $light-grey; &:hover { color: black; background: #eee; } } .nav-pills > .active > a, .nav-pills > .active > a:hover, .nav-pills > .active > a:focus { color: white; background: $near-black; } // Fix positioning at all breakpoints. Bootstrap span rules tweak this. .nav-pills { margin-left: 0; } // Make the pills float on mobile @include respond-to($bootstrap_nav_break, down) { .nav-pills li { float:left; margin-right: 4px; } } }
Update default form space to fix subnav spacing
@import './constants.css.scss'; body { background-color: hsl(210, 100%, 98%); padding-top: $space7; font-family: 'graphik-regular'; color: $grey0; } p { font-family: 'graphik-light'; font-size: $txt2; line-height: $space4; } a { &:link, &:visited, &:hover, &:active { text-decoration: none } } .center { text-align: center; } .subnav { display: grid; grid-auto-flow: column; height: $space6; padding: $space1; align-content: center; } form.button_to { height: 0px; width: 0px; margin: 0px; padding: 0px; } // .image { // padding: 12px; // padding-left: 128px; // }
@import './constants.css.scss'; body { background-color: hsl(210, 100%, 98%); padding-top: $space7; font-family: 'graphik-regular'; color: $grey0; } p { font-family: 'graphik-light'; font-size: $txt2; line-height: $space4; } a { &:link, &:visited, &:hover, &:active { text-decoration: none } } .center { text-align: center; } .subnav { display: grid; grid-auto-flow: column; height: $space6; padding: $space1; align-content: center; border: 2px solid black; } form.button_to { height: $space5; width: $space9; margin: 0px; padding: 0px; } // .image { // padding: 12px; // padding-left: 128px; // }
Fix height of scroll area on metadata tab
#frontendDisplay { padding: 0; width: 100%; height: inherit; } #frontendDisplayParent { padding: 0; margin: 0; overflow-y: hidden; } #taleMetadataForm { margin-top: 20px; } .or:before { color: rgba(0, 0, 0, 0.7) !important; font-size: 1.5em; margin-left: -5px; } #tale-icon { margin-right: 0; } #environmentDropdown { width: 100% } .environment-icon { height: 28px; width: 28px; } #taleTabSelector { display: inline-flex; } #taleMetadataTab { overflow-x: auto; max-height: 50vh; }
#frontendDisplay { padding: 0; width: 100%; height: inherit; } #frontendDisplayParent { padding: 0; margin: 0; overflow-y: hidden; } #taleMetadataForm { margin-top: 20px; } .or:before { color: rgba(0, 0, 0, 0.7) !important; font-size: 1.5em; margin-left: -5px; } #tale-icon { margin-right: 0; } #environmentDropdown { width: 100% } .environment-icon { height: 28px; width: 28px; } #taleTabSelector { display: inline-flex; } #taleMetadataTab { overflow: auto; height: calc(100vh - (2.5rem + 50px + 40px + 50px + 0px + 94px + 50px)); }
Make search form less broken on old browsers.
.search-form { @include clearfix; position: relative; @include media('medium') { @include span(8); } @include media('large') { @include span(9); } input[type='search'] { box-sizing: border-box; width: 100%; color: #fff; border: rgba(#222, 0.8); background: rgba(#222, 0.8) data-url($data-search-white-svg) ($base-spacing / 2) 48% no-repeat; background-size: $base-spacing $base-spacing; padding-left: ($base-spacing * 2); } }
.search-form { @include clearfix; position: relative; @include media('medium') { @include span(8); } @include media('large') { @include span(9); } input[type='search'] { box-sizing: border-box; width: 100%; color: #fff; border: rgba(#222, 0.8); background: #222 data-url($data-search-white-svg) ($base-spacing / 2) 48% no-repeat; background-color: rgba(#222, 0.8); background-size: $base-spacing $base-spacing; padding-left: ($base-spacing * 2); } }
Add fade animations scss to utilities
// // Utility classes // -------------------------------------------------- // Floats // ------------------------- // Floated .clearfix { @include clearfix(); } .centered { display: block; float: none; margin-left: auto; margin-right: auto; } .lefted { float: left !important; } .righted { float: right !important; } // Toggling content // ------------------------- .hide { display: none !important; } .show { display: block !important; } .invisible { visibility: hidden; } .hidden { display: none !important; visibility: hidden !important; } .text-hide {} // For Affix plugin // ------------------------- .affix { position: fixed; }
// // Utility classes // -------------------------------------------------- // Floats // ------------------------- // Floated .clearfix { @include clearfix(); } .centered { display: block; float: none; margin-left: auto; margin-right: auto; } .lefted { float: left !important; } .righted { float: right !important; } // Toggling content // ------------------------- .hide { display: none !important; } .show { display: block !important; } .invisible { visibility: hidden; } .hidden { display: none !important; visibility: hidden !important; } .text-hide {} // For Affix plugin // ------------------------- .affix { position: fixed; } // // Component animations // ------------------------- .fade { opacity: 0; @include transition(opacity .15s linear); &.in { opacity: 1; } }
Fix icon button theme after refactor.
// // Copyright 2022 Google LLC // SPDX-License-Identifier: Apache-2.0 // @forward './lib/icon-button-theme' show theme;
// // Copyright 2022 Google LLC // SPDX-License-Identifier: Apache-2.0 // @forward './lib/standard-icon-button-theme' show theme;
Add the default Compass reset
/* ========================================================================== Base ========================================================================== */ @import "settings", "webfonts", "fontawesome", "mixins"; @include establish-baseline; @import "sections", "grouping", "text-level", "tabular", "forms", // "responsive", "goodies"; // "embedded"; // Embedded Content // ================ // img, object, video
/* ========================================================================== Base ========================================================================== */ @import "settings", "webfonts", "fontawesome", "mixins"; @import "compass/reset"; @include establish-baseline; @import "sections", "grouping", "text-level", "tabular", "forms", // "responsive", "goodies"; // "embedded"; // Embedded Content // ================ // img, object, video
Set max box height to 300px for now.
/* *= require jqtree *= require jquery-ui *= require jquery.multiselect *= require jquery.multiselect.filter *= require jquery.qtip *= norequire scaffold *= require bootstrap *= require bootstrap-responsive *= require gcms */ ul.slugtree ul ul > li { margin-left: 0; } .regulationslot a { display: block; width: 100%; } ul.slugtree ul ul > li { margin-left: 3%; width: 97% } ul.slugtree ul ul.spannomargin > li { margin-left: 0pt; } .selected a { color:#fff; } .sluglist .prefix { font-weight: bold; margin-right: 10px; } .sluglist .collapsed { display: inline-block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } .sluglist li { padding: 0px; margin: 0px; } .regulationslot a { color: #666; display: block; } .WidgetBox { .WidgetBoxContent { overflow:auto; max-height: 500px; } .WidgetBoxContent { width: auto; } .smallerWidgetBoxHeading { margin-bottom: -2px; } }
/* *= require jqtree *= require jquery-ui *= require jquery.multiselect *= require jquery.multiselect.filter *= require jquery.qtip *= norequire scaffold *= require bootstrap *= require bootstrap-responsive *= require gcms */ ul.slugtree ul ul > li { margin-left: 0; } .regulationslot a { display: block; width: 100%; } ul.slugtree ul ul > li { margin-left: 3%; width: 97% } ul.slugtree ul ul.spannomargin > li { margin-left: 0pt; } .selected a { color:#fff; } .sluglist .prefix { font-weight: bold; margin-right: 10px; } .sluglist .collapsed { display: inline-block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } .sluglist li { padding: 0px; margin: 0px; } .regulationslot a { color: #666; display: block; } .WidgetBox { .WidgetBoxContent { overflow:auto; max-height: 300px; } .WidgetBoxContent { width: auto; } .smallerWidgetBoxHeading { margin-bottom: -2px; } }
Fix style for identify popup in FF
.flexberry-map { font-family: inherit; height: 500px; width: 100%; &.crosshair { cursor: crosshair; } &.zoom-in { cursor: zoom-in; } &.zoom-out { cursor: zoom-out; } &.help { cursor: help; } &-loader { z-index: 10001 !important; color: #ffffff !important; &-dimmer { z-index: 10000 !important; } } .identify-popup { .ui.accordion .item .title, .ui.list .item { cursor: pointer; } .item.active { background: #aecff7; border: 1px solid gray; border-radius: 2px; } .leaflet-popup-content { margin: 1.5em 1.5em; .column { overflow: auto; } } .ui.accordion .content .ui.list { margin-left: 2em !important; } } }
.flexberry-map { font-family: inherit; height: 500px; width: 100%; &.crosshair { cursor: crosshair; } &.zoom-in { cursor: zoom-in; } &.zoom-out { cursor: zoom-out; } &.help { cursor: help; } &-loader { z-index: 10001 !important; color: #ffffff !important; &-dimmer { z-index: 10000 !important; } } .identify-popup { .ui.accordion .item .title, .ui.list .item { cursor: pointer; } .item.active { background: #aecff7; border: 1px solid gray; border-radius: 2px; } .leaflet-popup-content { margin: 1.5em 1.5em; .column { overflow: auto; max-height: 100%; } } .ui.accordion .content .ui.list { margin-left: 2em !important; } } }
Add a min height of 45px to the console
.consolation-console { display: block; white-space: pre-wrap; background: #333; color: #eee; padding: 13px; border-radius: 3px; box-shadow: 0px 0px 23px rgba(0,0,0,0.5) inset; line-height: 1.4; } .consolation-ansi-green { color: #859900 } .consolation-ansi-cyan { color: #2aa198 } .consolation-ansi-blue { color: #268bd2 } .consolation-ansi-magenta { color: #6c71c4 } .consolation-ansi-red { color: #dc322f } .consolation-ansi-orange { color: #cb4b16 } .consolation-ansi-yellow { color: #b58900 } .consolation-ansi-bold { color: #93a1a1; font-weight: bold; }
.consolation-console { display: block; white-space: pre-wrap; background: #333; color: #eee; padding: 13px; border-radius: 3px; box-shadow: 0px 0px 23px rgba(0,0,0,0.5) inset; line-height: 1.4; min-height: 45px; } .consolation-ansi-green { color: #859900 } .consolation-ansi-cyan { color: #2aa198 } .consolation-ansi-blue { color: #268bd2 } .consolation-ansi-magenta { color: #6c71c4 } .consolation-ansi-red { color: #dc322f } .consolation-ansi-orange { color: #cb4b16 } .consolation-ansi-yellow { color: #b58900 } .consolation-ansi-bold { color: #93a1a1; font-weight: bold; }
Add in row highlighting for ease of reading
.school-overview { .column { display: inline-block; vertical-align: top; padding: 8px 5px; &.pad-column-right { padding-right: 10px; } & > div.CollapsableTable { border-bottom: 1px solid #ddd; &:last-child { border-bottom: 0; } } } .column table td.caption-cell { width: 130px; } .grades-column table td.caption-cell { width: 40px; } .attendance-column table td.caption-cell { width: 100px; } .interventions-column table td.caption-cell { width: 175px; } .FixedTable { table { table-layout: fixed; border-collapse: collapse; td { padding: 0; } } .bar { background-color: rgba(49, 119, 201, 0.75); } } .StudentsTable { table.students-table { border-collapse: collapse; thead th { font-size: 12px; border-bottom: 1px solid #ccc; } th, td { padding: 2px 10px; text-align: left; } } } }
.school-overview { .column { display: inline-block; vertical-align: top; padding: 8px 5px; &.pad-column-right { padding-right: 10px; } & > div.CollapsableTable { border-bottom: 1px solid #ddd; &:last-child { border-bottom: 0; } } } .column table td.caption-cell { width: 130px; } .grades-column table td.caption-cell { width: 40px; } .attendance-column table td.caption-cell { width: 100px; } .interventions-column table td.caption-cell { width: 175px; } .FixedTable { table { table-layout: fixed; border-collapse: collapse; td { padding: 0; } } .bar { background-color: rgba(49, 119, 201, 0.75); } } .StudentsTable { table.students-table { border-collapse: collapse; thead th { font-size: 12px; border-bottom: 1px solid #ccc; } tr:hover { background-color: $table-row-hover; } th, td { padding: 4px 10px; text-align: left; } } } }
Update location and names for new document icons
// Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. // Image paths $ms-brand-icon-product-images-path: 'https://static2.sharepointonline.com/files/fabric/assets/brand-icons/product/png'; $ms-brand-icon-document-images-path: 'https://static2.sharepointonline.com/files/fabric/assets/brand-icons/document/png'; // Names $ms-brand-icon-product-icons: access excel infopath office onedrive onenote outlook powerpoint project sharepoint visio word; $ms-brand-icon-document-icons: accdb csv docx dotx mpp mpt odp ods odt one onepkg onetoc potx ppsx pptx pub vsdx vssx vstx xls xlsx xltx xsn; // Sizes $ms-brand-icon-sizes: 16 48 96;
// Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. // Image paths $ms-brand-icon-product-images-path: 'https://static2.sharepointonline.com/files/fabric/assets/brand-icons/product/png'; $ms-brand-icon-document-images-path: 'https://spoprod-a.akamaihd.net/files/fabric/assets/item-types'; // Names $ms-brand-icon-product-icons: access excel infopath office onedrive onenote outlook powerpoint project sharepoint visio word; $ms-brand-icon-document-icons: accdb archive audio code csv docset docx dotx email exe folder font genericfile html link listitem model mpp mpt odp ods odt one onetoc pdf photo potx ppsx pptx pub rtf sharedfolder spo sysfile txt vector video vsdx vssx vstx xlsx xltx xml xsn zip; // Sizes $ms-brand-icon-sizes: 16 48 96;
Change cursor to pointer when hovering a sticker
.sticker { min-width: 118px; border-radius: 6px; background: #fff; margin: 2px; padding: 10px; height: 110px; background-repeat: no-repeat; background-position: center; background-size: contain; } .image { height: 101px; max-width: 100%; }
.sticker { min-width: 118px; border-radius: 6px; background: #fff; margin: 2px; padding: 10px; height: 110px; background-repeat: no-repeat; background-position: center; background-size: contain; cursor: pointer; } .image { height: 101px; max-width: 100%; }
Fix default font for pagination
// Base // // Glabal overrides for base Poole components. // Body font body { font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif; } // Fix `<p>` tags inside `<dd>` causing unnecessary margins. dd { p { &:last-child { margin-bottom: 0; } } }
// Base // // Glabal overrides for base Poole components. // Body font body { font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif; } // Fix `<p>` tags inside `<dd>` causing unnecessary margins. dd { p { &:last-child { margin-bottom: 0; } } } // Change default font for pagnation. .pagination { font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif; }
Add responsive social links to footer
body > footer { background-color: $color-font-base; color: $white; font-family: "Lato", sans-serif; padding-top: 1em * $golden; padding-bottom: 1em * $golden; text-align: center; p { margin-bottom: 0; } ul.social-links { padding: 0; margin: 0; li { display: inline-block; padding: $golden * 0.5em; } a, a > i { color: $white; &:HOVER { color: #ffffff; } } } i { color: $primary-color; padding-left: 5px; padding-right: 5px; } }
body > footer { background-color: $color-font-base; color: $white; font-family: "Lato", sans-serif; padding-top: 1em * $golden; padding-bottom: 1em * $golden; text-align: center; p { margin-bottom: 0; } ul.social-links { padding: 0; margin: 0; @include columns(4, $target: 'li', $container-align: 'center'); @include breakpoint('from-tablet') { @include columns(8, $target: 'li', $container-align: 'center'); } li { display: inline-block; padding: $golden * 0.5em; } a, a > i { color: $white; &:HOVER { color: #ffffff; } } } i { color: $primary-color; padding-left: 5px; padding-right: 5px; } }
Move tiles to 3D composite layer. This prevents repaint of page and text flicker caused by Unveil.
// Tile pattern enhancements .tile { img[data-src] { opacity: 0; transition: opacity 0.5s; } }
// Tile pattern enhancements .tile { transform: translateZ(0); img[data-src] { opacity: 0; transition: opacity 0.5s; } }
Check and times icon to be blue and red globally
.organisation-details { padding: 30px 0; .select2-container { width: 100% !important; } } .access-list-container { margin: 10px 0; width: 600px; background-color: $lightest-grey; } .access-list-table { width: 520px; margin: 0 auto; th { border-bottom: 1px solid $light-grey; padding: 10px 0; color: $grey; } td { padding: 20px 0; } .fa { margin-right: 5px; } .fa-check { color: $main-blue; } .fa-times { color: $red; } }
.organisation-details { padding: 30px 0; .select2-container { width: 100% !important; } } .access-list-container { margin: 10px 0; width: 600px; background-color: $lightest-grey; } .access-list-table { width: 520px; margin: 0 auto; th { border-bottom: 1px solid $light-grey; padding: 10px 0; color: $grey; } td { padding: 20px 0; } .fa { margin-right: 5px; } } .fa-check { color: $main-blue; } .fa-times { color: $red; }
Make sure images are in a square dimension
.about { .col-md-4 > div { position: relative; overflow: hidden; padding-bottom: 100%; img { position:absolute; width: 100%; } } }
.about { .col-md-4 > div { position: relative; overflow: hidden; padding-bottom: 100%; img { position:absolute; min-width: 100%; min-height: 100%; } } }
Add todo about hint styling.
fieldset { background-color: #f9f9f9; &.radius { border-radius: 3px; } } .alert-box.alert { color: white; .close { color: rgb(242,222,222); } } .top-bar { margin-top: 15px; }
fieldset { background-color: #f9f9f9; &.radius { border-radius: 3px; } } .alert-box.alert { color: white; .close { color: rgb(242,222,222); } } .top-bar { margin-top: 15px; } span.hint { // TODO add some styles for the form field hints. }
Add warning to mute if non-decimal value used
// ------------------------------------------------------------------- // // Muted // ------------------------------------------------------------------- // @mixin muted($mute-amt){ opacity: $mute-amt; filter: alpha(opacity=($mute-amt * 100)); }
// ------------------------------------------------------------------- // // Muted // ------------------------------------------------------------------- // @mixin muted($mute-amt){ @if $mute-amt > 1{ @warn "Mute amount should be in decimal format (.1, .2, .etc)"; } @else { opacity: $mute-amt; filter: alpha(opacity=($mute-amt * 100)); } }
Add space before search field
.search-results { .search-results-item { .result-type { display: none; } } }
.courses-container { .wrapper-search-context { padding-top: 25px; } } .search-results { .search-results-item { .result-type { display: none; } } }
Set max width on overview image
// Place all the styles related to the areas controller here. // They will automatically be included in application.css. // You can use Sass (SCSS) here: http://sass-lang.com/ .overview { text-align: center; }
// Place all the styles related to the areas controller here. // They will automatically be included in application.css. // You can use Sass (SCSS) here: http://sass-lang.com/ .overview { text-align: center; img { max-width: 100%; } }
Add Minimal Styling for Club Edit Page
.club-welcome-container { border-bottom: 1px solid #DDDDDD; height: 35px; padding: 12px 0px; .club-welcome { .club-welcome-text { font-size: 25px; line-height: 34px; } } } .club-avatar-name-description { height: 270px; margin-top: 20px; .club-avatar { img { height: 100%; max-width: 100%; } } .club-name-description { height: 100%; .club-name { font-size: 50px; font-weight: bold; height: 55px; line-height: 35px; text-align: center; } .club-description { font-size: 18px; } } }