Instruction
stringlengths
14
778
input_code
stringlengths
0
4.24k
output_code
stringlengths
1
5.44k
Add bottom margin to workspace concept form
.concept-workspace .nav-tabs { display: none; } .concept-workspace-history { margin: 0; .concept-info { border-bottom: 1px solid #ccc; &:last-child { border-bottom: none; } // Make it link-like.. .name { @extend a; cursor: pointer; } } }
.concept-workspace .nav-tabs { display: none; } .concept-workspace { .concept-form { margin-bottom: 10px; } } .concept-workspace-history { margin: 0; .concept-info { border-bottom: 1px solid #ccc; &:last-child { border-bottom: none; } // Make it link-like.. .name { @extend a; cursor: pointer; } } }
Add zebra style to issues list
/* http://colorschemedesigner.com/#3J31Tw0w0w0w0 */ table { border-collapse: collapse; } th, td { padding: 5px; padding-right: 2em; text-align: left; padding-bottom: 20px; max-width: 300px; vertical-align: top; div { position: relative; } } div.description { color: gray; font-size: 8pt; position: absolute; width: 400px; padding: 5px; } div.short { height: 18px; overflow: hidden; } table .dragging { background-color: #eee; }
/* http://colorschemedesigner.com/#3J31Tw0w0w0w0 */ table { border-collapse: collapse; } th, td { padding: 5px; padding-right: 2em; text-align: left; padding-bottom: 20px; max-width: 300px; vertical-align: top; div { position: relative; } } div.description { color: gray; font-size: 8pt; position: absolute; width: 400px; padding: 5px; } div.short { height: 18px; overflow: hidden; } table > tbody > tr:nth-child(2n+1) { background-color: #eee; } table .dragging, table > tbody > tr.dragging { background-color: #009D91; color: white; }
Fix for display of fee when not for a BIP70 invoice.
.fee-summary { position: relative; display: flex; flex-direction: column; width: 100%; padding: 5px 12px 15px; box-sizing: border-box; background-color: #F2F2F2; &:before { content: ''; position: absolute; left: 0; top: -15px; width: 100%; height: 15px; background: linear-gradient(to bottom, rgba(242,242,242,0) 0%,rgba(242,242,242,1) 100%); } .amount { display: flex; flex-direction: row; justify-content: space-between; .fee-fiat { &.positive { color: #70955F; } &.negative { color: #C24633; } } .fee-crypto { color: #A7A7A7; } } }
.fee-summary { position: relative; display: flex; flex-direction: column; width: 100%; padding: 5px 12px 15px; box-sizing: border-box; background-color: #F2F2F2; &:before { content: ''; position: absolute; left: 0; top: -15px; width: 100%; height: 15px; background: linear-gradient(to bottom, rgba(242,242,242,0) 0%,rgba(242,242,242,1) 100%); } .amount { display: flex; flex-direction: row; justify-content: space-between; width: 100%; .fee-fiat { &.positive { color: #70955F; } &.negative { color: #C24633; } } .fee-crypto { color: #A7A7A7; } } }
Add new styles for facet display
.search-form { margin-bottom: $line-height; } .search-stats { color: color(warm-black, light); margin-bottom: $line-height; } .result { border-top: .5px solid color(warm-black); display: flex; padding-top: ($line-height / 2); figure { margin-top: 0; } } .page-controls { margin-bottom: ($line-height * 2); } .page-controls-inner { display: flex; flex-flow: row; justify-content: center; a+a { margin-left: ($gutter / 2); } }
.search-form { margin-bottom: $line-height; } .search-facets { display: flex; flex: 0 1 auto; flex-flow: row; margin-bottom: $line-height; .facet { background-color: color(warm-black, x-light); display: flex; flex: 1; flex-flow: column; font-size: $font-size-small; justify-content: flex-start; max-height: 16rem; overflow-y: scroll; padding-top: ($line-height / 2); h4 { margin-left: auto; margin-right: auto; } ul { padding-left: ($gutter / 2); padding-right: ($gutter / 2); } [type="checkbox"] { margin-right: ($gutter / 2); } } .facet+.facet { margin-left: ($gutter / 2); } .facet-count { margin-left: ($gutter / 4); } } .search-stats { color: color(warm-black, light); margin-bottom: $line-height; } .result { border-top: .5px solid color(warm-black); display: flex; padding-top: ($line-height / 2); figure { margin-top: 0; } } .page-controls { margin-bottom: ($line-height * 2); } .page-controls-inner { display: flex; flex-flow: row; justify-content: center; a+a { margin-left: ($gutter / 2); } }
Remove tag qualifier from bordered pattern.
// Style for images in content sections. // // Styleguide Images - Figures .content-figure { text-align: center; padding: gutter() 0; img { display: inline-block; } figcaption { color: $med-gray; font-size: $font-small; padding: 0 $base-spacing $base-spacing; } } // Stylized image, with a thick border and subtle shadow. // // Styleguide Images - Bordered img.bordered { border: 6px solid #fff; box-shadow: $box-shadow; }
// Style for images in content sections. // // Styleguide Images - Figures .content-figure { text-align: center; padding: gutter() 0; img { display: inline-block; } figcaption { color: $med-gray; font-size: $font-small; padding: 0 $base-spacing $base-spacing; } } // Stylized image, with a thick border and subtle shadow. // // Styleguide Images - Bordered .bordered { border: 6px solid #fff; box-shadow: $box-shadow; }
Add styles for input button
// Modules and Variables @import "partials/base"; // Partials @import "partials/typography"; body { color: $color-black; font: 100% $font-primary-stack; text-align: center; background: $color-white; } h1 { font-weight: $headings-font-weight; margin: 0 auto; } header { h1, p { color: lighten($color-red, 10%); line-height: $font-line-height; text-shadow: 0px 1px 0px $color-black; } p { margin: 0 auto; } } #flashcard { background: $color-red; width: 20em; height: 20em; border-radius: $border-radius; margin: 1.2em auto; h2 { color: $color-white; line-height: 12.8em; margin: 0; } }
// Modules and Variables @import "partials/base"; // Partials @import "partials/typography"; @import "partials/buttons"; body { color: $color-black; font: 100% $font-primary-stack; text-align: center; background: $color-white; } h1 { font-weight: $headings-font-weight; margin: 0 auto; } header { h1, p { color: lighten($color-red, 10%); line-height: $font-line-height; text-shadow: 0px 1px 0px $color-black; } p { margin: 0 auto; } } #flashcard { background: $color-red; width: 20em; height: 20em; border-radius: $border-radius; margin: 1.2em auto; h2 { color: $color-white; line-height: 12.8em; margin: 0; } } [type="button"] { @include button(); } [type="button"]:hover { color: $color-white; background: $color-blue; }
Add additional repo color overrides
$colors: ( #563d7c: $accent-purple, // CSS #f1e05a: $accent-yellow, // JavaScript #701516: $accent-red, // Ruby #4F5D95: $accent-blue-purple, // PHP #89e051: #7dbd45, // Shell #e44b23: #ab663c, // HTML #3572A5: $accent-blue, // Python #b07219: #61492b // Java ); @each $base, $replacement in $colors { .repo-language-color[style="background-color:#{$base};"], .language-color[style$="background-color:#{$base};"] { background-color: $replacement !important; } }
$colors: ( #6E4C13: #494829, // Assembly #f34b7d: #bf5b7f, // C++ #563d7c: $accent-purple, // CSS #e44b23: #ab663c, // HTML #b07219: #61492b, // Java #f1e05a: $accent-yellow, // JavaScript #427819: $accent-green, // Makefile #ededed: $bgDark, // Other #4F5D95: $accent-blue-purple, // PHP #3572A5: $accent-blue, // Python #701516: $accent-red, // Ruby #89e051: #7dbd45 // Shell ); @each $base, $replacement in $colors { .repo-language-color[style="background-color:#{$base};"], .language-color[style$="background-color:#{$base};"] { background-color: $replacement !important; } }
Update color tools to use mixin
// ************************************* // // Tools - Color // // ************************************* // ------------------------------------- // Palette // ------------------------------------- .sb-c-action { color: palette('action') !important; } .sb-c-base { color: palette('base') !important; } .sb-c-base-1 { color: palette('base', 1) !important; } .sb-c-base-2 { color: palette('base', 2) !important; } .sb-c-base-3 { color: palette('base', 3) !important; } .sb-c-light { color: palette('light') !important; } // ------------------------------------- // Variables // ------------------------------------- .sb-c-slate { color: $slate !important; } .sb-c-sun { color: $sun !important; } .sb-c-white { color: $white !important; }
// ************************************* // // Tools - Color // // ************************************* // ------------------------------------- // Palette // ------------------------------------- @include tool-generate-color-classes('c'); // ------------------------------------- // Variables // ------------------------------------- .sb-c-slate { color: $slate !important; } .sb-c-sun { color: $sun !important; } .sb-c-white { color: $white !important; }
Add comments to the settings
$column: golden-ratio(1em, 3) !default; $gutter: golden-ratio(1em, 1) !default; $grid-columns: 12 !default; $max-width: golden-ratio(1em, 9) !default; $border-box-sizing: true !default; // Makes all elements have border-box layout $default-feature: min-width;
$column: golden-ratio(1em, 3) !default; // Column width $gutter: golden-ratio(1em, 1) !default; // Gutter between each two columns $grid-columns: 12 !default; // Total number of columns in the grid $max-width: golden-ratio(1em, 9) !default; // Max-width of the outer container $border-box-sizing: true !default; // Makes all elements have a border-box layout $default-feature: min-width; // Default @media feature for the breakpoint() mixin
Change cursor to pointer on hovering awesome font icon
@import "../variables"; .fa-white:before { color: $color-font-white; }
@import "../variables"; .fa-white:before { color: $color-font-white; } i.fa { cursor: pointer; }
Bring css dependencies from spree_backend
/* * This is a manifest file that'll automatically include all the stylesheets available in this directory * and any sub-directories. You're free to add application-wide styles to this file and they'll appear at * the top of the compiled file, but it's generally better to create a new file per style scope. * *= require admin/spree_backend *= require jquery.powertip *= require responsive-tables *= require jquery-ui-timepicker-addon *= require shared/textAngular *= require shared/ng-tags-input.min *= require_self */ //************************************************************************// //************************************************************************// @import 'globals/variables'; @import 'globals/mixins'; @import 'plugins/powertip'; @import 'plugins/jstree'; @import 'hacks/mozilla'; @import 'hacks/opera'; @import 'hacks/ie'; @import 'variables'; @import 'components/*'; @import 'plugins/font-awesome'; @import 'pages/*'; @import '*';
/* * This is a manifest file that'll automatically include all the stylesheets available in this directory * and any sub-directories. You're free to add application-wide styles to this file and they'll appear at * the top of the compiled file, but it's generally better to create a new file per style scope. * *= require admin/spree_backend *= require jquery.powertip *= require responsive-tables *= require normalize *= require skeleton *= require jquery-ui-timepicker-addon *= require shared/textAngular *= require shared/ng-tags-input.min *= require_self */ //************************************************************************// //************************************************************************// @import 'globals/variables'; @import 'variables'; @import 'globals/mixins'; @import 'plugins/powertip'; @import 'plugins/jstree'; @import 'plugins/font-awesome'; @import 'hacks/mozilla'; @import 'hacks/opera'; @import 'hacks/ie'; @import 'components/*'; @import 'pages/*'; @import '*';
Remove background-size and box-shadow mixins for good
//************************************************************************// // These mixins/functions are deprecated // They will be removed in the next MAJOR version release //************************************************************************// @mixin box-shadow ($shadows...) { @include prefixer(box-shadow, $shadows, spec); @warn "box-shadow is deprecated and will be removed in the next major version release"; } @mixin background-size ($lengths...) { @include prefixer(background-size, $lengths, spec); @warn "background-size is deprecated and will be removed in the next major version release"; } @mixin inline-block { display: inline-block; @warn "inline-block mixin is deprecated and will be removed in the next major version release"; }
//************************************************************************// // These mixins/functions are deprecated // They will be removed in the next MAJOR version release //************************************************************************// @mixin inline-block { display: inline-block; @warn "inline-block mixin is deprecated and will be removed in the next major version release"; }
Fix provider logos CSS generator
@import "~@blueprintjs/core/dist/variables"; .oauth-provider { text-align: center; display: inline-block; vertical-align: middle; margin-left: $pt-grid-size; &::before { content: ""; display: block; width: 40px; height: 40px; background-size: cover; } @each $provider in (google) { &[data-name='#{$provider}']::before { background-image: url(./icons/google_auth.png); } } }
@import "~@blueprintjs/core/dist/variables"; $provider-logos: ( google: url(./icons/google_auth.png) ) .oauth-provider { text-align: center; display: inline-block; vertical-align: middle; margin-left: $pt-grid-size; &::before { content: ""; display: block; width: 40px; height: 40px; background-size: cover; } @each $provider, $logo in $provider-logos { &[data-name='#{$provider}']::before { background-image: $logo; } } }
Fix variables, some of which were renamed
// Icon Font Content // ================= // // Going to pilot a new approach to the Icon Font mixin // // Usage: // // .some-icon { // content: icon-content('twitter'); // } // // Dependencies: // // $icon-list is required to be been previously defined, which is a map of all // available with which icon-address() will scan to return the desired icon code. // @function: Icon Code // -------------------- @function icon-font-content($icon-name) { // Return the icon font text value @if (map-has-key($icon-list, $icon-name)) { @return map-get($icon-list, $icon-name); } // The desired icon does not exist in $icon-list @else { @warn '$icon-name is not set. Refer to $icon-list for a list of available icons'; } }
// Icon Font Content // ================= // // Going to pilot a new approach to the Icon Font mixin // // Usage: // // .some-icon { // content: icon-content('twitter'); // } // // Dependencies: // // * $icon-font-list must be already declared // @function: Icon Code // -------------------- @function icon-font-content($icon-font-key) { // Return the icon font text value @if (map-has-key($icon-font-list, $icon-font-key)) { @return map-get($icon-font-list, $icon-font-key); } // The desired icon does not exist in $icon-font-list @else { @warn '$icon-font-key is not set. Refer to $icon-font-list for a list of available icons'; } }
Revert "Delete padding & set form height b/c wasn't showing up in Firefox."
@import "bootstrap/forms"; .form-control { height: 52px; font-size: 18px; } header.casebooks-search > .content > form > .form-group > input { border-width: 1.5px; } label > .necessity { @include sans-serif($bold, 11px, 12px); color: $gray; } form .form-error-message { @extend .alert; @extend .alert-danger; } .error-wrapper { @include transition(height .25s linear, margin .25s linear); height: 0px; margin: 0px; overflow: hidden; .has-error > & { margin: 5px 0 0px; height: 25px; } } .error-transition { @include transition(max-height .25s linear); max-height: 50px; &.hide { max-height: 0px; } }
@import "bootstrap/forms"; .form-control { padding: 25px 25px; font-size: 18px; } header.casebooks-search > .content > form > .form-group > input { border-width: 1.5px; } label > .necessity { @include sans-serif($bold, 11px, 12px); color: $gray; } form .form-error-message { @extend .alert; @extend .alert-danger; } .error-wrapper { @include transition(height .25s linear, margin .25s linear); height: 0px; margin: 0px; overflow: hidden; .has-error > & { margin: 5px 0 0px; height: 25px; } } .error-transition { @include transition(max-height .25s linear); max-height: 50px; &.hide { max-height: 0px; } }
Update breakpoints to in favour of BS4 values
$grid-columns: 12 !default; $grid-gutter-width-base: 16px !default; $grid-gutter-width-desktop: 24px !default; $grid-gutter-widths: ( xs: $grid-gutter-width-base, sm: $grid-gutter-width-base, md: $grid-gutter-width-desktop, lg: $grid-gutter-width-desktop, xl: $grid-gutter-width-desktop ) !default; // Breakpoint // Based on https://material.google.com/layout/responsive-ui.html#responsive-ui-breakpoints $grid-breakpoints: ( xs: 0, sm: 600px, md: 960px, lg: 1280px, xl: 1920px ) !default; @include _assert-ascending($grid-breakpoints, '$grid-breakpoints'); @include _assert-starts-at-zero($grid-breakpoints); // Container width // Based on https://material.google.com/layout/responsive-ui.html#responsive-ui-breakpoints $container-max-widths: ( sm: 600px, md: 840px, lg: 1024px, xl: 1600px ) !default; @include _assert-ascending($container-max-widths, '$container-max-widths');
$grid-columns: 12 !default; $grid-gutter-width-base: 16px !default; $grid-gutter-width-desktop: 24px !default; $grid-gutter-widths: ( xs: $grid-gutter-width-base, sm: $grid-gutter-width-base, md: $grid-gutter-width-desktop, lg: $grid-gutter-width-desktop, xl: $grid-gutter-width-desktop ) !default; // Breakpoint // Based on https://material.google.com/layout/responsive-ui.html#responsive-ui-breakpoints $grid-breakpoints: ( xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px ) !default; @include _assert-ascending($grid-breakpoints, '$grid-breakpoints'); @include _assert-starts-at-zero($grid-breakpoints); // Container width // Based on https://material.google.com/layout/responsive-ui.html#responsive-ui-breakpoints $container-max-widths: ( sm: 540px, md: 720px, lg: 960px, xl: 1140px ) !default; @include _assert-ascending($container-max-widths, '$container-max-widths');
Clarify the purpose of the flex: none declaration
// Fractional widths // // Utils for applying fluid widths. .u-width-1of3, .u-width-2of6 { width: (100%/3) !important; } .u-width-2of3, .u-width-4of6 { width: 2 * (100%/3) !important; } .u-width-1of4 { width: 25% !important; } .u-width-1of2, .u-width-2of4, .u-width-3of6 { width: 50% !important; } .u-width-3of4 { width: 75% !important; } .u-width-1of6 { width: (100%/6) !important; } .u-width-5of6 { width: 5 * (100%/6) !important; } // Full-width // // Force an element to full width. // // 1. Override some browser quirks, e.g. with <button>. .u-width-full { display: block !important; width: 100% !important; // 1 } // Ensure widths are applied to flex items. [class^="u-width-"], [class*=" u-width-"] { flex: none !important; }
// Fractional widths // // Utils for applying fluid widths. .u-width-1of3, .u-width-2of6 { width: (100%/3) !important; } .u-width-2of3, .u-width-4of6 { width: 2 * (100%/3) !important; } .u-width-1of4 { width: 25% !important; } .u-width-1of2, .u-width-2of4, .u-width-3of6 { width: 50% !important; } .u-width-3of4 { width: 75% !important; } .u-width-1of6 { width: (100%/6) !important; } .u-width-5of6 { width: 5 * (100%/6) !important; } // Full-width // // Force an element to full width. // // 1. Override some browser quirks, e.g. with <button>. .u-width-full { display: block !important; width: 100% !important; // 1 } // Ensure all `.u-width-` classes keep their explicit width // when inside a flexbox. In other words, prevent them // from growing or shrinking. [class^="u-width-"], [class*=" u-width-"] { flex: none !important; }
Fix media library dialog height on small window
.opa-media-library-dialog { &.opa-dialog-100 { width: 100%; max-width: 100%; height: 100%; max-height: 100%; } &.opa-dialog-80 { width: 80%; max-width: 80%; height: 630px; max-height: 630px; } &.opa-dialog-55 { width: 55%; max-width: 55%; height: 654px; max-height: 654px; } &.opa-dialog-40 { width: 40%; max-width: 40%; height: 654px; max-height: 654px; } md-dialog-content { flex-grow: 1; opa-media-library { flex-grow: 1; } } }
.opa-media-library-dialog { &.opa-dialog-100 { width: 100%; max-width: 100%; height: 100%; max-height: 100%; } &.opa-dialog-80 { width: 80%; max-width: 80%; height: 100%; max-height: 630px; } &.opa-dialog-55 { width: 55%; max-width: 55%; height: 100%; max-height: 654px; } &.opa-dialog-40 { width: 40%; max-width: 40%; height: 100%; max-height: 654px; } md-dialog-content { flex-grow: 1; opa-media-library { flex-grow: 1; } } }
Include animation for batch action buttons
/* CSS @keyframe Animations –––––––––––––––––––––––––––––––––––––––––––––––––– */ @-webkit-keyframes bounceArrow { 0% { transform: translateY(0); } 100% { transform: translateY(-0.357143rem); } } @-moz-keyframes bounceArrow { 0% { transform: translateY(0); } 100% { transform: translateY(-0.357143rem); } } @-ms-keyframes bounceArrow { 0% { transform: translateY(0); } 100% { transform: translateY(-0.357143rem); } } @-o-keyframes bounceArrow { 0% { transform: translateY(0); } 100% { transform: translateY(-0.357143rem); } } @keyframes bounceArrow { 0% { transform: translateY(0); } 100% { transform: translateY(-0.357143rem); } } @-webkit-keyframes modalEntrance { 0% { top: -100vh; transform: translateX(-50%); } 100% { top: 50%; transform: translate(-50%, -50%); } }
/* CSS @keyframe Animations –––––––––––––––––––––––––––––––––––––––––––––––––– */ @-webkit-keyframes bounceArrow { 0% { transform: translateY(0); } 100% { transform: translateY(-0.357143rem); } } @-moz-keyframes bounceArrow { 0% { transform: translateY(0); } 100% { transform: translateY(-0.357143rem); } } @-ms-keyframes bounceArrow { 0% { transform: translateY(0); } 100% { transform: translateY(-0.357143rem); } } @-o-keyframes bounceArrow { 0% { transform: translateY(0); } 100% { transform: translateY(-0.357143rem); } } @keyframes bounceArrow { 0% { transform: translateY(0); } 100% { transform: translateY(-0.357143rem); } } @-webkit-keyframes modalEntrance { 0% { top: -100vh; transform: translateX(-50%); } 100% { top: 50%; transform: translate(-50%, -50%); } } @-webkit-keyframes growBtn { 0% { width: 0; height: 0; right: 5.5rem; bottom: 5.5rem; opacity: 0; visibility: hidden; } 100% { width: 3.2142857142857144rem; height: 3.2142857142857144rem; right: 3.892857142857143rem; opacity: 1; visibility: visible; } }
Remove margin, font size and line height
// Icon Font Replace // ================= // // This is used when we want to replace any text inside an icon font element // // Notes: // // 1. The width property is required to fix a rendering bug that happens when // using the hide-text() mixin @mixin icon-font-replace($position: 'before', $width: 1em) { @include hide-text(); position: relative; display: inline-block; width: $width; // 1 &::#{$position} { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: block; margin: 0; font-size: inherit; line-height: inherit; text-align: center; text-indent: 0; } }
// Icon Font Replace // ================= // // This is used when we want to replace any text inside an icon font element // // Notes: // // 1. The width property is required to fix a rendering bug that happens when // using the hide-text() mixin @mixin icon-font-replace($position: 'before', $width: 1em) { @include hide-text(); position: relative; display: inline-block; width: $width; // 1 &::#{$position} { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: block; text-align: center; text-indent: 0; } }
Fix the styles of the charts in the My RW section
.c-widget-chart { position: relative; width: 100%; padding: 20px; // These following styles are used in MY RW, // specifically in "My Widgets" .c-chart { height: 300px; .chart { height: 100%; } } &.-thumbnail { max-height: 180px; } }
.c-widget-chart { position: relative; width: 100%; padding: 20px; // These following styles are used in MY RW, // specifically in "My Widgets" .c-chart { // The pie and bar chart will overflow without // this property because they auto determine the // space they need height: auto; // For the other charts, we need a minimum height // and to make the container "flex" so we force the // chart to use at least the min-height min-height: 300px; display: flex; flex-direction: column; // In case of a bar chart with scrolling, we need // to use an overflow overflow-x: auto; max-width: 100%; .chart { // For smaller charts than the 300px, we center them // both vertically and horizontally display: flex; flex-direction: column; justify-content: center; // This is needed for the scatter and 1d_* charts // in order to take the whole 300px vertically flex-basis: 100%; flex-grow: 1; .vega { text-align: center; } } } // These styles are used in the Explore page // (the list of datasets) &.-thumbnail { max-height: 180px; .c-chart { display: block; height: 300px; .chart { display: block; height: 100%; } } } }
Make the link check box work in smaller browser windows
.link-check-report { float: right; margin-top: 25px; } .broken-links-report { .issue-summary { font-weight: normal; } .issue-list { list-style: none; padding-left: 0; li { margin-top: 5px; } } .issue-status-description { margin-top: 10px; } .issue-list + .issue-status-description { margin: 15px 0; } .display-issue-details { display: block; font-weight: bold; padding-top: 5px; } .display-issue-details::-webkit-details-marker { display: none; } .display-issue-details::before { content: '\25B6'; padding-right: 3px; } details[open] > .display-issue-details::before { content: '\25BC'; } }
.link-check-report { margin-top: 25px; } @media (min-width: $screen-md-min) { .link-check-report { float: right; } } .broken-links-report { .issue-summary { font-weight: normal; } .issue-list { list-style: none; padding-left: 0; li { margin-top: 5px; } } .issue-status-description { margin-top: 10px; } .issue-list + .issue-status-description { margin: 15px 0; } .display-issue-details { display: block; font-weight: bold; padding-top: 5px; } .display-issue-details::-webkit-details-marker { display: none; } .display-issue-details::before { content: '\25B6'; padding-right: 3px; } details[open] > .display-issue-details::before { content: '\25BC'; } }
Fix IE 10 active link background color
@if compass-env() == 'development' {/*! * Basic styling for anchor tags * * @package #{$package_name()} * @path base/_links.scss */} /* ============================================================================= $ Links ================================================================================ */ a { color: $link-color; text-decoration: none; &:hover, &:active, &:focus { text-decoration: underline; } &:focus { outline: thin dotted; outline: 5px auto -webkit-focus-ring-color; outline-offset: -1px; } &:active, &:hover { /** * Improves readability when focused and also mouse hovered in all browsers. */ outline: 0; } p & { /** * Increasing the Clickable Area of Inline Links inside a paragraph */ margin: -.33em; padding: .33em; position: relative; } }
@if compass-env() == 'development' {/*! * Basic styling for anchor tags * * @package #{$package_name()} * @path base/_links.scss */} /* ============================================================================= $ Links ================================================================================ */ a { color: $link-color; text-decoration: none; /** * Remove the gray background color from active links in IE 10. */ background: transparent; &:hover, &:active, &:focus { text-decoration: underline; } &:focus { outline: thin dotted; outline: 5px auto -webkit-focus-ring-color; outline-offset: -1px; } &:active, &:hover { /** * Improves readability when focused and also mouse hovered in all browsers. */ outline: 0; } p & { /** * Increasing the Clickable Area of Inline Links inside a paragraph */ margin: -.33em; padding: .33em; position: relative; } }
Fix width of filter panel
// Place all the styles related to the home controller here. // They will automatically be included in application.css. // You can use Sass (SCSS) here: http://sass-lang.com/ body.home_controller { #wrapper.container-fluid { padding: 0px } #wrapper { position: relative; } .over_map { position: absolute; z-index: 1001; padding: 20px; } #explanation { margin-right: 10px; bottom: 10px; left: 50px; width: 70%; } #filter { right: 0px; width: 290px; .panel { width: 250px; } .btn-group { margin-top: 10px; } .btn { color: white; } } } @media (max-width: 767px) { body.home_controller #over_map{ left: 0px; width: 100%; } }
// Place all the styles related to the home controller here. // They will automatically be included in application.css. // You can use Sass (SCSS) here: http://sass-lang.com/ body.home_controller { #wrapper.container-fluid { padding: 0px } #wrapper { position: relative; } .over_map { position: absolute; z-index: 1001; padding: 20px; } #explanation { margin-right: 10px; bottom: 10px; left: 50px; width: 70%; } #filter { right: 0px; width: 300px; .panel { width: 260px; } .btn-group { margin-top: 10px; } .btn { color: #ffffff; } } } @media (max-width: 767px) { body.home_controller #over_map{ left: 0px; width: 100%; } }
Tweak auth overflow on Windows and Linux
/* Copyright 2019 New Vector Ltd Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ .mx_AuthPage { width: 100%; height: 100%; display: flex; flex-direction: column; overflow: auto; background-color: $authpage-bg-color; } .mx_AuthPage_modal { display: flex; margin: 100px auto auto; border-radius: 4px; // Not currently supported in Firefox: https://bugzilla.mozilla.org/show_bug.cgi?id=1178765 backdrop-filter: blur(10px); box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.33); background-color: $authpage-modal-bg-color; }
/* Copyright 2019 New Vector Ltd Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ .mx_AuthPage { width: 100%; min-height: 100%; display: flex; flex-direction: column; background-color: $authpage-bg-color; } .mx_AuthPage_modal { display: flex; margin: 100px auto auto; border-radius: 4px; // Not currently supported in Firefox: https://bugzilla.mozilla.org/show_bug.cgi?id=1178765 backdrop-filter: blur(10px); box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.33); background-color: $authpage-modal-bg-color; }
Tweak time range indicator responsiveness
.refugee-time-range-indicator { font-weight: bold; position: absolute; right: 1em; top: 1.3rem; z-index: 3; font-size: 16px; @media screen and (max-width: 600px) { top: 2.8rem; } @media screen and (max-width: 340px) { top: 4.2rem; } }
.refugee-time-range-indicator { font-weight: bold; position: absolute; right: 1em; top: 1.3rem; z-index: 3; font-size: 16px; @media screen and (max-width: 600px) { top: 2.2rem; } @media screen and (max-width: 462px) { top: 2.8rem; } @media screen and (max-width: 340px) { top: 4.2rem; } }
Add a border for images with the default alt in redaction
.misspelled { color: inherit; background-color: inherit; border-bottom: 1px dashed red; } .anchor { &, &:visited { color: #aaa; } &:hover { color: #333; } } .factice, .go_to_content { float: left; text-indent: -9998em; overflow: hidden; text-align: left; width: 10px; } .pot_de_miel { display: none; } .signature { color: #999; font-size: 0.68em; &:before { white-space: pre-line; content: "-- \a"; } }
.misspelled { color: inherit; background-color: inherit; border-bottom: 1px dashed red; } .anchor { &, &:visited { color: #aaa; } &:hover { color: #333; } } .factice, .go_to_content { float: left; text-indent: -9998em; overflow: hidden; text-align: left; width: 10px; } .pot_de_miel { display: none; } .signature { color: #999; font-size: 0.68em; &:before { white-space: pre-line; content: "-- \a"; } } #edition img[alt="Titre de l'image"] { border: 3px dotted red; }
Add more space between dashboard label and button
#game-dashboard { margin-bottom: 10px; label, button { font-size: 14px; } button { margin: 0 4px; border: solid 1px rgba(0, 0, 0, 0.25); border-radius: 3px; padding: 4px 6px; background-color: #4a1; color: #fff; &:focus { outline-width: 0; background-color: #5b2; } } } #game-message { font-size: 14px; margin: 0; margin-top: 10px; }
#game-dashboard { margin-bottom: 10px; label, button { margin: 0 4px; font-size: 14px; } button { border: solid 1px rgba(0, 0, 0, 0.25); border-radius: 3px; padding: 4px 6px; background-color: #4a1; color: #fff; &:focus { outline-width: 0; background-color: #5b2; } } } #game-message { font-size: 14px; margin: 0; margin-top: 10px; }
Use contain floats mixin for page container
// Layout // ========================================================================== // GOV.UK front end toolkit dependencies @import "measurements"; @import "conditionals"; @import "grid_layout"; @import "helpers"; @import "design-patterns/alpha-beta"; // Page container // ========================================================================== // Page container wraps the entire site content block #page-container { @include site-width-container; padding-bottom: $gutter; @include media(desktop) { padding-bottom: $gutter*3; } } // Phase banner // ========================================================================== .phase-banner { @include phase-banner(alpha); } // Grid layout // ========================================================================== // Usage: // For two equal columns // <div class="grid-row"> // <div class="column-half"> // // </div> // <div class="column-half"> // // </div> // </div> // Use .grid-row to define a row for grid columns to sit in .grid-row { @include grid-row; } // Use .grid-column to create a grid column with 15px gutter // By default grid columns break to become full width at tablet size .column-quarter { @include grid-column( 1/4 ); } .column-half { @include grid-column( 1/2 ); } .column-third { @include grid-column( 1/3 ); } .column-two-thirds { @include grid-column( 2/3 ); }
// Layout // ========================================================================== // GOV.UK front end toolkit dependencies @import "measurements"; @import "conditionals"; @import "grid_layout"; @import "helpers"; @import "design-patterns/alpha-beta"; // Page container // ========================================================================== // Page container wraps the entire site content block #page-container { @include site-width-container; @include contain-floats; padding-bottom: $gutter; @include media(desktop) { padding-bottom: $gutter*3; } } // Phase banner // ========================================================================== .phase-banner { @include phase-banner(alpha); } // Grid layout // ========================================================================== // Usage: // For two equal columns // <div class="grid-row"> // <div class="column-half"> // // </div> // <div class="column-half"> // // </div> // </div> // Use .grid-row to define a row for grid columns to sit in .grid-row { @include grid-row; } // Use .grid-column to create a grid column with 15px gutter // By default grid columns break to become full width at tablet size .column-quarter { @include grid-column( 1/4 ); } .column-half { @include grid-column( 1/2 ); } .column-third { @include grid-column( 1/3 ); } .column-two-thirds { @include grid-column( 2/3 ); }
Fix Hide component for xxLarge screens
$screens: ( $small-only: small, $medium-only: medium, $large-only: large, $xlarge-only: xLarge, $xxlarge-only: xxLarge ); @each $screenSize, $className in $screens { @media #{$screenSize} { .#{$className} { display: none; } } }
$screens: ( $small-only: small, $medium-only: medium, $large-only: large, $xlarge-only: xLarge, $xxlarge-up: xxLarge ); @each $screenSize, $className in $screens { @media #{$screenSize} { .#{$className} { display: none; } } }
Set a reasonable default height for embeds
.articles { hr { margin: 3em auto 3em auto; width: 10em !important; } } .news { margin: 0 10%; ul { list-style: disc inside; margin-bottom: 1.5em; } iframe { display: block; margin: 0 auto 1.5em auto; width: 100%; @include media($medium-screen) { width: 560px; } } }
.articles { hr { margin: 3em auto 3em auto; width: 10em !important; } } .news { margin: 0 10%; ul { list-style: disc inside; margin-bottom: 1.5em; } iframe { display: block; margin: 0 auto 1.5em auto; width: 100%; height: 175px; @include media($medium-screen) { width: 560px; height: 315px; } } }
Adjust the margin for flash
#content { padding: 2 * $baseLineHeight 0; } #footer { padding: 2 * $baseLineHeight 0; } #flash { margin-top: $baseLineHeight; } @media (max-width: 767px) { #footer { padding-left: 20px; padding-right: 20px; margin-left: -20px; margin-right: -20px; } .navbar-static-top .container { width: auto; } }
#content { padding: 2 * $baseLineHeight 0; } #footer { padding: 2 * $baseLineHeight 0; } #flash .alert { margin-top: $baseLineHeight / 2; } @media (max-width: 767px) { #footer { padding-left: 20px; padding-right: 20px; margin-left: -20px; margin-right: -20px; } .navbar-static-top .container { width: auto; } }
Change from pixel to rem.
nav { background-color: #E5E9F2; display: flex; } .nav { align-items: center; display: flex; flex: 1; } .nav--left { justify-content: flex-start; } .nav--right { justify-content: flex-end; } .nav__item { list-style: none; } .nav__anchor { display: block; padding: 15px; } .nav__anchor--active { background-color: #D3DCE6; }
nav { background-color: #E5E9F2; display: flex; } .nav { align-items: center; display: flex; flex: 1; } .nav--left { justify-content: flex-start; } .nav--right { justify-content: flex-end; } .nav__item { list-style: none; } .nav__anchor { display: block; padding: 1rem; } .nav__anchor--active { background-color: #D3DCE6; }
Update column mixin to set column-width
@import "globals/variables"; // Mixin giving an inset box-shadow when pressed @mixin gentle-inset-shadow-on-state { &:active { @include box-shadow(0 0 2px rgba(0,0,0,0.6) inset); } } @mixin columns($count, $gap:0px) { -moz-column-count: $count; -moz-column-gap: $gap; -webkit-column-count: $count; -webkit-column-gap: $gap; column-count: $count; column-gap: $gap; } // A class which keeps a standard padding across the whole site @mixin free-text { padding: $standard-page-padding; } @mixin symbolset { font-family: "SSStandard"; } @mixin symbolset-icon-before { @include symbolset(); font-size: 11px; padding-right: 8px; }
@import "globals/variables"; // Mixin giving an inset box-shadow when pressed @mixin gentle-inset-shadow-on-state { &:active { @include box-shadow(0 0 2px rgba(0,0,0,0.6) inset); } } @mixin columns($width) { column-width: $width; -moz-column-width: $width; /* Firefox */ -webkit-column-width: $width; /* Safari and Chrome */ } // A class which keeps a standard padding across the whole site @mixin free-text { padding: $standard-page-padding; } @mixin symbolset { font-family: "SSStandard"; } @mixin symbolset-icon-before { @include symbolset(); font-size: 11px; padding-right: 8px; }
Add HTML/body margin/padding reset to layout normalization
// ------------------------------------------------------------------- // // Layouts Normalization // ------------------------------------------------------------------- // * { box-sizing: border-box; }
// ------------------------------------------------------------------- // // Layouts Normalization // ------------------------------------------------------------------- // * { box-sizing: border-box; } html, body { margin: 0; padding: 0; }
Fix gist display border issue
.gist, .gist .highlight .p { font-size: .75rem; } .gist .lines { width: 100%; }
.gist, .gist .highlight .p { font-size: .75rem; } .gist .lines { width: 100%; } .gist table>tbody>tr>td { border-top: 0px; }
Fix bug in sass prefixer
//************************************************************************// // Example: @include prefixer(border-radius, $radii, webkit ms spec); //************************************************************************// $prefix-for-webkit: true !default; $prefix-for-mozilla: true !default; $prefix-for-microsoft: true !default; $prefix-for-opera: true !default; $prefix-for-spec: true !default; // required for keyframe mixin @mixin prefixer ($property, $value, $prefixes) { @each $prefix in $prefixes { @if $prefix == webkit and $prefix-for-webkit == true { -webkit-#{$property}: $value; } @else if $prefix == moz and $prefix-for-mozilla == true { -moz-#{$property}: $value; } @else if $prefix == ms and $prefix-for-microsoft == true { -ms-#{$property}: $value; } @else if $prefix == o and $prefix-for-opera == true { -o-#{$property}: $value; } @else if $prefix == spec and $prefix-for-spec == true { #{$property}: $value; } @else { @warn "Unrecognized prefix: #{$prefix}"; } } } @mixin disable-prefix-for-all() { $prefix-for-webkit: false; $prefix-for-mozilla: false; $prefix-for-microsoft: false; $prefix-for-opera: false; $prefix-for-spec: false; }
//************************************************************************// // Example: @include prefixer(border-radius, $radii, webkit ms spec); //************************************************************************// $prefix-for-webkit: true !default; $prefix-for-mozilla: true !default; $prefix-for-microsoft: true !default; $prefix-for-opera: true !default; $prefix-for-spec: true !default; // required for keyframe mixin @mixin prefixer ($property, $value, $prefixes) { @each $prefix in $prefixes { @if $prefix == webkit { @if $prefix-for-webkit { -webkit-#{$property}: $value; } } @else if $prefix == moz { @if $prefix-for-mozilla { -moz-#{$property}: $value; } } @else if $prefix == ms { @if $prefix-for-microsoft { -ms-#{$property}: $value; } } @else if $prefix == o { @if $prefix-for-opera { -o-#{$property}: $value; } } @else if $prefix == spec { @if $prefix-for-spec { #{$property}: $value; } } @else { @warn "Unrecognized prefix: #{$prefix}"; } } } @mixin disable-prefix-for-all() { $prefix-for-webkit: false; $prefix-for-mozilla: false; $prefix-for-microsoft: false; $prefix-for-opera: false; $prefix-for-spec: false; }
Fix overflow in playlist list
@import '_variables'; @import '_mixins'; .create-button { @include create-button; } ::ng-deep .action-button { &.action-button-delete { margin-right: 10px; } } .video-playlist { @include row-blocks; .miniature-wrapper { flex-grow: 1; ::ng-deep .miniature { display: flex; .miniature-info { margin-left: 10px; width: auto; } } } .video-playlist-buttons { min-width: 190px; } } .video-playlists-header { text-align: right; margin: 20px 0 50px; } @media screen and (max-width: 800px) { .video-playlists-header { text-align: center; } .video-playlist { .video-playlist-buttons { margin-top: 10px; } } }
@import '_variables'; @import '_mixins'; .create-button { @include create-button; } ::ng-deep .action-button { &.action-button-delete { margin-right: 10px; } } .video-playlist { @include row-blocks; .miniature-wrapper { flex-grow: 1; ::ng-deep .miniature { display: flex; .miniature-info { margin-left: 10px; width: auto; } } } .video-playlist-buttons { min-width: 190px; } } .video-playlists-header { text-align: right; margin: 20px 0 50px; } @media screen and (max-width: 800px) { .video-playlists-header { text-align: center; } .video-playlist { .video-playlist-buttons { margin-top: 10px; } } my-video-playlist-miniature ::ng-deep .miniature { flex-direction: column; .miniature-info { margin-left: 0 !important; } .miniature-name { max-width: $video-thumbnail-width; } } }
Remove outline of contenteditable=true div
@import 'mixins/modal'; .file-drag-indicator { display: none; @include modal; &:before { content: ""; display: inline-block; vertical-align: middle; height: 100%; width: 1px; } .dragging-file & { display: block; } } .img-paste-box { display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; cursor: default; }
@import 'mixins/modal'; .file-drag-indicator { display: none; @include modal; &:before { content: ""; display: inline-block; vertical-align: middle; height: 100%; width: 1px; } .dragging-file & { display: block; } } .img-paste-box { display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; cursor: default; border: none; outline: none; }
Make the cursor a pointer for the search cards
@import "_main"; .container { display: flex; width: 100%; flex-direction: column; } #results { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; } #named, div.tagBox { padding: 0.5em; display: flex; justify-content: flex-start; flex-direction: row; flex-wrap: wrap; @include respond-to(lt-medium-screens){ margin: 0; justify-content: center; } } search-card { margin: 1.0em; width: 20vw; height: 30vh; @include respond-to(medium-screens) { width: 40vw; height: 30vh; margin: auto; padding-right: 0.5em; padding-left: 0.5em; } @include respond-to(small-screens) { width: 80vw; height: 60vw; margin: auto; margin-top: 0.5em; margin-bottom: 1.5em; } &:first-child { padding-left: 0px; margin-left: 0px; } } span.tagHead { width: 100%; }
@import "_main"; .container { display: flex; width: 100%; flex-direction: column; } #results { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; } #named, div.tagBox { padding: 0.5em; display: flex; justify-content: flex-start; flex-direction: row; flex-wrap: wrap; @include respond-to(lt-medium-screens){ margin: 0; justify-content: center; } } search-card { cursor: pointer; margin: 1.0em; width: 20vw; height: 30vh; @include respond-to(medium-screens) { width: 40vw; height: 30vh; margin: auto; padding-right: 0.5em; padding-left: 0.5em; } @include respond-to(small-screens) { width: 80vw; height: 60vw; margin: auto; margin-top: 0.5em; margin-bottom: 1.5em; } &:first-child { padding-left: 0px; margin-left: 0px; } } span.tagHead { width: 100%; }
Fix scrolling of external tools on iPads
/* * Copyright (C) 2014 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more * details. * * You should have received a copy of the GNU Affero General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @import "base/environment"; body.ic-full-screen-lti-tool .tool_content_wrapper { // Full-width external tools // are 100% height. This stops the body from // throwing vertical scrollbars overflow-y: hidden; // Full-width external tools hide footer, so // we know iframe container height can stay 100vh height: 100vh; } #footer { display: none; } iframe#tool_content { margin-bottom: -10px; }
/* * Copyright (C) 2014 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more * details. * * You should have received a copy of the GNU Affero General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ @import "base/environment"; body.ic-full-screen-lti-tool .tool_content_wrapper { // Full-width external tools hide footer, so // we know iframe container height can stay 100vh height: 100vh; } #footer { display: none; } iframe#tool_content { margin-bottom: -10px; }
Add more styling for text in intro text box
// Place all the styles related to the Crimes controller here. // They will automatically be included in application.css. // You can use Sass (SCSS) here: http://sass-lang.com/ #map-canvas { height: 700px; width: 100%; } /*fix zoom bar distortion problem*/ #map-canvas *, #map-canvas *:before, #map-canvas *:after { -moz-box-sizing: content-box!important; -webkit-box-sizing: content-box!important; box-sizing: content-box!important; } #map-canvas img { max-width: none; } #map-canvas label { width: auto; display: inline; } .image { /* force the div to properly contain the floated images: */ position:relative; float:left; clear:none; overflow:hidden; } .image img { position:relative; z-index:1; } .image .desc { font-size: 619%; display:block; position:absolute; width:100%; top:0%; left:0; z-index:2; text-align:left; color: white; padding-left: 20px; background:rgba(255,255,255,0.5); }
// Place all the styles related to the Crimes controller here. // They will automatically be included in application.css. // You can use Sass (SCSS) here: http://sass-lang.com/ #map-canvas { height: 700px; width: 100%; } /*fix zoom bar distortion problem*/ #map-canvas *, #map-canvas *:before, #map-canvas *:after { -moz-box-sizing: content-box!important; -webkit-box-sizing: content-box!important; box-sizing: content-box!important; } #map-canvas img { max-width: none; } #map-canvas label { width: auto; display: inline; } .image { /* force the div to properly contain the floated images: */ position:relative; float:left; clear:none; overflow:hidden; } .image img { position:relative; z-index:1; } .image .desc { display:block; position:absolute; width:100%; top:0%; left:0; z-index:2; text-align:left; color: #000; color: rgba(0, 0, 0, 0.5);; font-size: 615%; padding-left: 20px; background: white; }
Fix responsive tables overflowing when there are too few rows
// Styles written by __gulp_init_author_name__ @ __gulp_init_author_company__ /* ------------------------------------------------------------------------ *\ * ScrollHint (https://appleple.github.io/scroll-hint/) \* ------------------------------------------------------------------------ */ /* stylelint-disable selector-class-pattern */ // Vendor @use "scroll-hint/scss/scroll-hint"; // Custom
// Styles written by __gulp_init_author_name__ @ __gulp_init_author_company__ /* ------------------------------------------------------------------------ *\ * ScrollHint (https://appleple.github.io/scroll-hint/) \* ------------------------------------------------------------------------ */ /* stylelint-disable selector-class-pattern */ // Vendor @use "scroll-hint/scss/scroll-hint"; // Custom .scroll-hint-icon-wrap { & { overflow: hidden; // fixes issue with tables that are too short } }
Reduce h3 bottom margin in video meta section
.training_videos { .page-content { @include outer-container; padding: 2em; border: 1px solid green; // @include media ($tablet-portrait) { // h3, h4 { // font-size: 1.5em; // } // } // // @include media ($phone-portrait) { // h3, h4 { // font-size: 1em; // } // } // @include media($large-screen) { padding: 1em 8em; } } .movie-hero { background-color: #000; width: 100%; opacity: 0.98; } .video { @include outer-container; max-width: 900px; @include media($large-screen) { padding: 0 4em; } } .video-wrapper { height: 0; overflow: hidden; padding-bottom: 56.25%; // For ratio 16:9. 75% if ratio is 4:3 position: relative; embed, object, iframe { @include position(absolute, 0 null null 0); @include size(100%); } } }
.training_videos { .page-content { @include outer-container; padding: 2em; h3 { margin-bottom: 0; } // @include media ($tablet-portrait) { // h3, h4 { // font-size: 1.5em; // } // } // // @include media ($phone-portrait) { // h3, h4 { // font-size: 1em; // } // } // @include media($large-screen) { padding: 1em 8em; } } .movie-hero { background-color: #000; width: 100%; opacity: 0.98; } .video { @include outer-container; max-width: 900px; @include media($large-screen) { padding: 0 4em; } } .video-wrapper { height: 0; overflow: hidden; padding-bottom: 56.25%; // For ratio 16:9. 75% if ratio is 4:3 position: relative; embed, object, iframe { @include position(absolute, 0 null null 0); @include size(100%); } } }
Allow md-content to use md-hue-x for background colors
md-content.md-THEME_NAME-theme { color: '{{foreground-1}}'; background-color: '{{background-default}}'; }
md-content.md-THEME_NAME-theme { color: '{{foreground-1}}'; background-color: '{{background-color}}'; }
Make sure league gothic h1 still gets smaller for mobile
// General typography styles html { font-family: $helvetica; font-size: 14px; } // size if league gothic loads .wf-leaguegothic-i4-active { h1 { font-size: 9em; } } h1 { font-size: 5em; margin: 0; @include media($tablet) { font-size: 5em; } } h2 { font-size: 3em; font-weight: bold; letter-spacing: -1px; margin: 0 0 0.5em 0; } h3 { font-size: 1.8em; margin: 0; } h4 { font-size: 1em; font-weight: bold; margin: 0; } h5 { color: $gray-medium; font-size: 11px; font-weight: 400; letter-spacing: 2px; margin: 0.2em 0; text-transform: uppercase; } h6 { font-size: 0.9em; margin: 0; } p { font-size: 1em; margin: 0; &.italic { font-style: italic; } } a { color: $teal-tribune; text-decoration: none; } i.fa-chevron-right { font-size: 0.8em; }
// General typography styles html { font-family: $helvetica; font-size: 14px; } // size if league gothic loads .wf-leaguegothic-i4-active { h1 { font-size: 9em; @include media($tablet) { font-size: 5em; } } } h1 { font-size: 5em; margin: 0; } h2 { font-size: 3em; font-weight: bold; letter-spacing: -1px; margin: 0 0 0.5em 0; } h3 { font-size: 1.8em; margin: 0; } h4 { font-size: 1em; font-weight: bold; margin: 0; } h5 { color: $gray-medium; font-size: 11px; font-weight: 400; letter-spacing: 2px; margin: 0.2em 0; text-transform: uppercase; } h6 { font-size: 0.9em; margin: 0; } p { font-size: 1em; margin: 0; &.italic { font-style: italic; } } a { color: $teal-tribune; text-decoration: none; } i.fa-chevron-right { font-size: 0.8em; }
Fix ripples blocking double click
.ripple { display: block; position: fixed; background: rgba(0, 0, 0, 0.2); border-radius: 100px; width: 200px; height: 200px; transform: scale(0); } @keyframes ripple { 100% { opacity: 0; transform: scale(1); } } .rippling { animation: ripple 0.35s linear; }
.ripple { display: block; position: fixed; background: rgba(0, 0, 0, 0.2); border-radius: 100px; width: 200px; height: 200px; transform: scale(0); pointer-events: none; } @keyframes ripple { 100% { opacity: 0; transform: scale(1); } } .rippling { animation: ripple 0.35s linear; }
Add indent to questions interface (again)
.modal table { margin-bottom: 5px; } .panel-sites { ul { margin: 0; } }
.modal table { margin-bottom: 5px; } .panel-sites { ul { margin: 0; } } .panel-section { margin-left: 20px; } .panel-questionset { margin-left: 40px; }
Remove fixed height from blocking list
/* This file is part of Indico. * Copyright (C) 2002 - 2018 European Organization for Nuclear Research (CERN). * * Indico is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 3 of the * License, or (at your option) any later version. * * Indico is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Indico; if not, see <http://www.gnu.org/licenses/>. */ .blockings-container { padding: 2em; height: 500px !important; width: 75% !important; .blockings-list, :global(.blockings-placeholders) { margin-top: 10px; } }
/* This file is part of Indico. * Copyright (C) 2002 - 2018 European Organization for Nuclear Research (CERN). * * Indico is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 3 of the * License, or (at your option) any later version. * * Indico is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Indico; if not, see <http://www.gnu.org/licenses/>. */ .blockings-container { padding: 2em; width: 75% !important; .blockings-list, :global(.blockings-placeholders) { margin-top: 10px; } }
Add a color as a sass variable
// // VARIABLES // // Colors $blue: #4183C4; // Grays $black: #000; $darkerGray: #222; $darkGray: #333; $gray: #666; $lightGray: #eee; $white: #fff; // Font stacks $helvetica: Helvetica, Arial, sans-serif; $helveticaNeue: "Helvetica Neue", Helvetica, Arial, sans-serif; $georgia: Georgia, serif; // Mobile breakpoints @mixin mobile { @media screen and (max-width: 640px) { @content; } }
// // VARIABLES // // Colors $blue: #4183C4; $pink: #d24d57 // Grays $black: #000; $darkerGray: #222; $darkGray: #333; $gray: #666; $lightGray: #eee; $white: #fff; // Font stacks $helvetica: Helvetica, Arial, sans-serif; $helveticaNeue: "Helvetica Neue", Helvetica, Arial, sans-serif; $georgia: Georgia, serif; // Mobile breakpoints @mixin mobile { @media screen and (max-width: 640px) { @content; } }
Add a bit of margin to labels.
@import "bootswatch/slate/variables"; @import "bootstrap"; @import "formtastic-bootstrap"; @import "bootswatch/slate/bootswatch"; // make room for navigation bar body { padding-top: 5rem; } .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; } // sticky footer html { position: relative; min-height: 100%; } body { margin-bottom: 4rem; } .footer { position: absolute; bottom: 0; width: 100%; height: 4rem; } 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 img { height: 10rem; width: 10rem; } .card { height: 12rem; } .card-body { flex: 1 1 0; overflow: hidden; } #user-page-avatar-holder img { width: 100%; height: auto; } .user { display: none; }
@import "bootswatch/slate/variables"; @import "bootstrap"; @import "formtastic-bootstrap"; @import "bootswatch/slate/bootswatch"; // make room for navigation bar body { padding-top: 5rem; } .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; } // sticky footer html { position: relative; min-height: 100%; } body { margin-bottom: 4rem; } .footer { position: absolute; bottom: 0; width: 100%; height: 4rem; } 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 img { height: 10rem; width: 10rem; } .card { height: 12rem; } .card-body { flex: 1 1 0; overflow: hidden; } #user-page-avatar-holder img { width: 100%; height: auto; } .user { display: none; } label { margin-right: .5rem; }
Fix mobile views with large titles
song { display: block; height: 100%; .text { font-size: 16px; line-height: 26px; overflow: auto; white-space: pre-line; } .song-mobile { .text, .song-editing { padding: 16px; } } .song-desktop { height: 100%; songs { .mat-list-item-content { padding: 0 !important; } } .song-title { margin: 13px 16px 0; h2 { font-weight: normal; } } .spacer { height: 16px; max-height: 16px; } md-card-title { font-size: 20px; font-weight: 500; } md-card-content { overflow: auto; } } .metronome-container { padding: 0 16px; } }
song { display: block; height: 100%; .text { font-size: 16px; line-height: 26px; overflow: auto; white-space: pre-line; } .song-mobile { .title { overflow: hidden; text-overflow: ellipsis; } .text, .song-editing { padding: 16px; } } .song-desktop { height: 100%; songs { .mat-list-item-content { padding: 0 !important; } } .song-title { margin: 13px 16px 0; h2 { font-weight: normal; } } .spacer { height: 16px; max-height: 16px; } md-card-title { font-size: 20px; font-weight: 500; } md-card-content { overflow: auto; } } .metronome-container { padding: 0 16px; } }
Add css .break-word to allow breaking long strings
/* ------------------------------------- TYPOGRAPHY ------------------------------------- */ h1, h2, h3, h4 { color: $font-color !important; font-family: "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; font-weight: 400; line-height: 1.4em; margin: 0; margin-bottom: 30px; } h1 { font-size: 38px; text-transform: capitalize; font-weight: 300; } h2 { font-size: 24px; } h3 { font-size: 18px; } h4 { font-size: 14px; font-weight:500; } p, ul, ol { font-family: "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px; li { list-style-position: inside; margin-left: 5px; } } a { color: $primary-color; text-decoration: underline; }
/* ------------------------------------- TYPOGRAPHY ------------------------------------- */ h1, h2, h3, h4 { color: $font-color !important; font-family: "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; font-weight: 400; line-height: 1.4em; margin: 0; margin-bottom: 30px; } h1 { font-size: 38px; text-transform: capitalize; font-weight: 300; } h2 { font-size: 24px; } h3 { font-size: 18px; } h4 { font-size: 14px; font-weight:500; } p, ul, ol { font-family: "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px; li { list-style-position: inside; margin-left: 5px; } } a { color: $primary-color; text-decoration: underline; } // Break long strings to prevent x-scrolling code, pre, .word-wrap { word-break: break-word; word-wrap: break-word; -webkit-hyphens: auto; -moz-hyphens: auto; hyphens: auto; }
Edit grid to have correct responsive toggle.
$gutter: 20px; $line-height: 22px; $baseline-unit: 6px; @if $responsive { $baseline-unit: 0.375rem; // 6px }
$gutter: 20px; $line-height: 22px; $baseline-unit: 6px; @if $responsive == true { $baseline-unit: 0.375rem; // 6px }
Fix issue where pusher nav was not resetting to 0 after login fix
#push { top: -100%; padding: 2em; position: absolute; background: lighten($gray, 10%); form { padding: 1.5em 0; } .modules { a { color: $gray-lighter; &:hover { text-decoration: underline; } } } .dismiss { top: 0.5em; right: 1em; z-index: 10001; position: absolute; font-size: $font-size-lg; color: darken($gray-lighter, 20%); } } body.pushing { #push { position: relative; } }
#push { top: -100%; padding: 2em; position: absolute; background: lighten($gray, 10%); form { padding: 1.5em 0; } .modules { a { color: $gray-lighter; &:hover { text-decoration: underline; } } } .dismiss { top: 0.5em; right: 1em; z-index: 10001; position: absolute; font-size: $font-size-lg; color: darken($gray-lighter, 20%); } } body.pushing { #push { top: 0; position: relative; } }
Make sure the holy grail layout works as a sticky footer in all browsers.
.HolyGrail { display: flex; min-height: 100%; flex-direction: column; @include ie-only { // `height: 100%` is needed for IE because of the `min-height` flexbox bug. height: 100%; } } .HolyGrail-body { display: flex; flex-direction: column; padding: 1.5em; } .HolyGrail-content { margin: 1.5em 0; } .HolyGrail-nav { order: -1; } .HolyGrail-nav, .HolyGrail-ads { padding: 1em; border-radius: 3px; background: hsla(31, 15%, 50%, 0.1); } @include breakpoint("large") { .HolyGrail-body { // `flex-shrink: 0` and `flex-basis: auto` are need to work around // Flexbox issues in IE 10-11. flex: 1 0 auto; flex-direction: row; } .HolyGrail-content { flex: 1; padding: 0 1.5em; margin: 0; } .HolyGrail-nav, .HolyGrail-ads { flex: 0 0 12em; } }
.HolyGrail { display: flex; min-height: 100%; flex-direction: column; @include ie-only { // `height: 100%` is needed for IE because of the `min-height` flexbox bug. height: 100%; } } .HolyGrail-body { display: flex; // `flex-shrink: 0` and `flex-basis: auto` are need to work around // Flexbox issues in IE 10-11. flex: 1 0 auto; flex-direction: column; padding: 1.5em; } .HolyGrail-content { margin: 1.5em 0; } .HolyGrail-nav { order: -1; } .HolyGrail-nav, .HolyGrail-ads { padding: 1em; border-radius: 3px; background: hsla(31, 15%, 50%, 0.1); } @include breakpoint("large") { .HolyGrail-body { flex-direction: row; } .HolyGrail-content { flex: 1; padding: 0 1.5em; margin: 0; } .HolyGrail-nav, .HolyGrail-ads { flex: 0 0 12em; } }
Fix left/right issue on prev/next
.testimonial-slider-container { background: $light-gray; padding: 1rem 1rem; .orbit-previous, .orbit-next { color: $black; left: -1rem; &:hover, &:active, &:focus { background-color: transparent; } } .testimonial-slide { display: flex; justify-content: center; } .testimonial-slide-content { padding: 1rem 1.5rem; @media screen and (min-width: 40em) { padding: 1rem 4rem; } } .profile-pic { max-width: 225px; } .testimonial-slide-text { padding-left: 3rem; } .testimonial-slide-quotation { font-size: 1.2rem; position: relative; &::before { content: "β€œ"; font-size: 6rem; color: lighten($black, 80%); position: absolute; top: -3rem; left: -3rem; } } .testimonial-slide-author-container { display: flex; @include breakpoint(small only) { .testimonial-slide-author-info { margin-left: 1rem; } } } }
.testimonial-slider-container { background: $light-gray; padding: 1rem 1rem; .orbit-previous, .orbit-next { color: $black; &:hover, &:active, &:focus { background-color: transparent; } } .orbit-previous { left: -1rem; } .orbit-next { right: -1rem; } .testimonial-slide { display: flex; justify-content: center; } .testimonial-slide-content { padding: 1rem 1.5rem; @media screen and (min-width: 40em) { padding: 1rem 4rem; } } .profile-pic { max-width: 225px; } .testimonial-slide-text { padding-left: 3rem; } .testimonial-slide-quotation { font-size: 1.2rem; position: relative; &::before { content: "β€œ"; font-size: 6rem; color: lighten($black, 80%); position: absolute; top: -3rem; left: -3rem; } } .testimonial-slide-author-container { display: flex; @include breakpoint(small only) { .testimonial-slide-author-info { margin-left: 1rem; } } } }
Refactor mediaquery with @mixin and @include
@media (min-width: 0) { section li { $X:2; width: 100% * (1/$X); } } @media (min-width: 401px) { section li { $X:3; width: 100% * (1/$X); } } @media (min-width: 726px) { section li { $X:4; width: 100% * (1/$X); } } @media (min-width: 1001px) { section li { $X:5; width: 100% * (1/$X); } } @media (min-width: 1213px) { section li { $X:6; width: 100% * (1/$X); } }
@mixin n-columns-min($width, $nCats){ @media (min-width: $width){ width: 100% * (1/$nCats); } } // @mixin n-columns-max($width, $nCats){ // @media (max-width: $width){ // width: 100% * (1/$nCats); // } // } section li { width: 100% * (1/2); // Default at Mobile @include n-columns-min(401px, 3); @include n-columns-min(726px, 4); @include n-columns-min(1001px, 5); @include n-columns-min(1213px, 6); // @import n-columns-max(401px, 3); // @import n-columns-max(726px, 4); // @import n-columns-max(1001px, 5); // @import n-columns-max(1213px, 6); // // width: 100% * (1/6); // Default at Desktop }
Add margin 0 auto to video tag
.debug { outline: 1px solid red } body { /* background-repeat: no-repeat; background-attachment: fixed; background-position: center;*/ padding-top: 70px; padding-bottom: 70px; h1 { text-align: center; background-color: #e7e7e7; border: 2px solid #000; border-radius: 1em; padding: .2em 0; } p { font-size: 1.3em; } } figure { margin: 10px auto; .img-circle { display: block; margin: 0 auto; } } .section { background-color: #e7e7e7; text-align: center; margin-top: 60px; border: 2px solid #000; border-radius: 1em; } .about-me-section { } .projects-section { img { vertical-align: center; } } .video-section { video { display: block; } } .skills-section { } .history-section { } .interests-section { } .carousel-inner > .item > img, .carousel-inner > .item > a > img { /*width: 70%;*/ display: block; margin: auto; } b { color: red; }
.debug { outline: 1px solid red } body { /* background-repeat: no-repeat; background-attachment: fixed; background-position: center;*/ padding-top: 70px; padding-bottom: 70px; h1 { text-align: center; background-color: #e7e7e7; border: 2px solid #000; border-radius: 1em; padding: .2em 0; } p { font-size: 1.3em; } } figure { margin: 10px auto; .img-circle { display: block; margin: 0 auto; } } .section { background-color: #e7e7e7; text-align: center; margin-top: 60px; border: 2px solid #000; border-radius: 1em; } .about-me-section { } .projects-section { img { vertical-align: center; } } .video-section { video { margin: 0 auto; } } .skills-section { } .history-section { } .interests-section { } .carousel-inner > .item > img, .carousel-inner > .item > a > img { /*width: 70%;*/ display: block; margin: auto; } b { color: red; }
Add background color as parameter
/* * Responsive intrinsic ratios * http://www.fredparke.com/blog/css-padding-trick-responsive-intrinsic-ratios */ @mixin intrinsic-pad-ratio($w: 4, $h: 3, $selector: picture, $breakpoint: 768, $w-br: 4, $h-br: 3) { position: relative; padding: 0 0 percentage($h/$w) 0; height: 0; z-index: 1; #{$selector} { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; &.loading { background: lighten($brand-primary, 10%); color: $white; .fa { position: absolute; left: inherit; top: 50%; height: 1em; margin-top: -0.5em; font-size: 2em; } } } @media (max-width: $breakpoint * 1px) { padding: 0 0 percentage($h-br/$w-br) 0; #{$selector} { &.loading { .fa { font-size: 1em; } } } } } /* Converting Hex to RGBa for background opacity */ @mixin background-opacity($color, $opacity: 0.5) { background: $color; /* The Fallback */ background: rgba($color, $opacity); }
/* * Responsive intrinsic ratios * http://www.fredparke.com/blog/css-padding-trick-responsive-intrinsic-ratios */ @mixin intrinsic-pad-ratio($w: 4, $h: 3, $selector: picture, $breakpoint: 768, $w-br: 4, $h-br: 3, $bg: inherit) { position: relative; padding: 0 0 percentage($h/$w) 0; height: 0; z-index: 1; #{$selector} { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; &.loading { background: $bg; color: $white; .fa { position: absolute; left: inherit; top: 50%; height: 1em; margin-top: -0.5em; font-size: 2em; } } } @media (max-width: $breakpoint * 1px) { padding: 0 0 percentage($h-br/$w-br) 0; #{$selector} { &.loading { .fa { font-size: 1em; } } } } } /* Converting Hex to RGBa for background opacity */ @mixin background-opacity($color, $opacity: 0.5) { background: $color; /* The Fallback */ background: rgba($color, $opacity); }
Set sidebar header link color
// // Sidebar // -------------------------------------------------- .sidebar{ background-color: #FAFAFA; .menu{ list-style: none; margin: 0; padding: 15px 0; position: relative; > li{ line-height: 30px; padding: 0 15px; position: relative; &:hover:not(.heading){ background: rgba(0, 64, 84, 0.03); } &.heading{ text-transform: uppercase; padding-top: 30px; &:before{ margin: 15px; content: ''; position: absolute; top: 0; right: 0; left: 0; border-bottom: solid 1px #FFF; } } &.heading:first-of-type{ padding-top: 0; &:before{ display: none; } } > a{ display: block; position: relative; text-decoration: none; } &.active{ background: rgba(0, 64, 84, 0.05); a{ &:before, &:after { border: none; } } & + li a:before { display: none; } } } } }
// // Sidebar // -------------------------------------------------- .sidebar{ background-color: #FAFAFA; .menu{ list-style: none; margin: 0; padding: 15px 0; position: relative; > li{ line-height: 30px; padding: 0 15px; position: relative; &:hover:not(.heading){ background: rgba(0, 64, 84, 0.03); } &.heading{ text-transform: uppercase; padding-top: 30px; a{ color: #333; } &:before{ margin: 15px; content: ''; position: absolute; top: 0; right: 0; left: 0; border-bottom: solid 1px #FFF; } } &.heading:first-of-type{ padding-top: 0; &:before{ display: none; } } > a{ display: block; position: relative; text-decoration: none; } &.active{ background: rgba(0, 64, 84, 0.05); a{ &:before, &:after { border: none; } } & + li a:before { display: none; } } } } }
Add sort icons to table columns
/* * This is a manifest file that'll be compiled into application.css, which will include all the files * listed below. * * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets, * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path. * * You're free to add application-wide styles to this file and they'll appear at the bottom of the * compiled file so the styles you add here take precedence over styles defined in any styles * defined in the other CSS/SCSS files in this directory. It is generally better to create a new * file per style scope. * *= require_tree . *= require_self */ .footer { height: 70px; width: 100%; background-color: #fafafa; margin-top: 20px; p { padding: 20px; } } .col-centered { float: none !important; margin: 0 auto; } .login-box { margin-bottom: 10px; .btn-primary { width: 100% } } #devise-links a { color: grey !important }
/* * This is a manifest file that'll be compiled into application.css, which will include all the files * listed below. * * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets, * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path. * * You're free to add application-wide styles to this file and they'll appear at the bottom of the * compiled file so the styles you add here take precedence over styles defined in any styles * defined in the other CSS/SCSS files in this directory. It is generally better to create a new * file per style scope. * *= require_tree . *= require_self */ .footer { height: 70px; width: 100%; background-color: #fafafa; margin-top: 20px; p { padding: 20px; } } .col-centered { float: none !important; margin: 0 auto; } .login-box { margin-bottom: 10px; .btn-primary { width: 100% } } #devise-links a { color: grey !important } .sortable-table th:not(.no-sort) { cursor: pointer; padding-left: 1em; position: relative; &::before, &::after { content: ""; position: absolute; left: 0; display: inline-block; width: 0; height: 0; border-width: 4px; border-style: none solid; border-color: currentColor; border-right-color: transparent; border-left-color: transparent; } &::before { border-bottom-style: solid; top: 0.9em; } &::after { top: 1.5em; border-top-style: solid; } }
Remove Merge Tags Left Over By Merge Tool
@import "foundation_and_overrides"; @import "base"; <<<<<<< HEAD @import "foundation_and_overrides"; /*Glob import the tree. It might be a good idea to change this to get the cascading right*/ @import "**/*"; @import "items"; .body { @extend .row; } ======= @import "layout"; @import "items"; @import "users"; @import "user_sessions"; @import "dirty_agenda"; @import "api"; >>>>>>> Remove @import */*
@import "foundation_and_overrides"; @import "base"; @import "layout"; @import "items"; @import "users"; @import "user_sessions"; @import "dirty_agenda"; @import "api";
Use display:table and table-cell for alignment
@import "../colours"; @import "../typography"; @import "../shims"; @import "../grid_layout"; // Phase banner usage: // // .phase-banner { // @include phase-banner($state: beta); // } @mixin phase-banner($state: alpha) { padding: 10px 0 8px; @include media(tablet) { padding-bottom: 10px; } border-bottom: 1px solid $border-colour; p { margin: 0; color: $banner-text-colour; @include core-16; } .phase-tag { @include phase-tag($state); } span { vertical-align: baseline; } } // Phase tag usage: // // Alpha // .phase-tag { // @include phase-tag; // } // // Beta // .phase-tag { // @include phase-tag(beta); // } @mixin phase-tag($state: alpha) { @include inline-block; margin: 0 8px 0 0; padding: 2px 5px 0; @include bold-16($line-height: 20 / 16); text-transform: uppercase; letter-spacing: 1px; text-decoration: none; color: $white; @if $state == alpha { background-color: $alpha-colour; } @else if $state == beta { background-color: $beta-colour; } }
@import "../colours"; @import "../typography"; @import "../shims"; @import "../grid_layout"; // Phase banner usage: // // .phase-banner { // @include phase-banner($state: beta); // } @mixin phase-banner($state: alpha) { padding: 10px 0 8px; @include media(tablet) { padding-bottom: 10px; } border-bottom: 1px solid $border-colour; p { display: table; margin: 0; color: $banner-text-colour; @include core-16; } .phase-tag { @include phase-tag($state); } span { display: table-cell; vertical-align: baseline; } } // Phase tag usage: // // Alpha // .phase-tag { // @include phase-tag; // } // // Beta // .phase-tag { // @include phase-tag(beta); // } @mixin phase-tag($state: alpha) { @include inline-block; margin: 0 8px 0 0; padding: 2px 5px 0; @include bold-16($line-height: 20 / 16); text-transform: uppercase; letter-spacing: 1px; text-decoration: none; color: $white; @if $state == alpha { background-color: $alpha-colour; } @else if $state == beta { background-color: $beta-colour; } }
Make border show up + z index so no wierd overlapping
.ci-check-list-item { display: flex; width: 100%; border-bottom: var(--base-border); height: 100%; &.sticky { position: sticky; background-color: var(--background-color); top: 28px; } .ci-check-name span { &:hover { color: var(--link-button-color); cursor: pointer !important; } } .ci-check-status-symbol, .job-step-toggled-indicator { padding: var(--spacing); padding-top: 11px; } .job-step-toggled-indicator { padding-left: 0px; color: var(--text-secondary-color); } .ci-check-list-item-detail { flex: 1; margin: auto; overflow-x: hidden; } .ci-check-name { font-weight: var(--font-weight-semibold); text-overflow: ellipsis; white-space: nowrap; overflow: hidden; } .ci-check-description { color: var(--text-secondary-color); font-weight: var(--text-secondary-color); font-size: var(--font-size-sm); line-height: 9px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; width: 250px; height: 12px; } }
.ci-check-list-item { display: flex; width: 100%; border-bottom: var(--base-border); height: 100%; &.sticky { position: sticky; background-color: var(--background-color); top: 29px; z-index: 10; } .ci-check-name span { &:hover { color: var(--link-button-color); cursor: pointer !important; } } .ci-check-status-symbol, .job-step-toggled-indicator { padding: var(--spacing); padding-top: 11px; } .job-step-toggled-indicator { padding-left: 0px; color: var(--text-secondary-color); } .ci-check-list-item-detail { flex: 1; margin: auto; overflow-x: hidden; } .ci-check-name { font-weight: var(--font-weight-semibold); text-overflow: ellipsis; white-space: nowrap; overflow: hidden; } .ci-check-description { color: var(--text-secondary-color); font-weight: var(--text-secondary-color); font-size: var(--font-size-sm); line-height: 9px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; width: 250px; height: 12px; } }
Remove a leftover comment for .brand-logo inside the generic brand file
/*! * Gernerated classes for brand related styling * * @package #{$package_name()} * @path generic/_brand.scss */ /* ============================================================================= $ Brand styles ================================================================================ */ .brand { font-family: $brand-font-family; color: $brand-color; } .brand-color { color: $brand-color; } .brand-face { font-family: $brand-font-family; } .brand-logo { // If you want to use the image-replacement technique, // replace 'false' with the image-name of your brand logo // e.g.: // @include image-replacement('brand_logo.gif', $display-mode: inline-block); @include image-replacement($image: $brand-logo_image, $display-mode: inline-block); }
/*! * Gernerated classes for brand related styling * * @package #{$package_name()} * @path generic/_brand.scss */ /* ============================================================================= $ Brand styles ================================================================================ */ .brand { font-family: $brand-font-family; color: $brand-color; } .brand-color { color: $brand-color; } .brand-face { font-family: $brand-font-family; } .brand-logo { @include image-replacement($image: $brand-logo_image, $display-mode: inline-block); }
Apply styling to OTP attempt field
.totp-setup { &__card { background: var(--primary); padding: 10px; border-radius: 5px; min-width: 256px; max-width: 256px; width: 100%; margin: 0 auto; } &__card-container { min-width: 276px; max-width: 276px; width: 100%; padding: 0; } &__qr { background: white; border-radius: 5px; } &__text { background: #000; color: #fff; margin: 10px 0 0 0; padding: 5px; border-radius: 5px; code { display: block; color: var(--warning); } } &__code-field { font-family: "Monaco", "Inconsolata", "Cascadia Code", "Consolas", monospace; width: 86px; } }
%totp-input { font-family: "Monaco", "Inconsolata", "Cascadia Code", "Consolas", monospace; width: 86px; } .totp-setup { &__card { background: var(--primary); padding: 10px; border-radius: 5px; min-width: 256px; max-width: 256px; width: 100%; margin: 0 auto; } &__card-container { min-width: 276px; max-width: 276px; width: 100%; padding: 0; } &__qr { background: white; border-radius: 5px; } &__text { background: #000; color: #fff; margin: 10px 0 0 0; padding: 5px; border-radius: 5px; code { display: block; color: var(--warning); } } &__code-field { @extend %totp-input; } } #user_otp_attempt { @extend %totp-input; }
Add theme option to change left position of logo
/// Alignment of the logo in desktop layout. In phone layout, logos /// are always displayed left aligned. /// /// - `"left"`: Left align logo. /// /// - `"right"`: Right align logo in desktop layout. $logo-alignment: "left" !default; // Left position relative to page when logo is left aligned. $logo-left: 8% !default; // Right position relative to page when logo is right aligned. $logo-right: 14% !default; @mixin logo-alignment { @include desktop { @if $logo-alignment == "left" { @include position-start($logo-left); } @else { @include position-end($logo-right); } } @include phone { left: $logo-left; } }
/// Alignment of the logo in desktop layout. In phone layout, logos /// are always displayed left aligned. /// /// - `"left"`: Left align logo. /// /// - `"right"`: Right align logo in desktop layout. $logo-alignment: "left" !default; // Left position relative to page when logo is left aligned. $logo-left: 8% !default; // Left position relative to page when logo is left aligned in desktop layout. $logo-mobile-left: null !default; // Right position relative to page when logo is right aligned. $logo-right: 14% !default; @mixin logo-alignment { @include desktop { @if $logo-alignment == "left" { @include position-start($logo-left); } @else { @include position-end($logo-right); } } @include phone { left: $logo-left; } @include mobile { @include position-start($logo-mobile-left); } }
Add hover style to dismiss icon
#update-available { position: relative; display: flex; overflow: hidden; align-content: center; align-items: center; justify-content: left; padding-left: var(--spacing); border-bottom: 1px solid var(--box-border-color); height: 0px; transition: height 0.25s; &.active { height: 50px; } .icon { margin-right: var(--spacing); } .close { position: absolute; right: var(--spacing); border: 0; height: 16px; width: 16px; margin: 0; padding: 0; background: transparent; color: var(--text-secondary-color); } }
#update-available { position: relative; display: flex; overflow: hidden; align-content: center; align-items: center; justify-content: left; padding-left: var(--spacing); border-bottom: 1px solid var(--box-border-color); height: 0px; transition: height 0.25s; &.active { height: 50px; } .icon { margin-right: var(--spacing); } .close { position: absolute; right: var(--spacing); border: 0; height: 16px; width: 16px; margin: 0; padding: 0; background: transparent; color: var(--text-secondary-color); &:hover { color: var(--text-color); } &:focus { outline: 0; } } }
Decrease font for all of undo commit info
#undo-commit { display: flex; flex-direction: row; justify-content: space-between; border-top: var(--base-border); background: var(--box-alt-background-color); .commit-info { padding: var(--spacing-half); min-width: 0; display: flex; flex-direction: column; .ago { font-size: var(--font-size-sm); } .summary { font-weight: var(--font-weight-semibold); @include ellipsis; } } // We're creating this wrapper to be able to set the padding. If we had // padding on #undo-commit, the enter/leave animate wouldn't animate the // amount of the padding. .actions { padding: var(--spacing-half); } }
#undo-commit { display: flex; flex-direction: row; justify-content: space-between; border-top: var(--base-border); background: var(--box-alt-background-color); .commit-info { padding: var(--spacing-half); min-width: 0; display: flex; flex-direction: column; font-size: var(--font-size-sm); .ago { } .summary { font-weight: var(--font-weight-semibold); @include ellipsis; } } // We're creating this wrapper to be able to set the padding. If we had // padding on #undo-commit, the enter/leave animate wouldn't animate the // amount of the padding. .actions { padding: var(--spacing-half); } }
Fix margin to allow calendar navigation
body { margin: 0; margin-bottom: 40px; } // scss-lint:disable IdSelector #site-container { @include outer-container; padding-left: 40px; .fullwidth { @include span-columns(12); } .halfwidth { @include span-columns(5); } }
body { margin: 0; margin-bottom: 40px; } // scss-lint:disable IdSelector #site-container { @include outer-container; padding-left: 48px; .fullwidth { @include span-columns(12); } .halfwidth { @include span-columns(5); } }
Remove focus state from main element
@import "elements/helpers"; @import "elements/reset"; @import "elements/elements-typography"; @import "elements/layout"; @import "elements/forms"; @import "elements/tables"; @import "elements/buttons"; @import "elements/details"; @import "elements/lists"; @import "elements/panels"; @import "elements/icons"; .new_user_profile { input[type="text"] { margin:0; font-size: 19px; padding:4px; } } .l-page-container { @extend %site-width-container; @extend %contain-floats; padding-bottom: $gutter; @include media(desktop) { padding-bottom: $gutter*3; } }
@import "elements/helpers"; @import "elements/reset"; @import "elements/elements-typography"; @import "elements/layout"; @import "elements/forms"; @import "elements/tables"; @import "elements/buttons"; @import "elements/details"; @import "elements/lists"; @import "elements/panels"; @import "elements/icons"; // main has a tabindex=-1 to make the 'skip to main content' link work - we don't want this to have a focus state main:focus { outline: none; } .new_user_profile { input[type="text"] { margin:0; font-size: 19px; padding:4px; } } .l-page-container { @extend %site-width-container; @extend %contain-floats; padding-bottom: $gutter; @include media(desktop) { padding-bottom: $gutter*3; } }
Adjust ul and h4 margins to make visual hierarchy appear more natural
@import "../../../../styles"; /deep/ div h3:first-child { margin-bottom: 8px !important; } /deep/ div h3:not(:first-child) { margin-top: 24px !important; margin-bottom: 8px !important; }
@import "../../../../styles"; /deep/ div h3:first-child { margin-bottom: 8px !important; } /deep/ div h3:not(:first-child) { margin-top: 24px !important; margin-bottom: 8px !important; } /deep/ ul { margin: 0 0 12px !important; } /deep/ div h4:not(:first-child) { margin-top: 20px !important; margin-bottom: 6px !important; }
Add GOV.UK frontend toolkit to imports
// Helpers @import "helpers"; // Reset @import "reset"; // Typography @import "elements-typography"; // Layout @import "layout"; // Modules // ========================================================================== // Forms @import "forms"; // Tables @import "tables"; // Buttons @import "buttons"; // Details @import "details"; // Lists @import "lists"; // Panels @import "panels"; // Icons @import "icons"; // Service-specific // ========================================================================== @import "lr-account"; @import "lr-divisions"; @import "lr-print"; @import "lr-tables"; @import "lr-utilities"; @import "lr-breadcrumbs"; @import "lr-register"; @import "lr-navigation"; .phase-banner { @include phase-banner(beta); }
//Frontend toolkit @import "colours"; @import "measurements"; @import "conditionals"; @import "shims"; @import "typography"; @import "css3"; @import "design-patterns/alpha-beta"; @import "design-patterns/buttons"; // Helpers @import "helpers"; // Reset @import "reset"; // Typography @import "elements-typography"; // Layout @import "layout"; // Modules // ========================================================================== // Forms @import "forms"; // Tables @import "tables"; // Buttons @import "buttons"; // Details @import "details"; // Lists @import "lists"; // Panels @import "panels"; // Icons @import "icons"; // Service-specific // ========================================================================== @import "lr-account"; @import "lr-divisions"; @import "lr-print"; @import "lr-tables"; @import "lr-utilities"; @import "lr-breadcrumbs"; @import "lr-register"; @import "lr-navigation"; .phase-banner { @include phase-banner(beta); }
Remove justification on collection description
/* * Copyright 2011-2020, The Trustees of Indiana University and Northwestern * University. 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. * --- END LICENSE_HEADER BLOCK --- */ .collections-landing-wrapper { .page-title { margin-top: 0px; @media screen and (max-width: 780px) { margin-top: 2rem; } } .document-thumbnail img { width: 100%; } .document-description { text-align: justify; color: #666; white-space: pre-wrap; } .collection-landing-pagination-wrapper { margin-top: 1rem; text-align: right; } .filter-collection-button-wrapper { margin-top: 1rem; } } form.collection_poster { input.btn { width: 49%; } }
/* * Copyright 2011-2020, The Trustees of Indiana University and Northwestern * University. 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. * --- END LICENSE_HEADER BLOCK --- */ .collections-landing-wrapper { .page-title { margin-top: 0px; @media screen and (max-width: 780px) { margin-top: 2rem; } } .document-thumbnail img { width: 100%; } .document-description { color: #666; white-space: pre-wrap; } .collection-landing-pagination-wrapper { margin-top: 1rem; text-align: right; } .filter-collection-button-wrapper { margin-top: 1rem; } } form.collection_poster { input.btn { width: 49%; } }
Remove outline on form elements
@import 'compass'; @import 'active_admin/mixins'; @import 'active_admin/base'; @import 'globals/settings'; @import 'foundation/foundation_and_overrides'; @import 'jquery-ui/core'; @import 'jquery-ui/menu'; @import 'jquery-ui/theme'; @import 'jquery-ui/autocomplete'; @import 'chosen'; @import 'froala_editor.min'; @import 'froala_style.min'; @import 'themes/royal.min'; @import 'admin/froala'; @import 'font-awesome'; @import 'mapbox'; @import 'plugins/mapbox'; @import 'admin/forms'; #site_title_image { width: 150px; } .clearfix { clear: both; height: 0; }
@import 'compass'; @import 'active_admin/mixins'; @import 'active_admin/base'; @import 'globals/settings'; @import 'foundation/foundation_and_overrides'; @import 'jquery-ui/core'; @import 'jquery-ui/menu'; @import 'jquery-ui/theme'; @import 'jquery-ui/autocomplete'; @import 'chosen'; @import 'froala_editor.min'; @import 'froala_style.min'; @import 'themes/royal.min'; @import 'admin/froala'; @import 'font-awesome'; @import 'mapbox'; @import 'plugins/mapbox'; @import 'admin/forms'; * { outline: none; } #site_title_image { width: 150px; } .clearfix { clear: both; height: 0; }
Fix the %hr @extend on the csc-frame-ruler* rules
/* TYPO3 Styling for typo3 related classes */ /* CSC-Frames */ .csc-frame-rulerBefore:before { content: ''; @extend %horizontal-ruler; } .csc-frame-rulerAfter:after { content: ''; @extend %horizontal-ruler; } .csc-frame-indent { padding: 0 10%; } .csc-frame-indent3366 { padding-left: 33.333%; } .csc-frame-indent6633 { padding-right: 33.333%; } // Extend some typographic utilities for the default TYPO3 RTE. .align-center { @extend %u-alignCenter; } .align-right { @extend %u-alignRight; } .align-left { @extend %u-alignLeft; }
/* TYPO3 Styling for typo3 related classes */ /* CSC-Frames */ .csc-frame-rulerBefore:before { content: ''; @extend %hr; } .csc-frame-rulerAfter:after { content: ''; @extend %hr; } .csc-frame-indent { padding: 0 10%; } .csc-frame-indent3366 { padding-left: 33.333%; } .csc-frame-indent6633 { padding-right: 33.333%; } // Extend some typographic utilities for the default TYPO3 RTE. .align-center { @extend %u-alignCenter; } .align-right { @extend %u-alignRight; } .align-left { @extend %u-alignLeft; }
Allow columns to be flipped for RTL content
#wrapper { @extend %site-width-container; .report-a-problem-toggle, .report-a-problem-inner { padding: 0; } } .grid-row { @extend %grid-row; .column-quarter { @include grid-column( 1/4 ); } .column-half { @include grid-column( 1/2 ); } .column-three-quarters { @include grid-column( 3/4 ); } .column-third { @include grid-column( 1/3 ); } .column-two-thirds { @include grid-column( 2/3 ); } }
#wrapper { @extend %site-width-container; .report-a-problem-toggle, .report-a-problem-inner { padding: 0; } } .grid-row { @extend %grid-row; .column-quarter { @include grid-column( 1/4 ); .direction-rtl & { @include grid-column( 1/4, $float: right ); } } .column-half { @include grid-column( 1/2 ); .direction-rtl & { @include grid-column( 1/2, $float: right ); } } .column-three-quarters { @include grid-column( 3/4 ); .direction-rtl & { @include grid-column( 3/4, $float: right ); } } .column-third { @include grid-column( 1/3 ); .direction-rtl & { @include grid-column( 1/3, $float: right ); } } .column-two-thirds { @include grid-column( 2/3 ); .direction-rtl & { @include grid-column( 2/3, $float: right ); } } }
Update quotation style to match design
//// /// @group Typography //// /// Blockquote style /// @since 0.1.0 .quote { @include font-size($scale: h4); font-weight: 300; &:before { color: $colour-nice-teal; content: get-glyph(left-double-quotation-mark); display: inline-block; font-family: Arial; font-size: 6rem; font-weight: bold; line-height: 0; vertical-align: bottom; @media print { color: $colour-true-black; } } p { font-size: inherit; padding-top: 0; } footer, cite { @include font-size($scale: 0); font-style: normal; } }
//// /// @group Typography //// /// Blockquote style /// @since 0.1.0 .quote { @include font-size(lead); border-left: em($spacing-x-small) solid $colour-nice-teal; font-weight: normal; margin: rem($spacing-large 0); padding: rem(0 0 0 $spacing-xx-large); position: relative; &:before { color: $colour-nice-teal; content: get-glyph(left-double-quotation-mark); display: block; font-family: Arial; font-size: 5rem; font-weight: bold; left: 0; line-height: .8; position: absolute; text-align: center; top: 0; width: rem($spacing-xx-large); @media print { color: $colour-true-black; } } p { font-size: inherit; } footer, cite { @include font-size($scale: 0); font-style: normal; } }
Update mobile logout warning modal UI
@import '~@/scss/GlobalVariables'; //*************************************************** // dev-only-button //*************************************************** .dev-only-button { position: fixed; bottom: 20px; left: 20px; font-size: 30px; font-weight: 600; padding: 10px; background-color: red; } //*************************************************** // .modal-contents //*************************************************** .modal-contents { padding: 40px; } h2 { font-size: 35px; font-weight: 700; text-align: center; margin-bottom: 20px; } p { text-align: center; padding-bottom: 30px; } .buttons { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 15px; }
@import '~@/scss/GlobalVariables'; //*************************************************** // .modal-contents //*************************************************** .modal-contents { padding: 40px; @media all and (max-width: $mobile-width) { padding: 40px 20px; } } h2 { font-size: 35px; font-weight: 700; text-align: center; margin-bottom: 20px; } p { text-align: center; padding-bottom: 30px; } .buttons { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 15px; @media all and (max-width: $mobile-width) { grid-template-columns: 1fr; } }
Fix formatting of upload button
.image-widget { } .image-widget__upload { position: relative; overflow: hidden; // These numbers are magic - they work in Chrome // Need to check in other browers TODO margin: 0px; left: 10px; top: 25px; cursor: pointer; &:active { top: 26px; } > input { position: absolute; top: 0; right: 0; margin: 0; padding: 0; font-size: 20px; width: 100%; height: 100%; opacity: 0; filter: alpha(opacity=0); } } .image-widget__image { max-height: 100px; }
.image-widget { } .image-widget__upload { position: relative; overflow: hidden; // These numbers are magic - they work in Chrome // Need to check in other browers TODO margin: 0px; left: 10px; cursor: pointer; &:active { top: 26px; } > input { position: absolute; top: 0; right: 0; margin: 0; padding: 0; font-size: 20px; width: 100%; height: 100%; opacity: 0; filter: alpha(opacity=0); } } .image-widget__image { max-height: 100px; }
Update font size of date in the news article cards
//-------------------------------------------------- // classes //-------------------------------------------------- &--articles { .cards { &__cards { @include flex; @include flex-h-between; @include flex-wrap; } } .card { @include responsive(margin-bottom, rem-calc(20), rem-calc(30), rem-calc(30)); @include responsive(width, 100%, 48.5%, 48.5%); text-decoration: none; &__content { @include responsive(padding, rem-calc(26 20), rem-calc(28 20), rem-calc(30 20)); } &__date { margin: 0; } &__h3 { margin: .5em 0; } &__summary { margin: 0 } &__image { @include flex-center; background-color: $grey-light; background-position: center; background-size: cover; width: 100%; height: rem-calc(265); } &__icon { @include icon-placeholder-image; } } }
//-------------------------------------------------- // classes //-------------------------------------------------- &--articles { .cards { &__cards { @include flex; @include flex-h-between; @include flex-wrap; } } .card { @include responsive(margin-bottom, rem-calc(20), rem-calc(30), rem-calc(30)); @include responsive(width, 100%, 48.5%, 48.5%); text-decoration: none; &__content { @include responsive(padding, rem-calc(26 20), rem-calc(28 20), rem-calc(30 20)); } &__date { font-size: rem-calc(14); margin: 0; } &__h3 { margin: .5em 0; } &__summary { margin: 0 } &__image { @include flex-center; background-color: $grey-light; background-position: center; background-size: cover; width: 100%; height: rem-calc(265); } &__icon { @include icon-placeholder-image; } } }
Fix typo in optional manifest file
// Use template/settings to include / exclude optional files @import 'layouts/optional/*'; @import 'components/optional/*';
// Use template/settings to include / exclude optional files @import 'layout/optional/*'; @import 'components/optional/*';
Add high contrast rules to spinner circles
// Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. // // Office UI Fabric // -------------------------------------------------- // Spinner styles .ms-Spinner { position: relative; height: 20px; &.ms-Spinner--large { height: 28px; .ms-Spinner-label { left: 34px; top: 6px; } } } .ms-Spinner-circle { position: absolute; border-radius: 100px; background-color: $ms-color-themePrimary; opacity: 0; } .ms-Spinner-label { position: relative; @include ms-font-s(); color: $ms-color-themePrimary; left: 28px; top: 2px; }
// Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. // // Office UI Fabric // -------------------------------------------------- // Spinner styles .ms-Spinner { position: relative; height: 20px; &.ms-Spinner--large { height: 28px; .ms-Spinner-label { left: 34px; top: 6px; } } } .ms-Spinner-circle { position: absolute; border-radius: 100px; background-color: $ms-color-themePrimary; opacity: 0; @media screen and (-ms-high-contrast: active) { background-color: $ms-color-white; } @media screen and (-ms-high-contrast: black-on-white) { background-color: $ms-color-black; } } .ms-Spinner-label { position: relative; @include ms-font-s(); color: $ms-color-themePrimary; left: 28px; top: 2px; }
Add stylesheet for styling logos.
.mas-logo { height: 36px; width: 216px; background: transparent image_url('mas-logo.png') 0 0 no-repeat; .svg & { background: transparent image_url('mas-logo.svg') 0 0 no-repeat; } } .mas-logo-small { width: 54px; height: 30px; display: block; margin: $bl*2 0 0 0; background: transparent image_url('mas-logo-small.png') 0 0 no-repeat; .svg & { background: transparent image_url('mas-logo-small.svg') 0 0 no-repeat; } }
Add new sass mixin file
/** * * Layout mixin credit goes to codyhouse.co - Claudia Romano, Sebastiano Guerriero * */ // breakpoints $S: 320px; $M: 768px; $L: 1170px; // media queries @mixin MQ($canvas) { @if $canvas == S { @media only screen and (min-width: $S) { @content; } } @else if $canvas == M { @media only screen and (min-width: $M) { @content; } } @else if $canvas == L { @media only screen and (min-width: $L) { @content; } } } // container grid system /*@mixin column($percentage, $float-direction:left) { width: 100% * $percentage; float: $float-direction; }*/
Add animations file to juntos stylesheets
.animated { &.scale-in { animation-duration: .3s; animation-fill-mode: forwards; animation-iteration-count: 1; animation-name: scaleIn; transform: scale(0); } } @keyframes scaleIn{ 0% { transform: scale(0); } 80% { transform: scale(1.1); } 100% { transform: scale(1); } }
Make default text size for textarea smaller on big screens
[gk-comment-box] { font: { size: 12px !important; } @media (max-width: $screen-md-max) { font: { size: 16px !important; } } }
Remove jekyll force_poling (forced high CPU usage)
#!/bin/bash sudo hostname leonardinius.galeoconsulting.com cd /vagrant \ && rm -rf ./_site \ && sudo jekyll serve \ --watch \ --force_polling \ --port 80 \ --drafts \ --config _config-dev.yml
#!/bin/bash sudo hostname leonardinius.galeoconsulting.com cd /vagrant \ && rm -rf ./_site \ && sudo jekyll serve \ --watch \ --port 80 \ --drafts \ --config _config-dev.yml
Check go generate on builds * Check if we have mismatching `go generate ./...` output on builds
#!/bin/bash if [ -n "$(gofmt -l .)" ]; then echo "Go code is not formatted:" gofmt -d . exit 1 fi
#!/bin/bash if [ -n "$(gofmt -l .)" ]; then echo "Go code is not formatted:" gofmt -d . exit 1 fi go generate ./... if [ -n "$(git status -s -uno)" ]; then echo "Go generate output does not match commit." echo "Did you forget to run go generate ./... ?" exit 1 fi
Update circle build to set release.version to the tag being built
#!/bin/bash # This script will build the project. SWITCHES="-s --console=plain" if [ $CIRCLE_PR_NUMBER ]; then echo -e "Build Pull Request #$CIRCLE_PR_NUMBER => Branch [$CIRCLE_BRANCH]" ./gradlew clean build $SWITCHES elif [ -z $CIRCLE_TAG ]; then echo -e ?'Build Branch with Snapshot => Branch ['$CIRCLE_BRANCH']' ./gradlew clean build $SWITCHES elif [ $CIRCLE_TAG ]; then echo -e 'Build Branch for Release => Branch ['$CIRCLE_BRANCH'] Tag ['$CIRCLE_TAG']' case "$CIRCLE_TAG" in *-rc\.*) ./gradlew -Prelease.disableGitChecks=true -Prelease.useLastTag=true clean build candidate $SWITCHES ;; *) ./gradlew -Prelease.disableGitChecks=true -Prelease.useLastTag=true clean build final $SWITCHES ;; esac else echo -e 'WARN: Should not be here => Branch ['$CIRCLE_BRANCH'] Tag ['$CIRCLE_TAG'] Pull Request ['$CIRCLE_PR_NUMBER']' ./gradlew clean build $SWITCHES fi EXIT=$? exit $EXIT
#!/bin/bash # This script will build the project. SWITCHES="-s --console=plain" if [ $CIRCLE_PR_NUMBER ]; then echo -e "Build Pull Request #$CIRCLE_PR_NUMBER => Branch [$CIRCLE_BRANCH]" ./gradlew clean build $SWITCHES elif [ -z $CIRCLE_TAG ]; then echo -e ?'Build Branch with Snapshot => Branch ['$CIRCLE_BRANCH']' ./gradlew clean build $SWITCHES elif [ $CIRCLE_TAG ]; then echo -e 'Build Branch for Release => Branch ['$CIRCLE_BRANCH'] Tag ['$CIRCLE_TAG']' case "$CIRCLE_TAG" in *-rc\.*) ./gradlew -Prelease.disableGitChecks=true -Prelease.version=$CIRCLE_TAG clean build candidate $SWITCHES ;; *) ./gradlew -Prelease.disableGitChecks=true -Prelease.version=$CIRCLE_TAG clean build final $SWITCHES ;; esac else echo -e 'WARN: Should not be here => Branch ['$CIRCLE_BRANCH'] Tag ['$CIRCLE_TAG'] Pull Request ['$CIRCLE_PR_NUMBER']' ./gradlew clean build $SWITCHES fi EXIT=$? exit $EXIT
Add an alias to run phpspec for the last edited spec file
#!/bin/sh function fixFormattingOnPhpSpecFiles () { echo -ne "Fixing SPEC files... \033[36mcleaning\033[0m"\\r bin/php-cs-fixer fix --fixers=-visibility spec --quiet if [ $? -eq 0 ]; then echo -e "Fixing SPEC files... \033[32mclean \033[0m" return 0 else echo -e "Fixing SPEC files... \033[33mfixed \033[0m" return 1 fi } FORMATTING_TOOLS+=('fixFormattingOnPhpSpecFiles') if [ -n "$ENABLE_ALIAS" ] && [ "$ENABLE_ALIAS" = true ]; then alias psr="bin/phpspec run" function psd () { file="$1" len=`expr "$file" : 'src/'` if [ $len -gt 0 ]; then file="${file#src/}" else len=`expr "$file" : 'spec/'` if [ $len -gt 0 ]; then file="${file#spec/}" fi fi bin/phpspec desc "$file" } fi
#!/bin/sh function fixFormattingOnPhpSpecFiles () { echo -ne "Fixing SPEC files... \033[36mcleaning\033[0m"\\r bin/php-cs-fixer fix --fixers=-visibility spec --quiet if [ $? -eq 0 ]; then echo -e "Fixing SPEC files... \033[32mclean \033[0m" return 0 else echo -e "Fixing SPEC files... \033[33mfixed \033[0m" return 1 fi } function getLastEditedSpecFile () { environment=`uname -s` if [ "${environment}" = "Darwin" ]; then echo $(find spec -type f -print0 | xargs -0 stat -f "%m %N" | sort -rn | head -1 | cut -f2- -d" ") else echo $(find spec -type f -printf '%T@ %p\n' | sort -rn | head -1 | cut -f2- -d" ") fi } FORMATTING_TOOLS+=('fixFormattingOnPhpSpecFiles') if [ -n "$ENABLE_ALIAS" ] && [ "$ENABLE_ALIAS" = true ]; then alias psr="bin/phpspec run" function psl () { lastEdited=$(getLastEditedSpecFile) echo -e "Running phpspec for: \033[36m${lastEdited}\033[0m" bin/phpspec run "${lastEdited}" } function psd () { file="$1" len=`expr "$file" : 'src/'` if [ $len -gt 0 ]; then file="${file#src/}" else len=`expr "$file" : 'spec/'` if [ $len -gt 0 ]; then file="${file#spec/}" fi fi bin/phpspec desc "$file" } fi
Check Formatting: Reformat file with `shfmt`
@INCLUDE_COMMON@ echo echo ELEKTRA CHECK FORMATTING echo command -v git >/dev/null 2>&1 || { echo "git command needed for this test, aborting" >&2; exit 0; } cd "@CMAKE_SOURCE_DIR@" if ! git diff --exit-code then echo "Seems like source is already modified, aborting test" >&2 exit 0 fi if which clang-format-6.0 > /dev/null || which clang-format > /dev/null; then scripts/reformat-source else echo 'Warning: clang-format not available, skipping reformat-source' fi if which sponge > /dev/null || which cmake-format > /dev/null then scripts/reformat-cmake || exit 1 else echo 'Warning: Since either `sponge` or `cmake-format` is not available I will not check the formatting of the CMake code.' fi git diff --exit-code succeed_if "Please commit the reformatting changes before pushing" end_script
@INCLUDE_COMMON@ echo echo ELEKTRA CHECK FORMATTING echo command -v git > /dev/null 2>&1 || { echo "git command needed for this test, aborting" >&2 exit 0 } cd "@CMAKE_SOURCE_DIR@" if ! git diff --exit-code; then echo "Seems like source is already modified, aborting test" >&2 exit 0 fi if which clang-format-6.0 > /dev/null || which clang-format > /dev/null; then scripts/reformat-source else echo 'Warning: clang-format not available, skipping reformat-source' fi if which sponge > /dev/null || which cmake-format > /dev/null; then scripts/reformat-cmake || exit 1 else echo 'Warning: Since either `sponge` or `cmake-format` is not available I will not check the formatting of the CMake code.' fi git diff --exit-code succeed_if "Please commit the reformatting changes before pushing" end_script
Add bash completion for npm
#!/bin/bash function set_nodejs_env() { local NODEJS_PREFIX="/opt/nodejs" for nodejs_root in $NODEJS_PREFIX/node-v*;do local nodejs_bin_dir=$nodejs_root/bin if [[ -x $nodejs_bin_dir/node ]] && [[ $PATH != *$nodejs_bin_dir* ]] ; then PATH=$nodejs_bin_dir:$PATH break; fi done } set_nodejs_env unset set_nodejs_env
#!/bin/bash function set_nodejs_env() { local NODEJS_PREFIX="/opt/nodejs" for nodejs_root in $NODEJS_PREFIX/node-v*;do local nodejs_bin_dir=$nodejs_root/bin if [[ -x $nodejs_bin_dir/node ]];then [[ $PATH != *$nodejs_bin_dir* ]] && export PATH=$nodejs_bin_dir:$PATH type -P npm >/dev/null 2>&1 && eval "$(npm completion)" break; fi done } set_nodejs_env unset set_nodejs_env
Fix "add-apt-repository" not found error
#!/usr/bin/env bash set -eu sudo add-apt-repository ppa:jonathonf/vim sudo apt-get update sudo apt-get install vim
#!/usr/bin/env bash set -eu sudo apt-get install -y software-properties-common sudo add-apt-repository ppa:jonathonf/vim sudo apt-get update sudo apt-get install -y vim
Remove src/version.py before running 2to3.
cp locale/ py3k/ -R cp plugins/ py3k/ -R # copy plugins data python 2to3/run.py src/ plugins/ test/ scripts/* setup.py -wWno py3k -f all -f def_iteritems -f def_itervalues -f def_iterkeys -f reload "$@"
rm -f src/version.py # Prevent 2to3 from copying it, since py3k/src/version.py was probably written by root. cp locale/ py3k/ -R cp plugins/ py3k/ -R # copy plugins data python 2to3/run.py src/ plugins/ test/ scripts/* setup.py -wWno py3k -f all -f def_iteritems -f def_itervalues -f def_iterkeys -f reload "$@"
Remove assumption about directory structure, allowing packaged QA scripts to work
. /etc/pcp.env export PCP_STDERR="" case `pwd` in */qa) export PATH=.:`cd ..; pwd`:$PATH ;; *) echo "Warning: not in qa directory, I'm confused" pwd status=1 exit ;; esac # get offset into an archive relative to the first pmResult # past the preamble # # Usage: _arch_start archive [offset] # _arch_start() { pmdumplog -z $1 \ | $PCP_AWK_PROG ' /^[0-9][0-9]:[0-9][0-9]:/ { if ($3 ~ /pmcd.pmlogger.host/) next split($1, t, ":") t[3] += '"${2-0}"' while (t[3] < 0) { t[3] += 60 t[2]-- } while (t[3] > 60) { t[3] -= 60 t[2]++ } while (t[2] < 0) { t[2] += 60 t[1]-- } while (t[2] > 60) { t[2] -= 60 t[1]++ } while (t[1] < 0) t[1] += 24 while (t[1] > 23) t[1] -= 24 printf "@%02d:%02d:%06.3f",t[1],t[2],t[3] exit }' }
. /etc/pcp.env export PCP_STDERR="" export PATH=.:$PATH # get offset into an archive relative to the first pmResult # past the preamble # # Usage: _arch_start archive [offset] # _arch_start() { pmdumplog -z $1 \ | $PCP_AWK_PROG ' /^[0-9][0-9]:[0-9][0-9]:/ { if ($3 ~ /pmcd.pmlogger.host/) next split($1, t, ":") t[3] += '"${2-0}"' while (t[3] < 0) { t[3] += 60 t[2]-- } while (t[3] > 60) { t[3] -= 60 t[2]++ } while (t[2] < 0) { t[2] += 60 t[1]-- } while (t[2] > 60) { t[2] -= 60 t[1]++ } while (t[1] < 0) t[1] += 24 while (t[1] > 23) t[1] -= 24 printf "@%02d:%02d:%06.3f",t[1],t[2],t[3] exit }' }
Fix problem with keyboard brightness
#!/bin/sh CONTROL_FILE='/tmp/kb-brightness-control.nid' if [ -e $CONTROL_FILE ]; then NID=`cat $CONTROL_FILE` else NID=`notify-send "Keyboard Brightness" -t 500 -p` echo $NID > $CONTROL_FILE fi brightness=`./write_to_kb read` case $1 in "up") brightness=`expr $brightness + 25` ;; "down") brightness=`expr $brightness - 25` ;; "set") brightness=$2 ;; *) echo "I don't know what you mean" exit 1 ;; esac if [ "$brightness" -lt 0 ]; then brightness=0 elif [ "$brightness" -gt 255 ]; then brightness=255 fi ./write_to_kb write $brightness visible_br=`echo "$brightness / 2 * 4 / 5" | bc` NID=`notify-send "Keyboard Brightness" -r $NID -t 500 -i xfpm-keyboard-100 -h int:value:$visible_br -p` echo $NID > $CONTROL_FILE
#!/bin/sh CONTROL_FILE='/tmp/kb-brightness-control.nid' if [ -e $CONTROL_FILE ]; then NID=`cat $CONTROL_FILE` else NID=`notify-send "Keyboard Brightness" -t 500 -p` echo $NID > $CONTROL_FILE fi brightness=`$(dirname $0)/write_to_kb read` case $1 in "up") brightness=`expr $brightness + 25` ;; "down") brightness=`expr $brightness - 25` ;; "set") brightness=$2 ;; *) echo "I don't know what you mean" exit 1 ;; esac if [ "$brightness" -lt 0 ]; then brightness=0 elif [ "$brightness" -gt 255 ]; then brightness=255 fi `dirname $0`/write_to_kb write $brightness visible_br=`echo "$brightness / 2.55" | bc` NID=`notify-send "Keyboard Brightness" -r $NID -t 500 -i xfpm-keyboard-100 -h int:value:$visible_br -p` echo $NID > $CONTROL_FILE
Fix a script for Travis CI: fix the path to libkytea
#!/bin/bash -x set -o errexit set -o nounset git clone https://github.com/tetsuok/kytea libkytea cd libkytea . ci_config.sh bash ./setup_gtest.sh bash ./gyp/install_gyp.sh bash ./build_with_gyp.sh Release make if [[ "$TARGET_OS" = "Darwin" ]]; then cp out_mac/Release/libkytea.a .. else cp out_unix/Release/libkytea.a .. fi cp -fr src/include/kytea . ln -sf `pwd`/data/model.bin ../sample
#!/bin/bash -x set -o errexit set -o nounset git clone https://github.com/tetsuok/kytea libkytea cd libkytea . ci_config.sh bash ./setup_gtest.sh bash ./gyp/install_gyp.sh bash ./build_with_gyp.sh Release make if [[ "$TARGET_OS" = "Darwin" ]]; then cp out_mac/Release/libkytea.a .. else cp out_unix/Release/obj.target/gyp/libkytea.a .. fi cp -fr src/include/kytea . ln -sf `pwd`/data/model.bin ../sample
Print environment variables being set (debugging)
#!/usr/bin/env bash set -e export GOOGLE_CREDENTIALS_FILE="/tmp/google-account.json" export GCLOUD_PROJECT="terraform-ci-acc-tests" export TF_ACC=1 export GOOGLE_REGION="us-central1" # TODO actually use a separate project for xpn resources export GOOGLE_XPN_HOST_PROJECT="man-i-wish-i-was-a-real-project" # Setup GOPATH export GOPATH=${PWD}/go # CI sets the contents of our json account secret in our environment; dump it # to disk for use in tests. echo "${GOOGLE_ACCOUNT_JSON}" > /tmp/google-account.json set -x # Create GOPATH structure mkdir -p "${GOPATH}/src/github.com/terraform-providers" ln -s "${PWD}/terraform-provider-google" "${GOPATH}/src/github.com/terraform-providers/terraform-provider-google" cd "${GOPATH}/src/github.com/terraform-providers/terraform-provider-google" go test ./google -c -o google-test ./google-test --test.list 'TestAcc.*' | xargs -P 8 -I {} -e ./google-test -test.run {} -test.v
#!/usr/bin/env bash set -e set -x export GOOGLE_CREDENTIALS_FILE="/tmp/google-account.json" export GCLOUD_PROJECT="terraform-ci-acc-tests" export TF_ACC=1 export GOOGLE_REGION="us-central1" # TODO actually use a separate project for xpn resources export GOOGLE_XPN_HOST_PROJECT="man-i-wish-i-was-a-real-project" # Setup GOPATH export GOPATH=${PWD}/go # CI sets the contents of our json account secret in our environment; dump it # to disk for use in tests. echo "${GOOGLE_ACCOUNT_JSON}" > /tmp/google-account.json # Create GOPATH structure mkdir -p "${GOPATH}/src/github.com/terraform-providers" ln -s "${PWD}/terraform-provider-google" "${GOPATH}/src/github.com/terraform-providers/terraform-provider-google" cd "${GOPATH}/src/github.com/terraform-providers/terraform-provider-google" go test ./google -c -o google-test ./google-test --test.list 'TestAcc.*' | xargs -P 8 -I {} -e ./google-test -test.run {} -test.v