Instruction
stringlengths
14
778
input_code
stringlengths
0
4.24k
output_code
stringlengths
1
5.44k
Use pycon color for links.
@import "~normalize.css"; $base1: #b4beff; $base2: #eb718b; $base01: #333;
@import "~normalize.css"; $base1: #b4beff; $base2: #eb718b; $base01: #333; a { color: $base2; }
Change colour on training dates
article.event { @include rem-fallback(padding, 0, 0, (($baseline - 1) / $base_font_size), 10); border-bottom: 1px solid $light_grey; position: relative; &:last-of-type { @include rem-fallback(margin-bottom, 1.5); } p.start_at { position: absolute; left: 0; @include rem-fallback(top, 1); background: $dark_blue; color: $white; @include rounded; @include rem-fallback(font-size, 1.125); @include rem-fallback(padding, 0.75); font-family: $chevin_medium; text-align: center; } }
article.event { @include rem-fallback(padding, 0, 0, (($baseline - 1) / $base_font_size), 10); border-bottom: 1px solid $light_grey; position: relative; &:last-of-type { @include rem-fallback(margin-bottom, 1.5); } p.start_at { position: absolute; left: 0; @include rem-fallback(top, 1); background: $blue; color: $white; @include rounded; @include rem-fallback(font-size, 1.125); @include rem-fallback(padding, 0.75); font-family: $chevin_medium; text-align: center; } }
Remove padding bottom for charts. Wrong solution.
.ilios-chart { padding-bottom: 100%; svg { text { font-size: .8 * $base-font-size; } } .svg-container { overflow: visible; padding-bottom: 100%; // aspect ratio vertical-align: top; width: 100%; @include media($small-screen) { padding-bottom: 26%; // aspect ratio width: 50%; } @include media($medium-screen) { padding-bottom: 6%; // aspect ratio } @include media($large-screen) { padding-bottom: 100%; // aspect ratio } } }
.ilios-chart { svg { text { font-size: .8 * $base-font-size; } } .svg-container { overflow: visible; padding-bottom: 100%; // aspect ratio vertical-align: top; width: 100%; @include media($small-screen) { padding-bottom: 26%; // aspect ratio width: 50%; } @include media($medium-screen) { padding-bottom: 6%; // aspect ratio } @include media($large-screen) { padding-bottom: 100%; // aspect ratio } } }
Add underline on active item
// Real Crowd Custom Bootsrap overrides // // Copy class names from specific files ex. `_breadcrumb.scss` to this file to override default conventions (ex. link colors) or add extra UI details (ex. underline on active link states) without modifying source files. //Table of Contents // Breadcrumbs // Nav //Breadcrumbs .breadcrumb a { color: $brand-primary; }
// Real Crowd Custom Bootsrap overrides // // Copy class names from specific files ex. `_breadcrumb.scss` to this file to override default conventions (ex. link colors) or add extra UI details (ex. underline on active link states) without modifying source files. //Table of Contents // Breadcrumbs // Nav //Breadcrumbs .breadcrumb-item { a { color: $brand-primary; } &.active { text-decoration: underline; } }
Make less padding on pagination
nav.pagination { margin: 15px 0 30px; span { &.current { @include border-radius(5px); background-color: $dark-blue; border: 1px solid $dark-blue; color: #fff; padding: 5px 2px 5px 4px; margin: 0 4px; } a { &:hover { background-color: $gop-red; border: 1px solid $gop-red; text-decoration: none; } @include border-radius(5px); background-color: $light-blue; border: 1px solid $light-blue; color: #fff; padding: 5px; } } }
nav.pagination { margin: 15px 0; span { &.current { @include border-radius(5px); background-color: $dark-blue; border: 1px solid $dark-blue; color: #fff; padding: 5px 2px 5px 4px; margin: 0 4px; } a { &:hover { background-color: $gop-red; border: 1px solid $gop-red; text-decoration: none; } @include border-radius(5px); background-color: $light-blue; border: 1px solid $light-blue; color: #fff; padding: 5px; } } }
Make sure caption doesn't get in the way of advance button
.carousel-panel-single-photo { height: 100%; width: auto; display: inline-block; box-shadow: 0px 0px 20px 10px rgba(0, 0, 0, 0.4); } .carousel-panel-single-photo-wrapper { background-color: $cool-medium-grey; // fallback background-image: url('img/carbon_fiber_dull.png'); background-size: 100px; height: 100%; width: 100%; text-align: center; position: relative; // Make absolute positioning work .carousel-single-photo-caption { position: absolute; bottom: 2rem; color: $cardboard-grey; margin-bottom: 0; left: 50%; transform: translateX(-50%); } }
.carousel-panel-single-photo { height: 100%; width: auto; display: inline-block; box-shadow: 0px 0px 20px 10px rgba(0, 0, 0, 0.4); } .carousel-panel-single-photo-wrapper { background-color: $cool-medium-grey; // fallback background-image: url('img/carbon_fiber_dull.png'); background-size: 100px; height: 100%; width: 100%; text-align: center; position: relative; // Make absolute positioning work .carousel-single-photo-caption { position: absolute; bottom: 3rem; color: $cardboard-grey; margin-bottom: 0; left: 50%; transform: translateX(-50%); } }
Remove bottom margin on jumbotrons
/* NOVA custom css Author: Shadowfacts */ .nova-nav { background-color: #FFFFFF; border-style: solid; border-bottom: thick solid #E6E6E6; } .nova-header { padding-top: 200px; padding-bottom: 100px; } .nova-desc { font-size: 25px; } .nova-downloads { background-color: #FAFAFA; .nova-core { color: #2C3E50; } .nova-title { color: #555; } } .nova-bumper { padding-top: 64px; } .nova-link { color: #18BC9C !important; } .nova-dropdown-menu { text-align: left; }
/* NOVA custom css Author: Shadowfacts */ .nova-nav { background-color: #FFFFFF; border-style: solid; border-bottom: thick solid #E6E6E6; } .nova-header { padding-top: 200px; padding-bottom: 100px; margin-bottom: 0px; } .nova-desc { font-size: 25px; } .nova-downloads { margin-bottom: 0px; background-color: #FAFAFA; .nova-core { color: #2C3E50; } .nova-title { color: #555; } } .nova-bumper { padding-top: 64px; } .nova-link { color: #18BC9C !important; } .nova-dropdown-menu { text-align: left; }
Add newline at end of file
#content section.kpi { min-height:160px; .impact-number strong { @include bold-48($tabular-numbers: true); } .period { margin-top: 5px; } .visualisation { overflow: hidden; position: relative; .stat { strong { margin-bottom: 3px; display: inline-block; padding-right: 10px; } .no-data { color: $grey-2; font-weight: normal; } } .delta { .change { @include core-24($tabular-numbers: true); } } } @media(max-width: 850px) { .delta { left: 9em; } .stat strong { margin-bottom: 8px; } } @media(max-width: 640px) { .delta { left: 8em; bottom: 2px; } .stat strong { margin-bottom: 5px; } &.cols3 { .stat strong, .stat strong.no-data { font-size: 48px; } } } } @media(max-width: 640px) { #content section.kpi.cols3 .stat strong { font-size: 48px; } }
#content section.kpi { min-height:160px; .impact-number strong { @include bold-48($tabular-numbers: true); } .period { margin-top: 5px; } .visualisation { overflow: hidden; position: relative; .stat { strong { margin-bottom: 3px; display: inline-block; padding-right: 10px; } .no-data { color: $grey-2; font-weight: normal; } } .delta { .change { @include core-24($tabular-numbers: true); } } } @media(max-width: 850px) { .delta { left: 9em; } .stat strong { margin-bottom: 8px; } } @media(max-width: 640px) { .delta { left: 8em; bottom: 2px; } .stat strong { margin-bottom: 5px; } &.cols3 { .stat strong, .stat strong.no-data { font-size: 48px; } } } } @media(max-width: 640px) { #content section.kpi.cols3 .stat strong { font-size: 48px; } }
Fix wrapping nav in Welsh
// Footer Secondary // // Styleguide Secondary Footer .footer-secondary__list { @extend .unstyled-list; margin: $baseline-unit*2 0; } .footer-secondary__list-item { margin: 0; @include respond-to($mq-s) { @include inline-block; margin-right: $baseline-unit*3; &:last-child { margin-right: 0; } } } .footer-secondary__link { @extend %type-navigation; @extend %link-nav-primary; line-height: 2.2; } .footer-secondary__opt-out { @extend %type-footer; padding: 0; margin: 0; border: 0; background: transparent; &:hover, &:focus { outline: none; text-decoration: underline; } } .language-link .icon--globe { position: relative; top: 4px; margin-right: 4px; } .accessibility-feedback-link .icon--accessibility { position: relative; top: 2px; margin-right: 4px; }
// Footer Secondary // // Styleguide Secondary Footer .footer-secondary__list { @extend .unstyled-list; margin: $baseline-unit*2 0; } .footer-secondary__list-item { margin: 0; @include respond-to($mq-s) { @include inline-block; margin-right: $baseline-unit*3; &:last-child { margin-right: 0; } } } .footer-secondary__link { @extend %font-body; @include body(14, 18); @extend %link-nav-primary; line-height: 2.2; .cy-theme & { @include body(13, 18); } } .footer-secondary__opt-out { @extend %type-footer; padding: 0; margin: 0; border: 0; background: transparent; &:hover, &:focus { outline: none; text-decoration: underline; } } .language-link .icon--globe { position: relative; top: 4px; margin-right: 4px; } .accessibility-feedback-link .icon--accessibility { position: relative; top: 2px; margin-right: 4px; }
Remove the navigation placeholder sections
/*! * Navigation abstraction * * @package #{$package_name()} * @path objects/_navigations.scss * @author Tyll Weiß <t.weiss@exinit.de> * @link http://csswizardry.com/2011/09/the-nav-abstraction/ */ /* ============================================================================= $ Navigation Object ================================================================================ * Throws a list into horizontal mode * e.g.: * <ul class="nav"> <li><a href="">Home</a></li> <li><a href="">About</a></li> <li><a href="">Products</a></li> <li><a href="">Contact</a></li> </ul> ================================================================================ */ .nav { @extend %reset-list; li { display: inline-block; } a { display: block; } } /* ======================= Stacked Navigation ======================= * Throws a list into vertical mode */ .nav--stacked li { display: list-item; } /* ========================= Fit Navigation ========================= * Force a nav to occupy 100% of the available width of its parent. * Thanks to @pimpl for this idea! */ .nav--fit { display: table; width: 100%; > li { display: table-cell; } } /* ======================== Main Navigation ========================= */ .site-nav { li { } a { } .active a { } } /* ======================== Footer Navigation ======================== */ .footer-nav { li { } a { } .active a { } }
/*! * Navigation abstraction * * @package #{$package_name()} * @path objects/_navigations.scss * @author Tyll Weiß <t.weiss@exinit.de> * @link http://csswizardry.com/2011/09/the-nav-abstraction/ */ /* ============================================================================= $ Navigation Object ================================================================================ * Throws a list into horizontal mode * e.g.: * <ul class="nav"> <li><a href="">Home</a></li> <li><a href="">About</a></li> <li><a href="">Products</a></li> <li><a href="">Contact</a></li> </ul> ================================================================================ */ .nav { @extend %reset-list; li { display: inline-block; } a { display: block; } } /* ======================= Stacked Navigation ======================= * Throws a list into vertical mode */ .nav--stacked li { display: list-item; } /* ========================= Fit Navigation ========================= * Force a nav to occupy 100% of the available width of its parent. * Thanks to @pimpl for this idea! */ .nav--fit { display: table; width: 100%; > li { display: table-cell; } }
Fix video selection buttons placement
@use '_variables' as *; @use '_mixins' as *; .action-selection-mode { display: flex; justify-content: flex-end; flex-grow: 1; } .action-selection-mode-child { position: fixed; .action-button { @include margin-left(55px); display: block; } } .action-button-cancel-selection { @include peertube-button; @include grey-button; } .video { @include row-blocks($column-responsive: false); &:first-child { margin-top: 47px; } .checkbox-container { @include margin-right(20px); @include margin-left(12px); display: flex; align-items: center; } my-video-miniature { flex-grow: 1; } } @include on-small-main-col { .video { flex-wrap: wrap; } } @include on-mobile-main-col { .checkbox-container { display: none; } .action-selection-mode { display: none; // disable for small screens } }
@use '_variables' as *; @use '_mixins' as *; .action-selection-mode { display: flex; justify-content: flex-end; flex-grow: 1; } .action-selection-mode-child { position: fixed; display: flex; .action-button { @include margin-left(55px); display: block; } } .action-button-cancel-selection { @include peertube-button; @include grey-button; } .video { @include row-blocks($column-responsive: false); &:first-child { margin-top: 47px; } .checkbox-container { @include margin-right(20px); @include margin-left(12px); display: flex; align-items: center; } my-video-miniature { flex-grow: 1; } } @include on-small-main-col { .video { flex-wrap: wrap; } } @include on-mobile-main-col { .checkbox-container { display: none; } .action-selection-mode { display: none; // disable for small screens } }
Fix textarea glitch before promise is resolved...
/* * Markdown component */ .markdown { .CodeMirror { height: inherit; } }
/* * Markdown component */ .markdown { & > textarea { display: none; } .CodeMirror { height: inherit; } }
Fix overlapping flash message on non-logged pages
body.logged_in { .flashes{ .flash { @include gradient(#f7f1d3, #f5edc5); @include text-shadow(#fafafa); border-bottom: 1px solid #eee098; color: #cb9810; font-weight: bold; font-size: 1.1em; line-height: 1.0em; padding: 13px 30px 11px; position: relative; &.flash_notice { @include gradient(#dce9dd, #ccdfcd); border-bottom: 1px solid #adcbaf; color: #416347; } &.flash_error { @include gradient(#f5e4e4, #f1dcdc); border-bottom: 1px solid #e0c2c0; color: #b33c33; } } } } body.logged_out { .flash { @include no-shadow; @include text-shadow(#fff); background: none; color: #666; font-weight: bold; line-height: 1.0em; padding: 0; } }
body.logged_in { .flashes{ .flash { @include gradient(#f7f1d3, #f5edc5); @include text-shadow(#fafafa); border-bottom: 1px solid #eee098; color: #cb9810; font-weight: bold; font-size: 1.1em; line-height: 1.0em; padding: 13px 30px 11px; position: relative; &.flash_notice { @include gradient(#dce9dd, #ccdfcd); border-bottom: 1px solid #adcbaf; color: #416347; } &.flash_error { @include gradient(#f5e4e4, #f1dcdc); border-bottom: 1px solid #e0c2c0; color: #b33c33; } } } } body.logged_out { .flash { @include no-shadow; @include text-shadow(#fff); background: none; color: #666; font-weight: bold; line-height: 1.0em; padding: 0; margin-bottom: 8px; } }
Adjust phase banner design to copy latest govuk elements
@import 'govuk/-essentials'; .phase-tag { padding: 3px 5px; display: inline-block; color: $white; font-weight: bold; background: $grey-1; text-transform: uppercase; &.phase-tag-alpha { background: $alpha-colour; + .phase-banner-message { padding-left: 4.5em; } } &.phase-tag-beta { background: $beta-colour; + .phase-banner-message { padding-left: 4em; } } } .phase-banner { .phase-tag { float: left; margin-top: -4px; margin-bottom: -4px; @media print { border: 1mm solid; background: white; color: black; margin: -2mm 3mm 0 0; } } }
@import 'govuk/-essentials'; .phase-tag { padding: 2px 5px 0; display: inline-block; color: $white; font-weight: bold; background: $grey-1; text-transform: uppercase; &.phase-tag-alpha { background: $alpha-colour; + .phase-banner-message { padding-left: 4.8em; } } &.phase-tag-beta { background: $beta-colour; + .phase-banner-message { padding-left: 4em; } } } .phase-banner { .phase-tag { float: left; line-height: 1.25; margin-top: -4px; margin-bottom: -4px; letter-spacing: 1px; @media print { border: 1mm solid; background: white; color: black; margin: -2mm 3mm 0 0; } } }
Remove dotted border from docs header labels
// Styles specific to the main page content. .docs-page-title { margin-top: 0.5rem; display: inline-block; vertical-align: middle; } .docs-component section { position: relative; } .docs-component .thumbnail { margin-left: auto; margin-right: auto; display: block; } .docs-component .callout code { background: rgba($code-background, 0.5); } .docs-js.label { background: #F0DB4F; color: black; margin-left: 10px; vertical-align: middle; } .docs-mui.label { background: #c6538c; margin-left: 10px; vertical-align: middle; } .docs-lib.label { margin-left: 10px; vertical-align: middle; a { color: white; } }
// Styles specific to the main page content. .docs-page-title { margin-top: 0.5rem; display: inline-block; vertical-align: middle; } .docs-component section { position: relative; } .docs-component .thumbnail { margin-left: auto; margin-right: auto; display: block; } .docs-component .callout code { background: rgba($code-background, 0.5); } .docs-js.has-tip { border-bottom: 0; } .docs-js.label { background: #F0DB4F; color: black; margin-left: 10px; vertical-align: middle; } .docs-mui.label { background: #c6538c; margin-left: 10px; vertical-align: middle; } .docs-lib.label { margin-left: 10px; vertical-align: middle; a { color: white; } }
Fix edit form select2 issue
.cs-index-sidepanel { position: fixed; height: calc(100% - #{$navbar-and-page-header-height}); top: $sidebar-top; .panel-close { position: absolute; width: 20px; left: 382px; top: 10px; cursor: pointer; background-color: white; text-align: center; z-index: 999; } .cs-wizard { .form-panel { padding-top: 0px; } } } @media (max-width: 1200px) { .cs-index-sidepanel { @include cs-drop-shadow; width: $wizard-width-narrow; height: 75%; left: 50%; top: 10%; padding: 0; margin-left: - $wizard-width-narrow / 2; z-index: 9999; .panel-close { left: 478px; } .cs-wizard { width: $wizard-width-narrow; } } }
.cs-index-sidepanel { position: fixed; height: calc(100% - #{$navbar-and-page-header-height}); top: $sidebar-top; .panel-close { position: absolute; width: 20px; left: 382px; top: 10px; cursor: pointer; background-color: white; text-align: center; z-index: 999; } .cs-wizard { .form-panel { padding-top: 0px; } } } @media (max-width: 1200px) { .cs-index-sidepanel { @include cs-drop-shadow; width: $wizard-width-narrow; height: 75%; left: 50%; top: 10%; padding: 0; margin-left: - $wizard-width-narrow / 2; z-index: 1050; // Same As Uib-modal .panel-close { left: 478px; } .cs-wizard { width: $wizard-width-narrow; } } }
Add opacity to disabled images.
@import "bootswatch/slate/variables"; @import "bootstrap"; @import "bootstrap/theme"; @import "formtastic-bootstrap"; @import "bootswatch/slate/bootswatch"; // make room for navigation bar body { padding-top: 70px; } .navbar-brand { background-image: image_url('mete-logo.svg'); background-position: 0.5em 0.5em; background-repeat: no-repeat; background-size: 2em; padding-left: 3em; } img.disabled { //see http://blog.nmsdvid.com/css-filter-property/ //see http://stackoverflow.com/a/11842712 filter: grayscale(100%) contrast(30%); } .drink-panel { display: flex; flex-direction: column; height: 165px; width: 160px; } .panel-body { flex: 1 1 0; overflow: hidden; }
@import "bootswatch/slate/variables"; @import "bootstrap"; @import "bootstrap/theme"; @import "formtastic-bootstrap"; @import "bootswatch/slate/bootswatch"; // make room for navigation bar body { padding-top: 70px; } .navbar-brand { background-image: image_url('mete-logo.svg'); background-position: 0.5em 0.5em; background-repeat: no-repeat; background-size: 2em; padding-left: 3em; } img.disabled { //see http://blog.nmsdvid.com/css-filter-property/ //see http://stackoverflow.com/a/11842712 filter: grayscale(100%) contrast(30%); opacity: 0.3; } .drink-panel { display: flex; flex-direction: column; height: 165px; width: 160px; } .panel-body { flex: 1 1 0; overflow: hidden; }
Fix hosting signup dialog height
/* Copyright 2020 Element 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_HostingSignupDialog .mx_Dialog { height: 50%; } .mx_HostingSignupBaseDialog { height: 100%; } .mx_HostingSignupDialog_container { height: 100%; iframe { width: 100%; height: 100%; border: none; background-color: #fff; } } .mx_HostingSignupTrigger { cursor: pointer; }
/* Copyright 2020 Element 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_HostingSignupDialog .mx_Dialog { height: 50%; } .mx_HostingSignupBaseDialog { height: 100%; } .mx_HostingSignupDialog_container { height: 95%; iframe { width: 100%; height: 100%; border: none; background-color: #fff; } } .mx_HostingSignupTrigger { cursor: pointer; }
Remove outer spacing on mobile devices
@import 'bootstrap'; header, footer, main { margin-left: auto; margin-right: auto; max-width: 800px; width: 80%; margin-top: 1rem; margin-bottom: 1rem; } header { text-align: center; } section { margin-top: 2rem; margin-bottom: 2rem; } .card { padding: 2rem; } .btn-swiping { font-size: 2.75rem; margin: 0; width: 49%; padding-left: 0; padding-right: 0; } h4 { text-transform: uppercase; font-size: 1rem; color: #888; } .btn .tag { right: -3px; } .alert { margin-top: 10px; margin-bottom: 10px; }
@import 'bootstrap'; header, footer, main { margin-left: auto; margin-right: auto; max-width: 800px; @media screen and (min-width: 768px) { width: 80%; } margin-top: 1rem; margin-bottom: 1rem; } header { text-align: center; } section { margin-top: 2rem; margin-bottom: 2rem; } @media screen and (max-width: 767px) { header { margin-top: 0; } } .card { padding: 2rem; } .btn-swiping { font-size: 2.75rem; margin: 0; width: 49%; padding-left: 0; padding-right: 0; } h4 { text-transform: uppercase; font-size: 1rem; color: #888; } .btn .tag { right: -3px; } .alert { margin-top: 10px; margin-bottom: 10px; }
Remove calendar image from event summary bg
#welcome-box { padding-left: 6%; padding-right: 6%; p { text-align: justify; font-size: 13pt; } } #carousel-section { padding-top: 20px; padding-bottom: 20px; } @media (max-width: 479px) { #carousel-section { display: none; } } .item { img { width: 100%; } } #event-section { background-image: url('calendar2.png'); background-repeat: no-repeat; background-position: 80% 40%; background-size: 60%; } @media (min-width: 480px) { #homepage-one-column { display: none; } } @media (max-width: 479px) { #homepage-multi-column { display: none; } }
#welcome-box { padding-left: 6%; padding-right: 6%; p { text-align: justify; font-size: 13pt; } } #carousel-section { padding-top: 20px; padding-bottom: 20px; } @media (max-width: 479px) { #carousel-section { display: none; } } .item { img { width: 100%; } } @media (min-width: 480px) { #homepage-one-column { display: none; } } @media (max-width: 479px) { #homepage-multi-column { display: none; } }
Fix styles for API key value not being applied
.copy-to-clipboard { position: relative; padding-bottom: 38px; // height of button display: flex; &__name { @include bold-19; margin-bottom: 5px; } &__notice, &__key { font-family: monospace; display: block; padding: 0 0 10px 0; margin: auto 0; } &__button--show, &__button--copy { position: absolute; bottom: 2px; left: 0px; &:active { top: auto; } } }
.copy-to-clipboard { position: relative; padding-bottom: 38px; // height of button display: flex; &__name { @include bold-19; margin-bottom: 5px; } &__notice, &__value { font-family: monospace; display: block; padding: 0 0 10px 0; margin: auto 0; } &__button--show, &__button--copy { position: absolute; bottom: 2px; left: 0px; &:active { top: auto; } } }
Add support for disabled secondary action buttons
a { &.action { @include button; &.secondary { background-color: $secondary-color; } } }
a { &.action { @include button; &.secondary { background-color: $secondary-color; } &.disabled { @include button-disabled; &.secondary { background-color: $secondary-color; } } } }
Change background-attachment of .hero to scroll
.hero { display: flex; flex-direction: column; align-items: center; justify-content: center; height: #{$hero-size}vh; background-image: url(#{$hero-img}); background-repeat: no-repeat; background-position: 50% 50%; background-size: cover; text-align: center; background-attachment: fixed; }
.hero { display: flex; flex-direction: column; align-items: center; justify-content: center; height: #{$hero-size}vh; background-image: url(#{$hero-img}); background-repeat: no-repeat; background-position: 50% 50%; background-size: cover; text-align: center; background-attachment: scroll; }
Add no scrolling helper class
@charset "UTF-8"; //// /// General CSS classes to be used in HTML or extended via Sass /// /// @since 1.0.0 //// //// /// Apply a clearfix to an element /// /// @group helpers/classes /// @since 1.0.0 /// @see {clearfix} /// /// @example html /// <div class="clearfix">...</div> //// .clearfix { @include cf; } //// /// Apply a css float left to an element /// /// @since 1.0.0 /// /// @example html /// <div class="floatleft">...</div> //// .floatleft { float: left; } //// /// Apply a css float right to an element /// /// @since 1.0.0 /// /// @example html /// <div class="floatright">...</div> //// .floatright { float: right; } //// /// Preloader class /// This class can be used to identify when the page is loaded by removing it using JavaScript. It /// will disable all transitions until the page the class is removed. /// /// @since 1.0.0 /// /// @example html /// <body class="preload">...</body> //// .preload * { @include p((transition: none !important)); }
@charset "UTF-8"; //// /// General CSS classes to be used in HTML or extended via Sass /// /// @since 1.0.0 //// //// /// Apply a clearfix to an element /// /// @group helpers/classes /// @since 1.0.0 /// @see {clearfix} /// /// @example html /// <div class="clearfix">...</div> //// .clearfix { @include cf; } //// /// Apply a css float left to an element /// /// @since 1.0.0 /// /// @example html /// <div class="floatleft">...</div> //// .floatleft { float: left; } //// /// Apply a css float right to an element /// /// @since 1.0.0 /// /// @example html /// <div class="floatright">...</div> //// .floatright { float: right; } //// /// Preloader class /// This class can be used to identify when the page is loaded by removing it using JavaScript. It /// will disable all transitions until the page the class is removed. /// /// @since 1.0.0 /// /// @example html /// <body class="preload">...</body> //// .preload * { @include p((transition: none !important)); } //// /// No scroll class /// This class will prevent the window from scrolling. /// /// @since 1.0.0 //// body, html { overflow: hidden !important; }
Add specific selector to override anchors with cta's and forced cursor pointer.
// Color is going to change. .cta { color: color(black); text-decoration: none; text-transform: uppercase; font-weight: font-weight(semibold); line-height: initial; .icon { width: .75em; height: .75em; font-size: 1em; } &:hover { color: lighten(black, 15%); } &:active, &:focus { color: lighten(black, 30%); } &:visited { color: color(black); } }
// Color is going to change. .cta, a.cta { color: color(black); text-decoration: none; text-transform: uppercase; font-weight: font-weight(semibold); line-height: initial; cursor: pointer; .icon { width: .75em; height: .75em; font-size: 1em; } &:hover { color: lighten(black, 15%); } &:active, &:focus { color: lighten(black, 30%); } &:visited { color: color(black); } }
Add styling for asides, and padding for sidebars
#chapter { margin-left: 5em; padding: 2.5rem 5rem; p { line-height: 1.75; } .image { margin: 3rem 0; text-align: center; img { border: 1px solid #eee; width: 95%; } .missing_image { background: red; color: white; } } } #section_listing { list-style-type: none; margin-left: -2rem; font-size: 90%; li { margin-bottom: 1rem; &.major { font-weight: bold; } } } .note_button { float: left; position: absolute; left: -6.5rem; font-size: 90%; }
#chapter { margin-left: 5em; padding: 2.5rem 5rem; p { line-height: 1.75; } .image { margin: 3rem 0; text-align: center; img { border: 1px solid #eee; width: 95%; } .missing_image { background: red; color: white; } } .aside { background: #D9F1FF; padding: 1rem; margin-bottom: 2rem; } } #sidebar { padding-top: 5rem; } #section_listing { list-style-type: none; margin-left: -2rem; font-size: 90%; li { margin-bottom: 1rem; &.major { font-weight: bold; } } } .note_button { float: left; position: absolute; left: -6.5rem; font-size: 90%; }
Remove negative margins from validation summary and invalid form groups.
.validation-summary { padding-left: $gutter-half - $validation-bdr-size-lg; padding-right: $gutter-half; margin-left: -$gutter-half; border-width: $validation-bdr-size-lg; &:focus { outline: $focus-outline; } h2 { margin: 0.3em 0; } ul { margin: 0; li { margin: 0; padding: 3px 0; } } a { @include bold-19(); text-decoration: none; &:hover { text-decoration: underline; } } } .validation-error { float: left; box-sizing: border-box; padding-left: $gutter-half - $validation-bdr-size; border-left: $validation-bdr-size-lg solid $error-colour; margin-left: -$gutter-half; &:focus { outline: $focus-outline; } .form-control { margin-bottom: $validation-bdr-size; } } .invalid-input, .validation-error .date-input { border: $validation-bdr-size solid $error-colour; } .panel-indent { .validation-error { margin-left: 0; } }
.validation-summary { padding-left: $gutter-half - $validation-bdr-size-lg; padding-right: $gutter-half; border-width: $validation-bdr-size-lg; &:focus { outline: $focus-outline; } h2 { margin: 0.3em 0; } ul { margin: 0; li { margin: 0; padding: 3px 0; } } a { @include bold-19(); text-decoration: none; &:hover { text-decoration: underline; } } } .validation-error { box-sizing: border-box; padding-left: $gutter-half - $validation-bdr-size; border-left: $validation-bdr-size-lg solid $error-colour; &:focus { outline: $focus-outline; } .form-control { margin-bottom: $validation-bdr-size; } } .invalid-input, .validation-error .date-input { border: $validation-bdr-size solid $error-colour; }
Move font-face to global scope
@font-face { font-family: 'Yekan'; src: url('../fonts/WebYekan.eot?#') format('eot'), /* IE6–8 */ url('../fonts/WebYekan.woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/ url('../fonts/WebYekan.ttf') format('truetype'); /* Saf3—5, Chrome4+, FF3.5, Opera 10+ */ } .wrapper { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; min-height: 100vh; min-width: 100vw; .hero { font-size: 3rem; } } .lead { display: block; margin: 0 1em; font-size: calc(96% + 0.5vw); line-height: 1.5; opacity: .8; } .actor { color: #004D40; &:focus, &:hover { outline: 0; border-bottom: 2px dashed currentcolor; color: #212121; } } .basedOn { margin-top: 2.5em; }
.wrapper { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; min-height: 100vh; min-width: 100vw; .hero { font-size: 3rem; } } .lead { display: block; margin: 0 1em; font-size: calc(96% + 0.5vw); line-height: 1.5; opacity: .8; } .actor { color: #004D40; &:focus, &:hover { outline: 0; border-bottom: 2px dashed currentcolor; color: #212121; } } .basedOn { margin-top: 2.5em; }
Fix design glitch in the history controller
@import "../../_variables.scss"; // Not much for now... .history-wrap { border-bottom: $border; } @media (max-width: $mq-large-max) { .history-wrap { .history { margin: 0 #{-$gutter}; } .history-container { padding: 0 #{$gutter}; } } }
@import "../../_variables.scss"; @media (max-width: $mq-large-max) { .history-wrap { border-bottom: $border; .history { margin: 0 #{-$gutter}; } .history-container { padding: 0 #{$gutter}; } } }
Add some padding and make the hover work for the +/- icons
// Place all the styles related to the activities controller here. // They will automatically be included in application.css. // You can use Sass (SCSS) here: http://sass-lang.com/ @import 'foundation-icons'; .positive { background-color:green; } .positive a{ padding: 2px; color:white; } .negative { background-color:red; } .negative a{ padding: 2px; color:white; }
// Place all the styles related to the activities controller here. // They will automatically be included in application.css. // You can use Sass (SCSS) here: http://sass-lang.com/ @import 'foundation-icons'; .positive { background-color:green; } .positive a{ padding: 2px; color:white; padding: 15px 4px; display: block; } .negative { background-color:red; } .negative a{ padding: 2px; color:white; padding: 15px 4px; display: block; } .neutral a{ padding: 15px 4px; display: block; } td .count{ font-size: 1.875rem; } .general{ padding: 10px 0px; display: block; cursor: pointer; }
Add CSS for Pager and modify notification boxes
.notification-list-li { list-style-type: none; } .notification-box { background-color: #fff; cursor: pointer; padding: 0.5em 1em; // Flexbox display: flex; flex-direction: row; align-items: center; // Flexbox for Safari display: -webkit-flex; -webkit-flex-direction: row; -webkit-align-items: center; .notification-box-image { width: 36px; } .notification-box-message { .notification-box-text { } .notification-box-time { padding-top: 0.3em; font-size: small; } } } .notification-box:hover { background-color: #eee; } .notification-read { } .notification-unread { background-color: #f0f4f3; } // Header #notif-opener-li { .dropdown-menu { width: 400px; font-size: small; .notification-see-all { text-align: center; } } }
.notification-list { .notification-list-ul { margin: 0; .notification-list-li { list-style-type: none; } } } .notification-box { border-bottom: 0.5px solid #ccc; background-color: #fff; cursor: pointer; padding: 0.5em 1em; // Flexbox display: flex; flex-direction: row; align-items: center; // Flexbox for Safari display: -webkit-flex; -webkit-flex-direction: row; -webkit-align-items: center; .notification-box-image { width: 36px; } .notification-box-message { .notification-box-text { min-height: 36px; } .notification-box-time { padding-top: 0.3em; font-size: small; } } } .notification-box:hover { background-color: #eee; } .notification-read { } .notification-unread { background-color: #f0f4f3; } // Header #notif-opener-li { .dropdown-menu { width: 400px; font-size: small; .notification-see-all { text-align: center; } } } // Pager .notification-pager { // Flexbox display: flex !important; flex-direction: row; align-items: center; // Flexbox for Safari display: -webkit-flex !important; -webkit-flex-direction: row; -webkit-align-items: center; margin: 10px 0; .pager { width: 50%; margin: 0; text-align: center; font-size: small; } .pager-prev { } .padding-next { } }
Work around a Sass bug.
@import "rocket-button/build/sass/import"; @mixin button($color: color(button-default), $style: gradient) { @extend button; @include mod-button-setup; @include mod-button-shape(rounded); @include mod-button-size(normal); @include mod-button-size-custom($height: 28px, $padding: 0.75rem); @include mod-button-style($style, $color); font: { family: $system-font; weight: bolder; } margin: 2px 0px; &:hover { @if $style == line { @include mod-button-style(gradient, $color); } } } @mixin button-create { @include button($color: color(button-create)); } @mixin button-edit($style: null) { @include button($color: color(button-edit), $style: $style); } @mixin button-save { @include button($color: color(button-save)); } .button { @include button; &.new { @include button-create; } &.edit { @include button-edit; &.payment { @include button-edit($style: line); } } &.save { @include button-save; } }
@import "rocket-button/build/sass/import"; @mixin button($color: color(button-default), $style: gradient) { $style: if($style, $style, gradient); // TODO: file a bug on this: nulls don't propagate properly from caller @extend button; @include mod-button-setup; @include mod-button-shape(rounded); @include mod-button-size(normal); @include mod-button-size-custom($height: 28px, $padding: 0.75rem); @include mod-button-style($style, $color); font: { family: $system-font; weight: bolder; } margin: 2px 0px; &:hover { @if $style == line { @include mod-button-style(gradient, $color); } } } @mixin button-create { @include button($color: color(button-create)); } @mixin button-edit($style: null) { @include button($color: color(button-edit), $style: $style); } @mixin button-save { @include button($color: color(button-save)); } .button { @include button; &.new { @include button-create; } &.edit { @include button-edit; &.payment { @include button-edit($style: line); } } &.save { @include button-save; } }
Apply super awesome styling to inline edit fields
//Fonts @import "fonts/lilicon"; // Primary requirements @import "variables"; @import "mixins"; @import "contacts/accounts"; @import "contacts/users"; @import "base/icons"; @import "base/header"; @import "base/dropdown"; @import "base/historylist"; @import "base/lists"; @import "base/animate"; @import "base/buttons"; @import "base/forms"; @import "base/filters"; @import "base/widget"; @import "base/tables"; @import "cases/cases"; @import "deals/deals"; @import "mail/inbox"; @import "mail/email"; @import "base/generic"; small { text-transform: lowercase; } table { .table.table-bordered.table-striped.flip-content { td, th { min-height: 38px; } } th { vertical-align: top !important; } } a { &.link-no-decoration { text-decoration: none; color: inherit; } } .btn-group { &.btn-group-devided { .btn { min-width: 4em; } } }
//Fonts @import "fonts/lilicon"; // Primary requirements @import "variables"; @import "mixins"; @import "contacts/accounts"; @import "contacts/users"; @import "base/inputs"; @import "base/icons"; @import "base/header"; @import "base/dropdown"; @import "base/historylist"; @import "base/lists"; @import "base/animate"; @import "base/buttons"; @import "base/forms"; @import "base/filters"; @import "base/widget"; @import "base/tables"; @import "cases/cases"; @import "deals/deals"; @import "mail/inbox"; @import "mail/email"; @import "base/generic"; small { text-transform: lowercase; } table { .table.table-bordered.table-striped.flip-content { td, th { min-height: 38px; } } th { vertical-align: top !important; } } a { &.link-no-decoration { text-decoration: none; color: inherit; } } .btn-group { &.btn-group-devided { .btn { min-width: 4em; } } }
Fix show and hide options for menuentries on mobile to work again.
@import "kwf/mobile-breakpoint"; .kwfUp-webStandard.kwcClass { > .kwcBem__item--onlyShowOnMobile { display: none; } @include mobile-breakpoint { > .kwcBem__item--onlyShowOnMobile { display: block; } > .kwcBem__item--hideOnMobile { display: none; } } @media print { display: none; } }
@import "kwf/mobile-breakpoint"; .kwfUp-webStandard.kwcClass { .kwcBem__item--onlyShowOnMobile { display: none; } @include mobile-breakpoint { .kwcBem__item--onlyShowOnMobile { display: block; } .kwcBem__item--hideOnMobile { display: none; } } @media print { display: none; } }
Add `img` style: width 100
// Styling for the post page .post-preview { > a { color: $gray-900; &:focus, &:hover { text-decoration: none; color: $primary; } > .post-title { font-size: 30px; margin-top: 30px; margin-bottom: 10px; } > .post-subtitle { font-weight: 300; margin: 0 0 10px; } } > .post-meta { font-size: 18px; font-style: italic; margin-top: 0; color: $gray-600; > a { text-decoration: none; color: $gray-900; &:focus, &:hover { text-decoration: underline; color: $primary; } } } @media only screen and (min-width: 768px) { > a { > .post-title { font-size: 36px; } } } }
// Styling for the post page .post-preview { > a { color: $gray-900; &:focus, &:hover { text-decoration: none; color: $primary; } > .post-title { font-size: 30px; margin-top: 30px; margin-bottom: 10px; } > .post-subtitle { font-weight: 300; margin: 0 0 10px; } } > .post-meta { font-size: 18px; font-style: italic; margin-top: 0; color: $gray-600; > a { text-decoration: none; color: $gray-900; &:focus, &:hover { text-decoration: underline; color: $primary; } } } @media only screen and (min-width: 768px) { > a { > .post-title { font-size: 36px; } } } } img { width: 100%; }
Change box padding so it matches the GOV.UK grid margins
// GOV.UK frontend toolkit @import "typography"; @import "conditionals"; @import "colours"; @import "shims"; @import "device-pixels"; @import "grid_layout"; @import "design-patterns/buttons"; // GOV.UK elements @import "govuk-elements"; // Trade Tariff components @import "variables"; @import "functions"; @import "colors"; @import "report-a-problem"; @import "header"; @import "footer"; @import "tariff-breadcrumbs"; @import "sections-list"; @import "tabs"; @import "tables"; @import "measures"; @import "a-z-index"; @import "country-picker"; @import "commodity-tree"; @import "popup"; // Utility classes strong { font-weight: bold; } .box { background-color: $panel-colour; padding: 1em; margin-bottom: 1.05263em; :first-child { margin-top: 0; } :last-child { margin-bottom: 0; } } section, article { margin-bottom: 3em; } .desktop-only { display: none; } @media (min-width: $desktop-min-width) { .mobile-only { display: none; } .desktop-only { display: block; } } // Other .related-module { margin-top: 30px; }
// GOV.UK frontend toolkit @import "typography"; @import "conditionals"; @import "colours"; @import "shims"; @import "device-pixels"; @import "grid_layout"; @import "design-patterns/buttons"; // GOV.UK elements @import "govuk-elements"; // Trade Tariff components @import "variables"; @import "functions"; @import "colors"; @import "report-a-problem"; @import "header"; @import "footer"; @import "tariff-breadcrumbs"; @import "sections-list"; @import "tabs"; @import "tables"; @import "measures"; @import "a-z-index"; @import "country-picker"; @import "commodity-tree"; @import "popup"; // Utility classes strong { font-weight: bold; } .box { background-color: $panel-colour; padding: 15px; margin-bottom: 1.05263em; :first-child { margin-top: 0; } :last-child { margin-bottom: 0; } } section, article { margin-bottom: 3em; } .desktop-only { display: none; } @media (min-width: $desktop-min-width) { .mobile-only { display: none; } .desktop-only { display: block; } } // Other .related-module { margin-top: 30px; }
Add styling for globe icon
#welcome-bar { border: 1px solid black; } #login-col { padding-bottom:2em; } #speak-it-info { border: 1px solid blue; padding-bottom: 2em; } #interact { height: 300px; border: 1px solid green; } #level-up { height: 300px; border: 1px solid orange; }
#welcome-bar { border: 1px solid black; } #login-col { padding-bottom:2em; } #speak-it-info { border: 1px solid blue; padding-bottom: 2em; } #interact { height: 300px; border: 1px solid green; } #level-up { height: 300px; border: 1px solid orange; } span.glyphicon-globe { font-size: 1.5em; }
Add class size limit for SVG on IE11
.private { display: inline-block; margin-left: .5rem; width: .5rem; path { fill: $gray-light; transition: fill .3s linear; } }
.private { display: inline-block; margin-left: .5rem; width: .5rem; svg { height: .5rem; width: .5rem; } path { fill: $gray-light; transition: fill .3s linear; } }
Fix linked resource form style & padding.
@import "bootstrap/modals"; .modal-button { @extend .btn; @extend .btn-default; } .modal-body .results-list { overflow-y: scroll; overflow-x: hidden; max-height: 600px; } .modal-body { .search-tabs { @include make-row(); margin-bottom: 15px; .search-tab { @include make-md-column(3.5); @include sans-serif($bold, 14px, 14px); padding: 5px; margin: 5px; text-align: center; cursor: pointer; border-bottom: 2px solid black; &.active { border-bottom-color: $light-blue; color: $light-blue; } } } .case-search, .new-text, .new-link { margin: 15px 0; input[type=text] { display: inline-block; width: 85%; } input[type=submit] { @extend .btn; @extend .btn-primary; width: 14%; } } }
@import "bootstrap/modals"; .modal-button { @extend .btn; @extend .btn-default; } .modal-body .results-list { overflow-y: scroll; overflow-x: hidden; max-height: 600px; } .modal-body { .search-tabs { @include make-row(); margin-bottom: 15px; .search-tab { @include make-md-column(3.5); @include sans-serif($bold, 14px, 14px); padding: 5px; margin: 5px; text-align: center; cursor: pointer; border-bottom: 2px solid black; &.active { border-bottom-color: $light-blue; color: $light-blue; } } } .case-search, .new-text, .new-link { margin: 15px 0; display: flex; align-items: center; justify-content: center; input[type=text] { display: inline-block; width: 100%; } input[type=submit] { @extend .btn; @extend .btn-primary; width: 30%; height: 52px; margin-left: 5px; } } }
Remove padding to display full numbers
/* Statistics */ .stat { border-left: 1px dashed $grapefruit; &:first-of-type { border-left: 0; } a { display: block; padding-right: $spacing-05; text-decoration: none; } } .stat__number { display: block; font-weight: 600; @include font-serif; @include typescale-02; } .stat__description { display: block; text-transform: uppercase; color: $dark-grey; line-height: 1.35; @include typescale-06; }
/* Statistics */ .stat { border-left: 1px dashed $grapefruit; &:first-of-type { border-left: 0; } a { display: block; text-decoration: none; } } .stat__number { display: block; font-weight: 600; @include font-serif; @include typescale-02; } .stat__description { display: block; text-transform: uppercase; color: $dark-grey; line-height: 1.35; @include typescale-06; }
Remove margin bottom on the friends page
.friends { @extend %main-content; } .friends__text { @extend %main-text; } .friends__title { margin-top: 0px; } .friends__subtitle { font-size: 1.9rem; margin: 40px 0 0 0; } .friends__slider { text-align: center; margin-top: 40px; .thumb { display: none; } } .friends__range { @extend %range-input; } .friends__textarea { text-align: center; margin-bottom: 40px; }
.friends { @extend %main-content; } .friends__text { @extend %main-text; margin-bottom: 0; } .friends__title { margin-top: 0px; } .friends__subtitle { font-size: 1.9rem; margin: 40px 0 0 0; } .friends__slider { text-align: center; margin-top: 40px; .thumb { display: none; } } .friends__range { @extend %range-input; } .friends__textarea { text-align: center; margin-bottom: 40px; }
Fix - set scrollbars to auto hide on tables.
.table-wrapper { width: 100%; margin-bottom: $bl*3; overflow-x: scroll; overflow-y: hidden; -ms-overflow-style: -ms-autohiding-scrollbar; -webkit-overflow-scrolling: touch; } .table-wrapper > .table > thead > tr > th, .table-wrapper > .table > tbody > tr > th, .table-wrapper > .table > tfoot > tr > th, .table-wrapper > .table > thead > tr > td, .table-wrapper > .table > tbody > tr > td, .table-wrapper > .table > tfoot > tr > td { white-space: nowrap; } table { @extend %text--table; text-align: left; p { @extend %text--table; // NOTE that this is here to override sloppy formatting in the tables where p tags force a large font size. } } thead { color: $color-table-heading; background-color: $color-table-background; } tr:nth-child(even) { background-color: $color-table-background-alt; } th { padding: $bl*2; border: 1px solid $color-table-border; > p { font-weight: bold; // NOTE that this is here to override sloppy formatting in the tables where p tags is not bolded. } } td { padding: $bl*2; border: 1px solid $color-table-border; }
.table-wrapper { width: 100%; margin-bottom: $bl*3; overflow-x: auto; overflow-y: hidden; -ms-overflow-style: -ms-autohiding-scrollbar; -webkit-overflow-scrolling: touch; } .table-wrapper > .table > thead > tr > th, .table-wrapper > .table > tbody > tr > th, .table-wrapper > .table > tfoot > tr > th, .table-wrapper > .table > thead > tr > td, .table-wrapper > .table > tbody > tr > td, .table-wrapper > .table > tfoot > tr > td { white-space: nowrap; } table { @extend %text--table; text-align: left; p { @extend %text--table; // NOTE that this is here to override sloppy formatting in the tables where p tags force a large font size. } } thead { color: $color-table-heading; background-color: $color-table-background; } tr:nth-child(even) { background-color: $color-table-background-alt; } th { padding: $bl*2; border: 1px solid $color-table-border; > p { font-weight: bold; // NOTE that this is here to override sloppy formatting in the tables where p tags is not bolded. } } td { padding: $bl*2; border: 1px solid $color-table-border; }
Change to a coop font
// "bootstrap-sprockets" must be imported before "bootstrap" and "bootstrap/variables" @import "bootstrap-sprockets"; @import "bootstrap";
// "bootstrap-sprockets" must be imported before "bootstrap" and "bootstrap/variables" @import "bootstrap-sprockets"; $font-family-base: "'Copse', serif"; @import "bootstrap";
Add supercipt and subscript styles
[data-type="page"], [data-type="composite-page"] { font-size: 1.6rem; line-height: 2.3rem; } // Inputs input, button, select, textarea { font-family: inherit; font-size: inherit; line-height: inherit; } button, html input[type="button"], input[type="reset"], input[type="submit"] { -webkit-appearance: button; cursor: pointer; } button { overflow: visible; } button, input, optgroup, select, textarea { color: inherit; font: inherit; margin: 0; }
[data-type="page"], [data-type="composite-page"] { font-size: 1.6rem; line-height: 2.3rem; } // Inputs input, button, select, textarea { font-family: inherit; font-size: inherit; line-height: inherit; } button, html input[type="button"], input[type="reset"], input[type="submit"] { -webkit-appearance: button; cursor: pointer; } button { overflow: visible; } button, input, optgroup, select, textarea { color: inherit; font: inherit; margin: 0; } // Superscript and subscript sup { top: -.5em; } sub { bottom: -.25em; } sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
Change styles for chips in the highlight directive
.highlight-edition{ .hover{ cursor: pointer; &.default-theme{ background-color: mat-color($mat-light-blue, 50); color: mat-color($primary); } &.dark-theme{ background-color: mat-color($mat-light-blue, 300, 0.7); color: white; .mat-icon.mat-accent{ color: white; } } } .edit-icon { font-size: 16px; &.dark-theme{ color: white; } } &.default-icon-position { position: relative; padding-right: 20px; .edit-icon { position: absolute; top: 0; right: 0; } } }
.highlight-edition{ .hover{ cursor: pointer; &.mat-chip{ border: 1px solid transparent; } &.default-theme{ background-color: mat-color($mat-light-blue, 50); color: mat-color($primary); } &.dark-theme{ background-color: mat-color($mat-light-blue, 300, 0.7); color: white; .mat-icon.mat-accent{ color: white; } } } .edit-icon { font-size: 16px; &.dark-theme{ color: white; } } &.default-icon-position { position: relative; padding-right: 20px; .edit-icon { position: absolute; top: 0; right: 0; } } }
Add copyright header for files-texteditor
/* Text Editor -------------------------------------------------------------- */ #app-content-texteditor #editor_container { background-color: var(--color-main-background); } #app-content-texteditor #editor_controls { background-color: var(--color-main-background); small.filename { color: var(--color-main-text); } small.saving-message { color: var(--color-text-maxcontrast); } #editor_close { opacity: 1; &:hover { background-color: var(--color-background-hover); } &:active, &:focus { background-color: var(--color-primary); } } } #filestexteditor.ace_editor { background-color: var(--color-main-background); color: var(--color-main-text); .ace_gutter { color: var(--color-text-maxcontrast); opacity: 1; } .ace_gutter-active-line { background-color: var(--color-background-darker); } .ace_marker-layer { .ace_active-line { background: var(--color-background-darker) !important; } .ace_selection { background: var(--color-primary); } } .ace_cursor { color: var(--color-main-text); } }
/*** * @copyright Copyright (c) 2022, Magnus Walbeck <mw@mwalbeck.org> * * @license GNU AGPL version 3 or any later version, see COPYING file for more. */ /* Text Editor -------------------------------------------------------------- */ #app-content-texteditor #editor_container { background-color: var(--color-main-background); } #app-content-texteditor #editor_controls { background-color: var(--color-main-background); small.filename { color: var(--color-main-text); } small.saving-message { color: var(--color-text-maxcontrast); } #editor_close { opacity: 1; &:hover { background-color: var(--color-background-hover); } &:active, &:focus { background-color: var(--color-primary); } } } #filestexteditor.ace_editor { background-color: var(--color-main-background); color: var(--color-main-text); .ace_gutter { color: var(--color-text-maxcontrast); opacity: 1; } .ace_gutter-active-line { background-color: var(--color-background-darker); } .ace_marker-layer { .ace_active-line { background: var(--color-background-darker) !important; } .ace_selection { background: var(--color-primary); } } .ace_cursor { color: var(--color-main-text); } }
Update font weight for bold to 700.
/** * Font Weight utilities. * * Site Kit by Google, Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ .googlesitekit-plugin { .googlesitekit-font-weight-bold { font-weight: 1000 !important; } }
/** * Font Weight utilities. * * Site Kit by Google, Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ .googlesitekit-plugin { .googlesitekit-font-weight-bold { font-weight: 700 !important; } }
Fix slide views pane column division; add gutter.
// -------------------------- // Slide views pane component // -------------------------- .c_slide-views-pane { &__views-list { display: table; table-layout: fixed; width: 100%; } &__views-item { display: table-cell; vertical-align: top; } }
// -------------------------- // Slide views pane component // -------------------------- .c_slide-views-pane { &__views-list { @include inkgrid-row(false); } &__views-item { @include inkgrid-col(false); // one active view &:nth-child(1):nth-last-child(1) { @include inkgrid-col__parts(1); } // two active views &:nth-child(1):nth-last-child(2), &:nth-child(2):nth-last-child(1) { @include inkgrid-col__parts(2); } // three active views &:nth-child(1):nth-last-child(3), &:nth-child(2):nth-last-child(2), &:nth-child(3):nth-last-child(1) { @include inkgrid-col__parts(3); } // four active views &:nth-child(1):nth-last-child(4), &:nth-child(2):nth-last-child(3), &:nth-child(3):nth-last-child(2), &:nth-child(4):nth-last-child(1) { @include inkgrid-col__parts(4); } // fifth active views &:nth-child(1):nth-last-child(5), &:nth-child(2):nth-last-child(4), &:nth-child(3):nth-last-child(3), &:nth-child(4):nth-last-child(2), &:nth-child(5):nth-last-child(1) { @include inkgrid-col__parts(5); } } }
Fix animated loading spinner color
/* Make the corners of the modal dialogs rounded on tablets. */ /* Corners don't need to be rounded on phones because the modal dialog fills the entire screen. */ @media only screen and (min-width: 768px) { .modal-wrapper .modal { border-radius: 10px; } .modal-wrapper .modal .bar-header { border-top-left-radius: 8px; border-top-right-radius: 8px; } }
/* Make the corners of the modal dialogs rounded on tablets. */ /* Corners don't need to be rounded on phones because the modal dialog fills the entire screen. */ @media only screen and (min-width: 768px) { .modal-wrapper .modal { border-radius: 10px; } .modal-wrapper .modal .bar-header { border-top-left-radius: 8px; border-top-right-radius: 8px; } } .spinner svg { stroke: $theweek-red; }
Fix missing cursor in subfolder views
@charset 'utf-8'; @import 'variables'; * { user-select: none; } /* Don't want user selectable text */ html { height: 100%; overflow: hidden; } body { height: 100%; margin: 0; font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; font-weight: 300; } /* Use nice fonts in text boxes */ input, textarea, select{ font-family:inherit; font-size: 150%; } .Viewport { cursor: url(../img/cursor.cur), auto; } @import 'button'; @import 'layout'; @import 'notifications'; @import 'sidebar_left'; @import 'sidebar_right'; @import 'help';
@charset 'utf-8'; @import 'variables'; * { user-select: none; } /* Don't want user selectable text */ html { height: 100%; overflow: hidden; } body { height: 100%; margin: 0; font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; font-weight: 300; } /* Use nice fonts in text boxes */ input, textarea, select{ font-family:inherit; font-size: 150%; } .Viewport { cursor: url(img/cursor.cur), auto; } @import 'button'; @import 'layout'; @import 'notifications'; @import 'sidebar_left'; @import 'sidebar_right'; @import 'help';
Adjust search form button state styles to match global convention
// Styles written by __gulp_init_author_name__ @ __gulp_init_author_company__ /* ------------------------------------------------------------------------ *\ * Search Form \* ------------------------------------------------------------------------ */ .search-form__container { & { margin: remify(0 0 15, 16); } } .search-form { & { position: relative; } } .search-form__input { & { font-size: remify(16, 16); margin: 0; padding-right: remify(48, 16); } } .search-form__button { & { background: none; bottom: remify(2); color: color("foreground"); font-size: remify(16, 16); margin: 0; padding: remify(0 16, 16); position: absolute; right: remify(2); top: remify(2); transition: color 0.15s; } &:focus, &:hover { background: none; color: color("accent"); } }
// Styles written by __gulp_init_author_name__ @ __gulp_init_author_company__ /* ------------------------------------------------------------------------ *\ * Search Form \* ------------------------------------------------------------------------ */ .search-form__container { & { margin: remify(0 0 15, 16); } } .search-form { & { position: relative; } } .search-form__input { & { font-size: remify(16, 16); margin: 0; padding-right: remify(48, 16); } } .search-form__button { & { background: none; bottom: remify(2); color: color("foreground"); font-size: remify(16, 16); margin: 0; padding: remify(0 16, 16); position: absolute; right: remify(2); top: remify(2); transition: color 0.15s; } &:active { background: none; color: color("accent", "shade"); } }
Fix remove button not clickable
.option-left { padding-left: 16px; } .option-right { padding-right: 16px; } .refresh-btn { cursor: pointer; } .refresh-btn:hover { color: #007CBB; } :host >>> .btn-group-overflow .dropdown-toggle { line-height: 24px; height: 24px; } .rightPos{ position: absolute; z-index: 100; right: 35px; margin-top: 4px; } clr-datagrid { ::ng-deep clr-checkbox { position: inherit; } }
.option-left { padding-left: 16px; } .option-right { padding-right: 16px; } .refresh-btn { cursor: pointer; } .refresh-btn:hover { color: #007CBB; } :host >>> .btn-group-overflow .dropdown-toggle { line-height: 24px; height: 24px; } .rightPos{ position: absolute; z-index: 100; right: 35px; margin-top: 4px; } clr-datagrid { ::ng-deep clr-checkbox { position: inherit; } } //This is for production build process.todo: Need to be removed, when production process refactored. :host >>> clr-checkbox.checkbox.datagrid-foot-select { position: inherit; }
Replace use of `calc` inside `translate` (Non supported by IE) with multiple `translateY`
/* ========================================================================= * Svelto - Widgets - Modal - Closed * ========================================================================= * Copyright (c) 2015-2016 Fabio Spampinato * Licensed under MIT (https://github.com/svelto/svelto/blob/master/LICENSE) * ========================================================================= * @require ../modal.scss * ========================================================================= */ /* CLOSED */ .modal:not(.show) { display: none; } .modal:not(.open) { opacity: 0; transform: translate(-50%, calc(-50% + #{$modal-closed-offset})); }
/* ========================================================================= * Svelto - Widgets - Modal - Closed * ========================================================================= * Copyright (c) 2015-2016 Fabio Spampinato * Licensed under MIT (https://github.com/svelto/svelto/blob/master/LICENSE) * ========================================================================= * @require ../modal.scss * ========================================================================= */ /* CLOSED */ .modal:not(.show) { display: none; } .modal:not(.open) { opacity: 0; transform: translate(-50%, -50%) translateY(#{$modal-closed-offset}); }
Revert the p styles for redio options.
/** * Site Kit by Google, Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ .googlesitekit-plugin { .googlesitekit-twg-position-radio { .mdc-radio { margin-left: -10px; } } .googlesitekit-twg-position-radio__option { margin-bottom: 14px; &:last-child { margin-bottom: 0; } > .mdc-form-field { label { font-weight: 500; } } } }
/** * Site Kit by Google, Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ .googlesitekit-plugin { .googlesitekit-twg-position-radio { .mdc-radio { margin-left: -10px; } } .googlesitekit-twg-position-radio__option { margin-bottom: 14px; &:last-child { margin-bottom: 0; } > .mdc-form-field { label { font-weight: 500; } } p { color: $c-surfaces-on-surface-variant; font-size: 0.75rem; margin: -10px 0 0 34px; } } }
Add missing class prefix to errormessage overlay
@import '../variables'; @import '../mixins'; .ui-errormessage-overlay { @extend %ui-container; @include layout-cover; @include hidden; background-color: $color-background; pointer-events: none; .#{$prefix}-ui-errormessage-label { color: $color-primary; font-size: 1.2em; left: 3em; position: absolute; right: 3em; text-align: center; // Vertically center the label (not exactly, but works for single line errors) & { margin-top: -1em; top: 50%; } ul { color: $color-secondary; font-size: .9em; padding: 0; li { list-style: none; } } } .#{$prefix}-ui-tvnoisecanvas { @include layout-cover; filter: blur(4px); } }
@import '../variables'; @import '../mixins'; .#{$prefix}-ui-errormessage-overlay { @extend %ui-container; @include layout-cover; @include hidden; background-color: $color-background; pointer-events: none; .#{$prefix}-ui-errormessage-label { color: $color-primary; font-size: 1.2em; left: 3em; position: absolute; right: 3em; text-align: center; // Vertically center the label (not exactly, but works for single line errors) & { margin-top: -1em; top: 50%; } ul { color: $color-secondary; font-size: .9em; padding: 0; li { list-style: none; } } } .#{$prefix}-ui-tvnoisecanvas { @include layout-cover; filter: blur(4px); } }
Add anchor tag style for removing default style
/** * * Reset * * @author Takuto Yanagida @ Space-Time Inc. * @version 2017-10-20 * * Original: * minireset.css v0.0.3 * https://github.com/jgthms/minireset.css * */ html, body, p, ol, ul, li, dl, dt, dd, blockquote, figure, fieldset, legend, textarea, pre, iframe, hr, h1, h2, h3, h4, h5, h6 { margin: 0; padding: 0; } h1, h2, h3, h4, h5, h6 { font-size: 100%; font-weight: normal; } ul { list-style: none; } button, input, select, textarea { margin: 0; } html { box-sizing: border-box; } *, *:before, *:after { box-sizing: inherit; } img, embed, object, audio, video { height: auto; max-width: 100%; } iframe { max-width: 100%; border: 0; } table { border-collapse: collapse; border-spacing: 0; } td, th { padding: 0; text-align: left; }
/** * * Reset * * @author Takuto Yanagida @ Space-Time Inc. * @version 2017-12-15 * * Original: * minireset.css v0.0.3 * https://github.com/jgthms/minireset.css * */ html, body, p, ol, ul, li, dl, dt, dd, blockquote, figure, fieldset, legend, textarea, pre, iframe, hr, h1, h2, h3, h4, h5, h6 { margin: 0; padding: 0; } h1, h2, h3, h4, h5, h6 { font-size: 100%; font-weight: normal; } ul { list-style: none; } button, input, select, textarea { margin: 0; } html { box-sizing: border-box; } *, *:before, *:after { box-sizing: inherit; } img, embed, object, audio, video { height: auto; max-width: 100%; } iframe { max-width: 100%; border: 0; } table { border-collapse: collapse; border-spacing: 0; } td, th { padding: 0; text-align: left; } a { color: inherit; text-decoration: none; }
Use a variable for prefix/postfix padding
/*** Fieldset container ***/ div[data-bolt-fieldset] { border-bottom: 1px solid transparent; // Transparent line, to keep spacing intact. margin-top: 24px; margin-bottom: 12px; .prefix { padding-bottom: 2px; color: #666; p:last-of-type { margin-bottom: 0; } } .postfix { padding-top: 2px; color: #666; } } // The last container, just before save buttons. div[data-bolt-fieldset]:last-child, div[data-bolt-fieldset="meta"] { border-bottom: 1px solid $light-border; padding-bottom: 20px; margin-bottom: 15px; } // Repeater group. div[data-bolt-fieldset="repeater"] { >.prefix { display: none; } }
/*** Fieldset container ***/ div[data-bolt-fieldset] { $prefix-postfix-padding: 2px; border-bottom: 1px solid transparent; // Transparent line, to keep spacing intact. margin-top: 24px; margin-bottom: 12px; .prefix { padding-bottom: $prefix-postfix-padding; color: #666; p:last-of-type { margin-bottom: 0; } } .postfix { padding-top: $prefix-postfix-padding; color: #666; } } // The last container, just before save buttons. div[data-bolt-fieldset]:last-child, div[data-bolt-fieldset="meta"] { border-bottom: 1px solid $light-border; padding-bottom: 20px; margin-bottom: 15px; } // Repeater group. div[data-bolt-fieldset="repeater"] { >.prefix { display: none; } }
Use SCSS from DM toolkit for search results
.search-page-filters { .lot-filters { h3 { @include bold-19; } ul { list-style: none; padding-left: 0; margin: 5px 0 $gutter; } } .govuk-option-select { margin-bottom: $gutter; } .option-select-label { display: block; } .filter-field-text { @include core-16; @include box-sizing(border-box); width: 100%; padding: 5px; border: 1px solid $border-colour; } } .search-result-excerpt { em { font-style: normal; background-color: $yellow-25; } }
@import "_search-result.scss"; .search-page-filters { .lot-filters { h3 { @include bold-19; } ul { list-style: none; padding-left: 0; margin: 5px 0 $gutter; } } .govuk-option-select { margin-bottom: $gutter; } .option-select-label { display: block; } .filter-field-text { @include core-16; @include box-sizing(border-box); width: 100%; padding: 5px; border: 1px solid $border-colour; } } }
Fix pictures on CS case study
.RatioEnforcer.RatioEnforcer--csPicture { max-width: 120px; } .RatioEnforcer.RatioEnforcer--galleryItem { max-width: 300px; }
.RatioEnforcer.RatioEnforcer--csPicture { min-height: 120px; max-width: 120px; } .RatioEnforcer.RatioEnforcer--galleryItem { max-width: 300px; }
Improve visibility of press links
/* Press- and Publicationlist ------------------------------------------------------------------- */ .date { margin-bottom: 0; display: block; } .publications { font-weight: normal; margin-bottom: 1em; } .pub-info { display: block; font-weight: 700; } .pub-link { font-weight: normal; color: #0c8dea; &:hover { color: #3FA9F5; } }
/* Press- and Publicationlist ------------------------------------------------------------------- */ .date { margin-bottom: 0; display: block; } .publications { font-weight: normal; margin-bottom: 1em; } .pub-info { display: block; font-weight: 700; } .pub-link { font-weight: normal; color: #0c8dea; &:hover { color: #3FA9F5; } &:focus, &:active { color: #0c8dea; } }
Put media query after default CSS
.webauthn__no-js { .js-enabled & { display: none; } } .webauthn__api-missing { display: none; .js-enabled & { display: block; } .js-enabled.webauthn-api-enabled & { display: none; } } .webauthn__api-required { display: none; .webauthn-api-enabled & { display: block; } } .webauthn-illustration { @include govuk-media-query($from: tablet) { margin: govuk-spacing(9) auto 0 auto; padding: 0; } box-sizing: border-box; width: 100%; height: 100%; margin: govuk-spacing(6) auto 0 auto; padding: 0 govuk-spacing(9) 0 govuk-spacing(9); }
.webauthn__no-js { .js-enabled & { display: none; } } .webauthn__api-missing { display: none; .js-enabled & { display: block; } .js-enabled.webauthn-api-enabled & { display: none; } } .webauthn__api-required { display: none; .webauthn-api-enabled & { display: block; } } .webauthn-illustration { box-sizing: border-box; width: 100%; height: 100%; margin: govuk-spacing(6) auto 0 auto; padding: 0 govuk-spacing(9) 0 govuk-spacing(9); @include govuk-media-query($from: tablet) { margin: govuk-spacing(9) auto 0 auto; padding: 0; } }
Add margins for page elements
.sv-page__sv-question{ overflow: auto; } .sv-page__sv-question--flow { display: inline-block; }
.sv-page__title { color: $main-black-color; font-family: Raleway; font-size: 30px; font-weight: bold; margin: 0; margin-left: 86px; text-align: left; } .sv-page__description { } .sv-page__row { margin: 0px; margin-left: 78px; }
Include util before third party css
@charset "utf-8"; /*! * Copyright (c) Gold Interactive * Designed and mantained by Gold Interactive */ // CSS shared variables // compass and mixins @import '../shared-variables.json', '../vendor/bower/gi-scss-global-variables/global-variables', '../vendor/bower/gi-scss-mixins/mixins'; // Third party css @import '../vendor/bower/normalize-css/normalize.css'; // Project variables and utils @import 'utils/variables', // Modify this for custom colors, font-sizes, etc 'utils/mixins', 'utils/placeholders', 'utils/helpers'; // Base CSS @import 'grid.css', 'base/reset', 'base/typography', 'base/common', 'base/icons'; // Common UI layout Regions @import 'layout/header', 'layout/nav', 'layout/footer'; // Gold Interactive UI Components // @import 'components/slider';
@charset "utf-8"; /*! * Copyright (c) Gold Interactive * Designed and mantained by Gold Interactive */ // CSS shared variables // compass and mixins @import '../shared-variables.json', '../vendor/bower/gi-scss-global-variables/global-variables', '../vendor/bower/gi-scss-mixins/mixins'; // Project variables and utils @import 'utils/variables', // Modify this for custom colors, font-sizes, etc 'utils/mixins', 'utils/placeholders', 'utils/helpers'; // Third party css @import '../vendor/bower/normalize-css/normalize.css'; // Base CSS @import 'grid.css', 'base/reset', 'base/typography', 'base/common', 'base/icons'; // Common UI layout Regions @import 'layout/header', 'layout/nav', 'layout/footer'; // Gold Interactive UI Components // @import // 'components/slider';
Improve mobile login modal with a margin
@import '../base/colors'; @import '../collapsible'; // Styling for login modal to style tabs .reveal-modal.login-modal { border-bottom-color: $modal-background-color; } .login-modal { background: $modal-background-color; .tabs-content { background: $modal-content-background-color; padding-top: 10px; } .alert-box a { color: $modal-alert-link-color; text-decoration: underline; &:hover { color: $modal-alert-link-hover-color; text-decoration: underline; } } } @media only screen and (min-width: 1025px) { // make sure styling doesn't get messed up if resizing down and back up .collapsible-menus-container { min-height: 250px; } }
@import '../base/colors'; @import '../collapsible'; // Styling for login modal to style tabs .reveal-modal.login-modal { border-bottom-color: $modal-background-color; } .login-modal { background: $modal-background-color; .tabs-content { background: $modal-content-background-color; padding-top: 10px; } .alert-box a { color: $modal-alert-link-color; text-decoration: underline; &:hover { color: $modal-alert-link-hover-color; text-decoration: underline; } } @media only screen and (max-width: 640px) { .tabbable { margin: 0 15px 0 15px; } } } @media only screen and (min-width: 1025px) { // make sure styling doesn't get messed up if resizing down and back up .collapsible-menus-container { min-height: 250px; } }
Adjust list control spacing for v2.3.0.beta2
ol { &.category-breadcrumb { margin: 0 0 $spacer-sm; li { margin-right: $spacer-sm; } } } .category-navigation { align-items: flex-start; display: flex; flex-wrap: wrap; } .category-notification-menu { .dropdown-menu { top: $btn-height; a { @include dropdown-link; } } } .list-controls { margin-bottom: ($spacer-lg - $spacer-sm); .btn { font-size: $btn-font-size; font-weight: $btn-font-weight; margin: 0 0 $spacer-sm $spacer-sm; } .nav { margin: 0 auto $spacer-sm 0; > li { &:last-child { margin-right: $spacer-sm; } > a { text-transform: uppercase; } } } }
ol { &.category-breadcrumb { margin: 0 0 $spacer-y; li { margin-right: $spacer-x-inline; } } } .list-controls { margin-bottom: 0; .btn { font-size: $btn-font-size; font-weight: $btn-font-weight; margin: 0 0 $spacer-y $spacer-x-inline; } .nav { margin: 0 auto $spacer-y 0; text-transform: uppercase; } }
Fix subtle guild icon shrinking
@import '../styles/colors'; .guild { display: flex; flex-flow: row nowrap; align-items: center; padding: 1rem; .name { display: block; font-size: 1.25rem; margin-left: 1rem; font-weight: bold; } &:hover { border-radius: 0.15rem; background: $light-gray; cursor: pointer; } }
@import '../styles/colors'; .guild { display: flex; flex-flow: row nowrap; align-items: center; padding: 1rem; .name { display: block; font-size: 1.25rem; margin-left: 1rem; font-weight: bold; } .guild-icon { flex-shrink: 0; } &:hover { border-radius: 0.15rem; background: $light-gray; cursor: pointer; } }
Adjust footer styles to avoid wrapping email.
--- # Only the main Sass file needs front matter (the dashes are enough) --- @import "minima"; // Use grey background for code pre, code, .highlighter-rouge .highlight { background-color: #f8f8f8; } .site-title::before { content: url("/alsprolog-logo.png"); display: inline-block; position: relative; width: 37px; top: 5px; }
--- # Only the main Sass file needs front matter (the dashes are enough) --- @import "minima"; // Use grey background for code pre, code, .highlighter-rouge .highlight { background-color: #f8f8f8; } // Add logo to masthead .site-title::before { content: url("/alsprolog-logo.png"); display: inline-block; position: relative; width: 37px; top: 5px; } // Avoid wrapping of email address .contact-list .u-email { font-size: 95%; }
Change menu hover/tap colour to red for my son to see it
$darken: #1d1d1d; $dark-purple: #603cba; $dark-blue: #2b5797;
$darken: #1d1d1d; $dark-purple: #603cba; $dark-blue: #c00; // $dark-blue: #2b5797;
Fix cluttered job state transition information
/* * Copyright 2019 ThoughtWorks, Inc. * * 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. */ @import "../../global/common"; .job-state-transition-information-container { margin-bottom: 20px; ul { li { label { width: 125px; flex: 0 0 125px; } } } } .key-value-pair { height: 35px; display: flex; } .key { width: 135px; } .value { font-family: monospace; font-weight: 600; } .job-state-transition-icon-container { display: inherit; width: 150px; height: 22px; cursor: pointer; }
/* * Copyright 2019 ThoughtWorks, Inc. * * 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. */ @import "../../global/common"; .job-state-transition-information-container { margin-bottom: 20px; ul { li { label { width: 125px; flex: 0 0 125px; } } } } .key-value-pair { display: flex; margin-bottom: 10px; } .key { width: 135px; } .value { font-family: monospace; font-weight: 600; } .job-state-transition-icon-container { display: inherit; width: 150px; height: 22px; cursor: pointer; }
Remove the default table styles for TYPO3 RTE-Tables
/* * Styling for typo3 related classes * * @package #{ext_directory()} * @path Generic/_T3General.scss */ /* ============================================================================= $ CSC-Frames ================================================================================ */ .csc-frame-rulerBefore { border-top: 1px $basic-border-style $basic-border-color; } .csc-frame-rulerAfter { border-bottom: 1px $basic-border-style $basic-border-color; } .csc-frame-indent { padding: 0 10%; } .csc-frame-indent3366 { padding-left: 33.333%; } .csc-frame-indent6633 { padding-right: 33.333%; } /* ============================================================================= $ CSC-Tables ================================================================================ */ .contenttable-1 { @extend .table; @extend .table--bordered; } .contenttable-2 { @extend .table; @extend .table--striped; } .contenttable-3 { @extend .table; @extend .table--striped; @extend .table--condensed; }
/* * Styling for typo3 related classes * * @package #{ext_directory()} * @path Generic/_T3General.scss */ /* ============================================================================= $ CSC-Frames ================================================================================ */ .csc-frame-rulerBefore { border-top: 1px $basic-border-style $basic-border-color; } .csc-frame-rulerAfter { border-bottom: 1px $basic-border-style $basic-border-color; } .csc-frame-indent { padding: 0 10%; } .csc-frame-indent3366 { padding-left: 33.333%; } .csc-frame-indent6633 { padding-right: 33.333%; }
Move the inline-input mixin directive and use selectors
// Inline input // // Styleguide Inline input @include textInput(".inline-input") { @include body(16,16); border: none; background: transparent; color: $color-inline-input-foreground; font-weight: 300; &:focus { outline: none; } }; @include textInput(".inline-input--article-title") { @include body(32,32); };
// Inline input // // Styleguide Inline input .inline-input[type="text"], .inline-input[type="number"], .inline-input[type="email"], .inline-input[type="search"], .inline-input[type="password"] { @include body(16,16); border: none; background: transparent; color: $color-inline-input-foreground; font-weight: 300; padding-left: 0; &:focus { background: transparent; outline: none; } }; .inline-input--article-title[type="text"], .inline-input--article-title[type="number"], .inline-input--article-title[type="email"], .inline-input--article-title[type="search"], .inline-input--article-title[type="password"] { @include body(32,42); height: 42px; };
Update screenshots and removed whitelines
//This centers an arbitrarily sized box vertically and horizontally in its containing box. // sample html: /* CONTEXT.... <div class=%centering><div class=%centering-inner> CENTEREDBOX </div></div> */ //Note the lack of space between the two divs! %centering-y { position:relative; } %centering-y:after { content: ''; display: inline-block; vertical-align: middle; height: 100%; } %centering { @extend %centering-y; text-align: center; } %centering-inner { display: inline-block; vertical-align: middle; visibility: visible; }
//This centers an arbitrarily sized box vertically and horizontally in its containing box. // sample html: /* CONTEXT.... <div class=%centering><div class=%centering-inner> CENTEREDBOX </div></div> */ //Note the lack of space between the two divs! %centering-y { position:relative; } %centering-y:after { content: ''; display: inline-block; vertical-align: middle; height: 100%; } %centering { @extend %centering-y; text-align: center; } %centering-inner { display: inline-block; vertical-align: middle; visibility: visible; }
Fix spacing for successing lqip__wrappers
img { max-width: 100%; margin-right: auto; margin-left: auto; } p img, p figure, p video, p iframe { & + img, & + figure, & + video, & + iframe { margin-top: $golden-rem / 4; } }
img { max-width: 100%; margin-right: auto; margin-left: auto; } p img, p figure, p video, p iframe, .lqip__wrapper { & + img, & + figure, & + video, & + iframe, & + .lqip__wrapper { margin-top: $golden-rem / 4; } }
Add 'inherit' to navbar-brand as fallback
@import "variables"; @import "imports"; @import "common/directives/_paintSelector"; body { padding-top: 70px; } nav .navbar-brand { font-family: Pacifico; }
@import "variables"; @import "imports"; @import "common/directives/_paintSelector"; body { padding-top: 70px; } nav .navbar-brand { font-family: Pacifico, inherit; }
Increase padding for select base label
.sv-select-base { padding: 0; } .sv-select-base__item { position: relative; margin-top: 0.3em; margin-bottom: 1.07em; vertical-align: middle; } .sv-select-base__item--inline { display: inline-block; padding-right: 2%; } .sv-select-base__column { display: inline-block; width: 19%; vertical-align: top; } .sv-select-base__label { display: inline-block; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0.28em; } .sv-select-base__control { margin: 0; vertical-align: middle; } .sv-select-base__control-label { margin-left: 1em; vertical-align: middle; }
.sv-select-base { padding: 0; } .sv-select-base__item { position: relative; margin-top: 0.3em; margin-bottom: 1.07em; vertical-align: middle; } .sv-select-base__item--inline { display: inline-block; padding-right: 2%; } .sv-select-base__column { display: inline-block; width: 19%; vertical-align: top; } .sv-select-base__label { display: inline-block; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0.3em; } .sv-select-base__control { margin: 0; vertical-align: middle; } .sv-select-base__control-label { margin-left: 1em; vertical-align: middle; }
Add styling for sprint detail
@import '_Reset'; @import '_AppWideVariables'; @import '_ContentStyles'; @import '_Forms'; @import '_PageHeader'; body { font-family: $proportional-font-stack; margin: 1em; } .ticket_detail { .description_content, .comment_content { font-family: $monospace-font-stack; white-space: pre-line; } } table.ticket_list { border: 1px solid $subtle-keyline-color; border-collapse: collapse; td, th { padding: 0.2em 0.4em; border-bottom: 1px solid $faint-keyline-color; } tr:last-child td, th { border-color: $subtle-keyline-color; } th { font-weight: bold; } }
@import '_Reset'; @import '_AppWideVariables'; @import '_ContentStyles'; @import '_Forms'; @import '_PageHeader'; body { font-family: $proportional-font-stack; margin: 1em; } .ticket_detail { .description_content, .comment_content { font-family: $monospace-font-stack; white-space: pre-line; } } .sprint_detail { .description_content { font-family: $monospace-font-stack; white-space: pre-line; } } table.ticket_list { border: 1px solid $subtle-keyline-color; border-collapse: collapse; td, th { padding: 0.2em 0.4em; border-bottom: 1px solid $faint-keyline-color; } tr:last-child td, th { border-color: $subtle-keyline-color; } th { font-weight: bold; } }
Remove html/body margin & padding
html, body { box-sizing: border-box; font-family: Ubuntu; font-size: 11pt; } @import "palette"; @import "_/*.scss"; @import "atoms/*.scss"; @import "molecules/*.scss"; @import "organisms/*.scss"; @import "pages/*.scss"; @import "sheet/*.scss";
html, body { box-sizing: border-box; font-family: Ubuntu; font-size: 11pt; margin: 0; padding: 0; } @import "palette"; @import "_/*.scss"; @import "atoms/*.scss"; @import "molecules/*.scss"; @import "organisms/*.scss"; @import "pages/*.scss"; @import "sheet/*.scss";
Fix tabs in int list
@import 'colors'; //////////////////////////////////////////////////////////////////////////////// // PATTERNFLY CARD LAYOUT //////////////////////////////////////////////////////////////////////////////// body.cards-pf { background-color: $pf-custom-gray; } .card-title { font-size: 14px; font-weight: 600; margin-bottom: 10px; } //////////////////////////////////////////////////////////////////////////////// // PATTERNFLY VERTICAL NAVIGATION //////////////////////////////////////////////////////////////////////////////// .layout-pf.layout-pf-fixed .container-pf-nav-pf-vertical.collapsed-nav { margin-left: 0; } .navbar-pf-vertical { a { color: #ffffff; } .navbar-brand { margin: 6px 0 0 25px; } } //////////////////////////////////////////////////////////////////////////////// // TABS //////////////////////////////////////////////////////////////////////////////// .tab-container { .nav-tabs { border-bottom: none; li.nav-item { margin: 0; a { border: none; cursor: pointer; &.active:hover { background: #FFFFFF; } &:hover { background: $pf-black-300; } } } } .tab-content { background: #FFFFFF; } }
@import 'colors'; //////////////////////////////////////////////////////////////////////////////// // PATTERNFLY CARD LAYOUT //////////////////////////////////////////////////////////////////////////////// body.cards-pf { background-color: $pf-custom-gray; } .card-title { font-size: 14px; font-weight: 600; margin-bottom: 10px; } //////////////////////////////////////////////////////////////////////////////// // PATTERNFLY VERTICAL NAVIGATION //////////////////////////////////////////////////////////////////////////////// .layout-pf.layout-pf-fixed .container-pf-nav-pf-vertical.collapsed-nav { margin-left: 0; } .navbar-pf-vertical { a { color: #ffffff; } .navbar-brand { margin: 6px 0 0 25px; } } //////////////////////////////////////////////////////////////////////////////// // TABS //////////////////////////////////////////////////////////////////////////////// .tab-container { .nav-tabs { border-bottom: none; li.nav-item { margin: 0; a { border: none; cursor: pointer; &.active:hover { background: #FFFFFF; } &:hover { background: $pf-black-300; } } } } .tab-content { background: #FFFFFF; } }
Set link and code color.
//$code-color: #4f00fe !default; $navbar-height: 70px; $navbar-expanded-height: 101px; @import "darkly/_variables.scss"; @import "bootstrap"; @import "darkly/_bootswatch.scss"; @import "sidemenu"; @import "simple-sidebar"; @import "edity/css/fade"; @import "edity/css/layout"; @import "edity/css/loading";
$code-color: #b28fff !default; $link-color: rgb(44, 142, 225) !default; $navbar-height: 70px; $navbar-expanded-height: 101px; @import "darkly/_variables.scss"; @import "bootstrap"; @import "darkly/_bootswatch.scss"; @import "sidemenu"; @import "simple-sidebar"; @import "edity/css/fade"; @import "edity/css/layout"; @import "edity/css/loading";
Create new CSS style for .user-container
// Place all the styles related to the Users controller here. // They will automatically be included in application.css. // You can use Sass (SCSS) here: http://sass-lang.com/
// Place all the styles related to the Users controller here. // They will automatically be included in application.css. // You can use Sass (SCSS) here: http://sass-lang.com/ .user-container{ display:flex; flex-direction: column; justify-content: center; align-items: center; width: 100%; height: 90%; }
Fix up layout on collectioninfo
@import "app/variables.scss"; @import "app/mixins.scss"; .CollectionInfo { &__item { margin-bottom: 15px; overflow: hidden; display: flex; &:last-child { margin: 0; } .key, .value { flex: 1 1; } .key { @include rtlSupportInvertedProp(margin, right, $aleph-grid-size*2, null); flex-basis: 35%; min-width: 90px; color: $gray1 !important; } .value { flex-basis: 65%; @include rtl(text-align, right, left); & > * { display: block; margin-bottom: $aleph-grid-size/2; @include breakText; &:last-child { margin: 0; } } .separator { display: none; } } } }
@import "app/variables.scss"; @import "app/mixins.scss"; .CollectionInfo { &__item { margin-bottom: 15px; // overflow: hidden; &:last-child { margin: 0; } .key { @include rtlSupportInvertedProp(margin, right, $aleph-grid-size*2, null); color: $gray1 !important; margin-bottom: $aleph-grid-size/2; } .value { @include rtl(text-align, left, right); & > * { display: block; margin-bottom: $aleph-grid-size/2; @include breakText; &:last-child { margin: 0; } } .separator { display: none; } } } }
Remove unnecessary css for .documentation-index
.documentation-index { li { line-height: 24px; color: $document-index-color; a { margin-right: 3px; } } } .shortcut-mappings { font-size: 12px; color: $help-shortcut-mapping-color; tbody:first-child tr:first-child { padding-top: 0; } th { padding-top: 15px; line-height: 1.5; color: $help-shortcut-header-color; text-align: left; } td { padding-top: 3px; padding-bottom: 3px; vertical-align: top; line-height: 20px; } .shortcut { padding-right: 10px; color: $help-shortcut-color; text-align: right; white-space: nowrap; } .key { @extend .label; @extend .label-inverse; font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace; padding: 3px 5px; } } .documentation { padding: 7px; // Border around images in the help pages. img:not(.emoji) { border: 1px solid $white-normal; padding: 5px; margin: 5px; max-height: calc(100vh - 100px); } }
.shortcut-mappings { font-size: 12px; color: $help-shortcut-mapping-color; tbody:first-child tr:first-child { padding-top: 0; } th { padding-top: 15px; line-height: 1.5; color: $help-shortcut-header-color; text-align: left; } td { padding-top: 3px; padding-bottom: 3px; vertical-align: top; line-height: 20px; } .shortcut { padding-right: 10px; color: $help-shortcut-color; text-align: right; white-space: nowrap; } .key { @extend .label; @extend .label-inverse; font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace; padding: 3px 5px; } } .documentation { padding: 7px; // Border around images in the help pages. img:not(.emoji) { border: 1px solid $white-normal; padding: 5px; margin: 5px; max-height: calc(100vh - 100px); } }
Adjust layout of language settings widget
/** * @author Thomas Kleinke */ .cdk-drag-placeholder { color: white; } .list-group { border: 1px solid rgba(0, 0, 0, 0.125); }
/** * @author Thomas Kleinke */ language-settings { .list-group { border: 1px solid rgba(0, 0, 0, 0.125); } .list-group-item { border-bottom: none !important; } } .cdk-drag-placeholder { color: white; } .cdk-drag { cursor: move; } .cdk-drag-preview { border: 1px solid rgba(0, 0, 0, 0.125) !important; border-radius: 0 !important; }
Fix spacing for authors block within posts
.article { $component: &; padding: $spacing-small; background: $color-content; @include respond-medium { padding: $spacing-medium; } @include respond-large { padding: $spacing-large; } ~ .section { padding-top: 0 !important; } #{$component}__wrapper { max-width: $max-wrapper-width; margin: 0 auto; } #{$component}__meta { display: flex; align-items: center; margin-top: 1.5rem; } #{$component}__authors { margin-top: 1.5rem; } #{$component}__category { flex: 0 0 auto; margin-right: 1rem; } #{$component}__date { flex: 0 0 auto; display: inline-block; margin-right: 1rem; } #{$component}__content { > *:last-child { margin-bottom: 0; } } }
.article { $component: &; padding: $spacing-small; background: $color-content; @include respond-medium { padding: $spacing-medium; } @include respond-large { padding: $spacing-large; } ~ .section { padding-top: 0 !important; } #{$component}__wrapper { max-width: $max-wrapper-width; margin: 0 auto; } #{$component}__meta { display: flex; align-items: center; margin-top: 1.5rem; } #{$component}__authors { margin-top: 1.5rem; > *:last-child { margin-bottom: 0; } } #{$component}__category { flex: 0 0 auto; margin-right: 1rem; } #{$component}__date { flex: 0 0 auto; display: inline-block; margin-right: 1rem; } #{$component}__content { > *:last-child { margin-bottom: 0; } } }
Update styles on range slider
// ========================================================================== // Shorthand input range styling classes // UNUSED. // Originally developed for job title percentage selection. // ========================================================================== .field-range { &.noUi-horizontal { height: _rem($base-rhythm); .noUi-handle { width: _rem($base-rhythm * 2); height: _rem($base-rhythm * 2); } } .noUi-handle { background: map-get($colors, 10); border: none; border-radius: _rem($base-rhythm); box-shadow: none; cursor: pointer; outline: none; &:before { display: none } &:after { display: none } } }
// ========================================================================== // Shorthand input range styling classes // UNUSED. // Originally developed for job title percentage selection. // ========================================================================== .field-range { &.noUi-horizontal { height: _rem($base-rhythm / 2); .noUi-handle { width: _rem($base-rhythm * 1.5); height: _rem($base-rhythm * 1.5); } } &.noUi-target { background-color: map-get($colors, 10); border: none; box-shadow: none; } .noUi-handle { background: map-get($colors, 10); border: none; border-radius: _rem($base-rhythm); box-shadow: none; cursor: pointer; outline: none; top: -5px; &:before { display: none } &:after { display: none } } } html:not([dir="rtl"]) .noUi-horizontal .noUi-handle { right: -10px; }
Reduce size of footer column headings
// Overrides for certain GOV.UK Frontend styles to make its components match this application's design // Additional padding-bottom override, following the GOV.UK Frontend spacing scale: // https://design-system.service.gov.uk/styles/spacing/#the-responsive-spacing-scale .govuk-\!-padding-bottom-12 { padding-bottom: 70px; @include govuk-media-query($from: tablet) { padding-bottom: 90px; } } .govuk-footer__navigation { -webkit-flex-wrap: wrap; -ms-flex-wrap: wrap; flex-wrap: wrap } .govuk-footer__section { -webkit-flex-basis: 200px; -ms-flex-preferred-size: 200px; flex-basis: 100%; } @include govuk-media-query($from: tablet) { .govuk-footer__navigation { -webkit-flex-wrap: nowrap; -ms-flex-wrap: nowrap; flex-wrap: nowrap } .govuk-footer__section { -webkit-flex-basis: 200px; -ms-flex-preferred-size: 200px; flex-basis: 200px; } }
// Overrides for certain GOV.UK Frontend styles to make its components match this application's design // Additional padding-bottom override, following the GOV.UK Frontend spacing scale: // https://design-system.service.gov.uk/styles/spacing/#the-responsive-spacing-scale .govuk-\!-padding-bottom-12 { padding-bottom: 70px; @include govuk-media-query($from: tablet) { padding-bottom: 90px; } } .govuk-footer__navigation { -webkit-flex-wrap: wrap; -ms-flex-wrap: wrap; flex-wrap: wrap } .govuk-footer__section { -webkit-flex-basis: 200px; -ms-flex-preferred-size: 200px; flex-basis: 100%; } @include govuk-media-query($from: tablet) { .govuk-footer__navigation { -webkit-flex-wrap: nowrap; -ms-flex-wrap: nowrap; flex-wrap: nowrap } .govuk-footer__section { -webkit-flex-basis: 200px; -ms-flex-preferred-size: 200px; flex-basis: 200px; } } // Make column headings smaller to prevent wrapping .govuk-footer__heading { @include govuk-font($size: 19, $weight: bold); }
Update List--centered to only apply to larger media.
.List { list-style: square; margin: 0 0 1em; padding: 0 0 0 1.5em; } .List--centered { padding: 0; text-align: center; list-style-position: inside; }
.List { list-style: square; margin: 0 0 1em; padding: 0 0 0 1.5em; li { margin-bottom: 0.2em; } } @include breakpoint("med") { .List--centered { padding: 0; text-align: center; list-style-position: inside; } }
Fix text wrapping on mobile
// // Mission Statement // ================================================== .missionStatement { // NOTE: Bottom margin is larger than the top // for better optical centering --margin-top: 5rem; --margin-bottom-multiplier: 1.2; margin-bottom: calc(var(--margin-top) * var(--margin-bottom-multiplier)); margin-left: auto; margin-right: auto; margin-top: var(--margin-top); max-width: 80ch; padding-left: 1rem; padding-right: 1rem; @media (--min-720) { padding-left: 1.5rem; padding-right: 1.5rem; text-align: center; } @media (--min-960) { --margin-top: 6.25rem; } @media (--min-1440) { --margin-top: 7.5rem; } } .missionStatement-label { border-bottom: 1px solid var(--exodus-fruit); display: inline-block; margin-bottom: 0; @media (--dark) { border-bottom-color: var(--dark-yellow); } } .missionStatement-text { hyphens: none; line-height: 1.3; margin-top: 1rem; margin-top: .75rem; }
// // Mission Statement // ================================================== .missionStatement { // NOTE: Bottom margin is larger than the top // for better optical centering --margin-top: 5rem; --margin-bottom-multiplier: 1.2; margin-bottom: calc(var(--margin-top) * var(--margin-bottom-multiplier)); margin-left: auto; margin-right: auto; margin-top: var(--margin-top); max-width: 80ch; padding-left: 1rem; padding-right: 1rem; @media (--min-720) { padding-left: 1.5rem; padding-right: 1.5rem; text-align: center; } @media (--min-960) { --margin-top: 6.25rem; } @media (--min-1440) { --margin-top: 7.5rem; } } .missionStatement-label { border-bottom: 1px solid var(--exodus-fruit); display: inline-block; margin-bottom: 0; white-space: nowrap; @media (--dark) { border-bottom-color: var(--dark-yellow); } } .missionStatement-text { hyphens: none; line-height: 1.3; margin-top: 1rem; margin-top: .75rem; }
Add padding to main element so last item is not cut off
// Place all the styles related to the Items controller here. // They will automatically be included in application.css. // You can use Sass (SCSS) here: http://sass-lang.com/ .items-vote-on { @include block-grid( // This controls how many elements will be on each row of the block grid. Set this to whatever number you need, up to the max allowed in the variable. // Available options: 1-12 by default, and false. $per-row: 2, // This controls how much space is between each item in the block grid. // Use a variable or any pixel or em values. $spacing: $block-grid-default-spacing, // This controls whether or not base styles come through, set to false to leave out. $base-style: true ); } .vote-buttons { position: fixed; bottom: 0; background: white; box-shadow: 0px -1px 1px black; width: 100% } .vote-form { @extend .large-4; float:left; }
// Place all the styles related to the Items controller here. // They will automatically be included in application.css. // You can use Sass (SCSS) here: http://sass-lang.com/ main { padding-bottom: 15%; } .items-vote-on { @include block-grid( // This controls how many elements will be on each row of the block grid. Set this to whatever number you need, up to the max allowed in the variable. // Available options: 1-12 by default, and false. $per-row: 2, // This controls how much space is between each item in the block grid. // Use a variable or any pixel or em values. $spacing: $block-grid-default-spacing, // This controls whether or not base styles come through, set to false to leave out. $base-style: true ); } .vote-buttons { position: fixed; bottom: 0; background: white; box-shadow: 0px -1px 1px black; width: 100% } .vote-form { @extend .large-4; float:left; }
Set accent color for future proofing
// Styles written by __gulp_init_author_name__ @ __gulp_init_author_company__ /* ------------------------------------------------------------------------ *\ * Page \* ------------------------------------------------------------------------ */ html, body { & { background: color("page-background"); min-height: 100vh; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; width: 100%; } } .page__container { & { background: color("page-background"); display: flex; flex-direction: column; min-height: 100vh; overflow: hidden; // will interfere with `position: sticky;` overflow: clip; // will NOT interfere with `position: sticky;` position: relative; width: 100%; } #content { // stylelint-disable-line display: flex; flex: 1 0 auto; flex-direction: column; } .content-block { flex: 1 0 auto; } }
// Styles written by __gulp_init_author_name__ @ __gulp_init_author_company__ /* ------------------------------------------------------------------------ *\ * Page \* ------------------------------------------------------------------------ */ :root { & { accent-color: color("accent"); } } html, body { & { background: color("page-background"); min-height: 100vh; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; width: 100%; } } .page__container { & { background: color("page-background"); display: flex; flex-direction: column; min-height: 100vh; overflow: hidden; // will interfere with `position: sticky;` overflow: clip; // will NOT interfere with `position: sticky;` position: relative; width: 100%; } #content { // stylelint-disable-line display: flex; flex: 1 0 auto; flex-direction: column; } .content-block { flex: 1 0 auto; } }
Add Sephora Sans font and helpers 2
@mixin font-sephora-serif { font-family: $font-family-sephora-serif; font-style: normal; font-weight: 400; letter-spacing: normal; } @mixin font-sephora-serif-italic { font-family: $font-family-sephora-serif; font-style: italic; font-weight: 400; letter-spacing: normal; } @mixin font-sephora-sans { font-family: $font-family-sephora-sans; font-style: italic; font-weight: 400; letter-spacing: normal; } @mixin font-avalon-bold { font-weight: 700; letter-spacing: 0.5px; } @mixin font-avalon-demi { font-weight: 600; } @mixin font-avalon-book { font-weight: 400; } @mixin font-family-avalon { font-family: $font-family-avalon; font-style: normal; letter-spacing: 0.3px; }
@mixin font-sephora-serif { font-family: $font-family-sephora-serif; font-style: normal; font-weight: 400; letter-spacing: normal; } @mixin font-sephora-serif-italic { font-family: $font-family-sephora-serif; font-style: italic; font-weight: 400; letter-spacing: normal; } @mixin font-sephora-sans { font-family: $font-family-sephora-sans; font-style: normal; font-weight: 400; letter-spacing: normal; } @mixin font-avalon-bold { font-weight: 700; letter-spacing: 0.5px; } @mixin font-avalon-demi { font-weight: 600; } @mixin font-avalon-book { font-weight: 400; } @mixin font-family-avalon { font-family: $font-family-avalon; font-style: normal; letter-spacing: 0.3px; }
Replace double quotes with single quotes in CSS
@import 'base/colors'; @import 'base/variables'; @import 'base/mixins'; @import 'base/normalize'; @import 'base/skeleton';
@import "base/colors"; @import "base/variables"; @import "base/mixins"; @import "base/normalize"; @import "base/skeleton";
Fix the rendering of the system tooltips.
@import "styles/theme"; .SystemTooltips-Tooltip { pointer-events: none; position: fixed; opacity: 0; transition: opacity 0.5s; &--hovered { opacity: 1; } } .SystemTooltips-Text { background-color: $light4; padding: 1rem; border-radius: 6px; transform: translateX(-50%) translateY(-100%); z-index: 1; &:after { content: " "; position: absolute; top: 100%; left: 50%; margin-left: -5px; border-width: 5px; border-style: solid; border-color: transparent; border-top-color: $light4; } } .SystemTooltips-Name { color: $dark4; display: inline-block; font-size: 1.1rem; margin: 0; } .SystemTooltips-Key { color: $light1; display: inline-block; font-size: 0.8rem; margin-left: 0.5rem; }
@import 'styles/theme'; .SystemTooltips-Tooltip { pointer-events: none; position: fixed; opacity: 0; transition: opacity 0.5s; z-index: 1; &--hovered { opacity: 1; } } .SystemTooltips-Text { background-color: $light4; padding: 1rem; border-radius: 6px; transform: translateX(-50%) translateY(-100%); z-index: 1; &:after { content: ' '; position: absolute; top: 100%; left: 50%; margin-left: -5px; border-width: 5px; border-style: solid; border-color: transparent; border-top-color: $light4; } } .SystemTooltips-Name { color: $dark4; display: inline-block; font-size: 1.1rem; margin: 0; } .SystemTooltips-Key { color: $light1; display: inline-block; font-size: 0.8rem; margin-left: 0.5rem; }
Change background color of the last subscription form
#content { max-width: 700px; padding-top: 30px; h2 { font-family: 'Komika Title'; color: rgba(241, 196, 15,1.0); text-shadow: 3px 3px rgba(55,55,55,1.0); .capital-letter { font-size: 50px; } } a { font-size: 20px; font-family: 'Komika Title'; color: rgba(241, 196, 15,1.0); text-shadow: 2px 2px rgba(55,55,55,1.0); &:hover { text-decoration: none; } } } #last-form { background-color: rgba(241, 196, 15,1.0); margin-top: 40px; padding-bottom: 40px; h2 { font-family: 'Komika Title'; } }
#content { max-width: 700px; padding-top: 30px; h2 { font-family: 'Komika Title'; color: rgba(241, 196, 15,1.0); text-shadow: 3px 3px rgba(55,55,55,1.0); .capital-letter { font-size: 50px; } } a { font-size: 20px; font-family: 'Komika Title'; color: rgba(241, 196, 15,1.0); text-shadow: 2px 2px rgba(55,55,55,1.0); &:hover { text-decoration: none; } } } #last-form { background-color: rgba(44, 62, 80,1.0); margin-top: 40px; padding-bottom: 40px; color: white; h2 { color: rgba(241, 196, 15,1.0); font-family: 'Komika Title'; } }
Add some points from background
$font-large: 40px; h1 { font-size: 100px; margin-top: 200px; } .large { font-size: $font-large; } .note { font-size: 28px; position: absolute; bottom: 50px; } .fill-slide { width: 100%; height: 100%; position: absolute; top: 0; left: 0; } .center { text-align: center; } .hidden { visibility: hidden; } #sketch { margin-left: 110px; }
$font-large: 40px; h1 { font-size: 100px; margin-top: 200px; } .large { font-size: $font-large; } .note { font-size: 28px; position: absolute; bottom: 50px; } .fill-slide { width: 100%; height: 100%; position: absolute; top: 0; left: 0; } .center { text-align: center; } .hidden { visibility: hidden; } #sketch { margin-left: 110px; } .points { position: absolute; bottom: 150px; opacity: 0; transition: opacity 1s; color: #000; } .impress-on-points { .points { opacity: 1; } } #point1 { left: 140px; } #point2 { left: 365px; } #point3 { left: 700px; }
Add scss style for ui-autocompletion.
// Place all the styles related to the Workshifts controller here. // They will automatically be included in application.css. // You can use Sass (SCSS) here: http://sass-lang.com/
// Place all the styles related to the Workshifts controller here. // They will automatically be included in application.css. // You can use Sass (SCSS) here: http://sass-lang.com/ .ui-autocomplete { position: absolute; top: 100%; left: 0; z-index: 1000; float: left; display: none; min-width: 160px; _width: 160px; padding: 4px 0; margin: 2px 0 0 0; list-style: none; background-color: #ffffff; border-color: #ccc; border-color: rgba(0, 0, 0, 0.2); border-style: solid; border-width: 1px; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); -webkit-background-clip: padding-box; -moz-background-clip: padding; background-clip: padding-box; *border-right-width: 2px; *border-bottom-width: 2px; .ui-menu-item { display: block; padding: 3px 15px; clear: both; font-weight: normal; line-height: 18px; color: #555555; white-space: nowrap; &.ui-state-focus { color: #ffffff; text-decoration: none; background-color: #0088cc; border-radius: 0px; -webkit-border-radius: 0px; -moz-border-radius: 0px; background-image: none; } } }
Add shadow to the nav and header text
@charset "UTF-8"; @import "bootstrap-sprockets"; @import "bootstrap"; @import "font-awesome-sprockets"; @import "font-awesome"; @import "variables"; @import "mixins"; @import "agency"; header{ background-image: image-url('banner.jpg'); }
@charset "UTF-8"; @import "bootstrap-sprockets"; @import "bootstrap"; @import "font-awesome-sprockets"; @import "font-awesome"; @import "variables"; @import "mixins"; @import "agency"; header{ background-image: image-url('banner.jpg'); } .navbar, .intro-lead-in, .intro-heading { text-shadow: 1px 1px 2px black; }
Add responsive layout for tour
.tour { small { display: block; font-size: 75%; } }
.tour { small { display: block; font-size: 75%; } } // http://css-tricks.com/responsive-data-tables/ @media only screen and (max-width: 760px), (min-device-width: 768px) and (max-device-width: 1024px) { /* Force table to not be like tables anymore */ table, thead, tbody, th, td, tr { display: block; } /* Hide table headers (but not display: none;, for accessibility) */ thead tr { position: absolute; top: -9999px; left: -9999px; } .table-minimal tbody tr:first-child td { border-width: 1px; } td:first-child, td:first-child:hover { background: $base-border-color; } td { /* Behave like a "row" */ border: none; position: relative; padding-left: 50%; } td:before { /* Now like a table header */ position: absolute; /* Top/left values mimic padding */ top: 6px; left: 6px; width: 45%; padding-right: 10px; white-space: nowrap; } }
Fix Sefaria vs tag z-index
@import 'variables'; select.form-element { display: block; width: 100%; } .form-group { margin-bottom: 1em; } .form-group-horizontal { display: flex; flex-direction: column; margin-bottom: 1em; align-items: flex-end; @media screen and (min-width: $screen-md) { flex-direction: row; & > :first-child { margin: 0 0.5em 0 0 !important; } & > :last-child { margin: 0 0 0 0.5em !important; } } & > .form-group { margin: 0.5em 0; @media screen and (min-width: $screen-md) { margin: 0 0.5em; flex: 1; } } & > .actions { display: flex; align-items: flex-end; } } .form-inline { input[type="file"] { display: inline-block; } } .select2 { margin: 0.4em 0; } .select2-container { width: 100% !important; z-index: 9999; }
@import 'variables'; select.form-element { display: block; width: 100%; } .form-group { margin-bottom: 1em; } .form-group-horizontal { display: flex; flex-direction: column; margin-bottom: 1em; align-items: flex-end; @media screen and (min-width: $screen-md) { flex-direction: row; & > :first-child { margin: 0 0.5em 0 0 !important; } & > :last-child { margin: 0 0 0 0.5em !important; } } & > .form-group { margin: 0.5em 0; @media screen and (min-width: $screen-md) { margin: 0 0.5em; flex: 1; } } & > .actions { display: flex; align-items: flex-end; } } .form-inline { input[type="file"] { display: inline-block; } } .select2 { margin: 0.4em 0; } .select2-container { width: 100% !important; z-index: 8999; }
Remove unneeded bower_components path from main.css
/* ========================================================================== Project: <%= projectName %> Author: <%= projectAuthor %> Last updated: @@timestamp @@toc ========================================================================== */ <% if (!useBootstrap) { %> @import "../bower_components/normalize.css/normalize.scss";<% } %> /* ========================================================================== Custom Styling ========================================================================== */ @import "variables"; @import "mixins"; @import "common";<% if (isWP) { %> @import "wordpress";<% } %><% if (cssPreprocessor === 'LIBSASS') { %> /*# sourceMappingURL=main.css.map */<% } %>
/* ========================================================================== Project: <%= projectName %> Author: <%= projectAuthor %> Last updated: @@timestamp @@toc ========================================================================== */ <% if (!useBootstrap) { %> @import "normalize.css/normalize.scss";<% } %> /* ========================================================================== Custom Styling ========================================================================== */ @import "variables"; @import "mixins"; @import "common";<% if (isWP) { %> @import "wordpress";<% } %><% if (cssPreprocessor === 'LIBSASS') { %> /*# sourceMappingURL=main.css.map */<% } %>