Instruction stringlengths 14 778 | input_code stringlengths 0 4.24k | output_code stringlengths 1 5.44k |
|---|---|---|
Make sidepanel's list to scroll when it overflows | .list {
border-top: 1px solid #eee;
border-bottom: 1px solid #eee;
}
.list-item {
display: flex; /* establish flex container */
flex-direction: row; /* make main axis horizontal */
justify-content: flex-start; /* center items vertically, in this case */
align-items: center; /* center items horizontally, in this case */
padding: 10px 10px;
border-bottom: 1px solid #eee;
}
.list-item:last-child {
border:none;
}
.list-item-icon {
width: 40px;
margin: 10px;
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
}
.list-item-description {
width: 320px;
.content {
color: #333;
font-size: 16px;
}
.time {
color: #999;
font-weight: 300;
font-size: 12px;
margin: 3px 0px;
}
}
| .list {
border-top: 1px solid #eee;
border-bottom: 1px solid #eee;
height: 570px;
overflow-y: scroll;
}
.list-item {
display: flex; /* establish flex container */
flex-direction: row; /* make main axis horizontal */
justify-content: flex-start; /* flush items to the left */
align-items: center; /* center items vertically */
padding: 10px 10px;
border-bottom: 1px solid #eee;
}
.list-item:last-child {
border:none;
}
.list-item-icon {
width: 40px;
margin: 10px;
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
}
.list-item-description {
width: 320px;
.content {
color: #333;
font-size: 16px;
}
.time {
color: #999;
font-weight: 300;
font-size: 12px;
margin: 3px 0px;
}
}
|
Change image width for planner events | /*
* We need a seperate stylesheet for the planner page because they are dynamically added.
*/
mymicds-planner {
.planner-interface .planner-container .calendar-container .sidebar {
.coming-up .coming-up-day .coming-up-events .event .event-content .event-desc,
.day-selection .selection-events .event .event-content .event-desc {
// Place styles in here for description stylings dynamically added.
img {
width: 100%;
height: 100%;
}
ul {
padding-left: 1rem;
}
// Don't make File Preview
.scribd_file_preview_link,
.instructure_file_link_holder {
img {
width: inherit;
}
}
}
}
.view-event-modal .modal-dialog .modal-content .modal-body {
// Place styles in here for 'View Event' modal.
img {
width: 100%;
height: 100%;
}
// Don't make File Preview
.scribd_file_preview_link,
.instructure_file_link_holder {
img {
width: inherit;
}
}
}
}
| /*
* We need a seperate stylesheet for the planner page because they are dynamically added.
*/
mymicds-planner {
.planner-interface .planner-container .calendar-container .sidebar {
.coming-up .coming-up-day .coming-up-events .event .event-content .event-desc,
.day-selection .selection-events .event .event-content .event-desc {
// Place styles in here for description stylings dynamically added.
img {
max-width: 100%;
height: 100%;
}
ul {
padding-left: 1rem;
}
}
}
.view-event-modal .modal-dialog .modal-content .modal-body {
// Place styles in here for 'View Event' modal.
img {
max-width: 100%;
height: 100%;
}
}
}
|
Fix missing jQuery-QueryBuilder styles from the precompiled assets. | //= require "vendor/datatables-plugins/dataTables.bootstrap"
@import "admin/variables";
@import "bootstrap";
@import "bootstrap-responsive";
@import "fontawesome";
@import "vendor/jQuery-QueryBuilder/query-builder.css";
@import "qtip2/jquery.qtip";
@import "bootstrap-daterangepicker/daterangepicker-bs2";
@import "selectize/selectize.default";
@import "pnotify";
@import "admin/base";
@import "admin/stats";
| //= require "vendor/datatables-plugins/dataTables.bootstrap"
@import "admin/variables";
@import "bootstrap";
@import "bootstrap-responsive";
@import "fontawesome";
@import "vendor/jQuery-QueryBuilder/query-builder";
@import "qtip2/jquery.qtip";
@import "bootstrap-daterangepicker/daterangepicker-bs2";
@import "selectize/selectize.default";
@import "pnotify";
@import "admin/base";
@import "admin/stats";
|
Update line graph line styling | .applications-graph {
border: 1px solid #999;
.line {
fill: none;
stroke: #0F8094;
stroke-width: 4px;
}
.line0 { stroke: #0F8094; }
.line1 { stroke: #4F8240; }
.line2 { stroke: #00A89E; }
.line3 { stroke: #F7941F; }
.line4 { stroke: #D6007D; }
.line5 { stroke: #662E91; }
.x-axis path,
.y-axis path {
display: none;
}
.x-axis line {
fill: none;
stroke: #444;
stroke-width: 1px;
shape-rendering: crispEdges;
}
.labels {
line {
fill: none;
stroke: #444;
stroke-width: 1px;
&.crisp {
shape-rendering: crispEdges;
}
}
text.total {
font-size:1.2em;
}
text.text2 {
fill: #777;
font-size:.8em;
}
}
}
| .applications-graph {
.line {
fill: none;
stroke: #0F8094;
stroke-width: 2.5px;
stroke-linecap: round;
stroke-linejoin: round;
}
.line0 { stroke: #0F8094; }
.line1 { stroke: #4F8240; }
.line2 { stroke: #00A89E; }
.line3 { stroke: #F7941F; }
.line4 { stroke: #D6007D; }
.line5 { stroke: #662E91; }
.x-axis path,
.y-axis path {
display: none;
}
.x-axis line {
fill: none;
stroke: #444;
stroke-width: 1px;
shape-rendering: crispEdges;
}
.labels {
line {
fill: none;
stroke: #444;
stroke-width: 1px;
&.crisp {
shape-rendering: crispEdges;
}
}
text.total {
font-size:1em;
}
text.text2 {
fill: #777;
font-size:.8em;
}
}
}
|
Increase border radius for modals |
.overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.25);
z-index: 9999;
}
.container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
overflow: hidden;
overflow-scrolling: touch;
outline: none;
@media screen and (max-width:600px) {
top: 10px;
left: 10px;
right: 10px;
bottom: 10px;
}
}
.inner {
position: relative;
margin: 0;
border: 1px solid #777;
background: #fff;
padding: 20px;
border-radius: 4px;
overflow: auto;
max-width: 100%;
max-height: 100%;
@media screen and (max-width:600px) {
padding: 10px;
}
}
.closeIconContainer {
position: fixed;
right: 4px;
top: 4px;
margin: 0;
padding: 0;
cursor: pointer;
}
|
.overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.25);
z-index: 9999;
}
.container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
overflow: hidden;
overflow-scrolling: touch;
outline: none;
@media screen and (max-width:600px) {
top: 10px;
left: 10px;
right: 10px;
bottom: 10px;
}
}
.inner {
position: relative;
margin: 0;
border: 2px solid #777;
background: #fff;
padding: 20px;
border-radius: 10px;
overflow: auto;
max-width: 100%;
max-height: 100%;
@media screen and (max-width:600px) {
padding: 10px;
}
}
.closeIconContainer {
position: fixed;
right: 4px;
top: 4px;
margin: 0;
padding: 0;
cursor: pointer;
}
|
Make a nicer CSS arrow in indicatorpicker | .vzb-ip-select {
display: inline-block;
margin: 0 10px 0 18px;
padding: 5px;
border: 1px solid $vzb-color-primary;
border-radius: 4px;
cursor: pointer;
&::after {
content: '▼';
margin-left: 5px;
font-size: $vzb-font-size-small;
}
&:hover {
background-color: $vzb-color-primary-lightest;
}
}
| .vzb-ip-select {
display: inline-block;
margin: 0 10px 0 18px;
padding: 5px;
border: 1px solid $vzb-color-primary;
border-radius: 4px;
cursor: pointer;
&::after {
content: '';
display: inline-block;
right: 5px;
width: 0;
height: 0;
border: 6px solid transparent;
border-left: 6px solid $vzb-color-primary;
margin-top: 9px;
z-index: 1;
margin-left: 5px;
font-size: $vzb-font-size-small;
}
&:hover {
background-color: $vzb-color-primary-lightest;
}
}
|
Fix excessive padding on media menu items | .media-actions {
position: relative;
text-align: right;
margin-left: auto;
}
.media-actions__icon {
@extend %icon;
}
.media-actions__overlay {
@include modal-overlay(tranparent);
}
.media-actions__menu {
@include app-menu;
position: absolute;
right: 0;
top: 27px;
display: none;
&--active {
display: block;
}
}
.media-actions__menu-item {
font-size: 15px;
padding: 11px 15px;
cursor: pointer;
&:hover {
background: $opaque-black-05;
}
}
.media-actions__link {
color: inherit;
&,
&:hover {
text-decoration: none;
}
&:nth-last-child(-n + 2) {
color: $black-38;
}
}
| .media-actions {
position: relative;
text-align: right;
margin-left: auto;
}
.media-actions__icon {
@extend %icon;
}
.media-actions__overlay {
@include modal-overlay(tranparent);
}
.media-actions__menu {
@include app-menu;
position: absolute;
right: 0;
top: 27px;
display: none;
&--active {
display: block;
}
}
.media-actions__menu-item { // TODO: merge with header-actions and app-menu-item
font-size: 15px;
padding: 0 16px;
cursor: pointer;
&:hover {
background: $opaque-black-05;
}
}
.media-actions__link {
color: inherit;
&,
&:hover {
text-decoration: none;
}
&:nth-last-child(-n + 2) {
color: $black-38;
}
}
|
Fix unit icon size in search suggestions | .search-suggestions {
position: fixed;
top: $header-height - $gap;
z-index: 1011;
background: transparent;
text-align: center;
padding-right: 50px + 3 * $gap;
width: 100%;
&__open-all {
cursor: pointer;
}
&__list {
background: $content-background;
padding: $gap;
box-shadow: 3px 3px 5px #666;//, 0 5px 5px #333, 5px 0 5px #333;
&:empty {
padding: 0;
}
}
&__result {
padding: $gap;
display: flex;
align-items: center;
background: $content-background;
color: $content-text;
text-decoration: none !important;
border-top: 2px solid $status-unknown;
&-icon {
flex: 0 1 auto;
padding-right: $gap;
img {
height: 40px;
}
}
&-details {
flex: 2 1 auto;
text-align: left;
&__name {
font-weight: 700;
}
}
}
}
| .search-suggestions {
position: fixed;
top: $header-height - $gap;
z-index: 1011;
background: transparent;
text-align: center;
padding-right: 50px + 3 * $gap;
width: 100%;
&__open-all {
cursor: pointer;
}
&__list {
background: $content-background;
padding: $gap;
box-shadow: 3px 3px 5px #666;//, 0 5px 5px #333, 5px 0 5px #333;
&:empty {
padding: 0;
}
}
&__result {
padding: $gap;
display: flex;
align-items: center;
background: $content-background;
color: $content-text;
text-decoration: none !important;
border-top: 2px solid $status-unknown;
&-icon {
flex: 0 1 auto;
padding-right: $gap;
img {
height: $marker-height;
}
}
&-details {
flex: 2 1 auto;
text-align: left;
&__name {
font-weight: 700;
}
}
}
}
|
Fix truncated circle in small size | :host {
border-radius: 50%;
cursor: pointer;
transition: all linear .2s;
width: 2.5rem;
height: 2.5rem;
display: flex;
align-items: center;
justify-content: space-around;
margin: 0.45rem;
&[small] {
width: 1.6rem;
height: 1.6rem;
margin: 0.35rem;
}
&[active] {
transform: scale(1.4, 1.4);
transition: transform linear .2s !important;
}
} | :host {
border-radius: 50%;
cursor: pointer;
transition: all linear .2s;
width: 2.5rem;
height: 2.5rem;
display: flex;
align-items: center;
justify-content: space-around;
margin: 0.45rem;
&[small] {
width: 1.65rem;
height: 1.65rem;
margin: 0.3rem;
}
&[active] {
transform: scale(1.4, 1.4);
transition: transform linear .2s !important;
}
} |
Move interactive panel up instead of box shadow | $panel-border: 1px solid #EEE;
.m-panel {
margin-top: $baseline/2;
margin-bottom: $baseline/2;
border: $panel-border;
padding-left: $baseline/2;
padding-right: $baseline/2;
display: block;
&:hover,
&:focus {
text-decoration: none;
}
@include media( $desktop ) {
padding: $baseline/2 $baseline;
}
&__title {
text-align: center;
}
&--interactive {
transition: box-shadow $global__fast $global__easing;
&:hover,
&:focus {
box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
}
} | $panel-border: 1px solid #EEE;
.m-panel {
margin-top: $baseline/2;
margin-bottom: $baseline/2;
border: $panel-border;
padding-left: $baseline/2;
padding-right: $baseline/2;
display: block;
&:hover,
&:focus {
text-decoration: none;
}
@include media( $desktop ) {
padding: $baseline/2 $baseline;
}
&__title {
text-align: center;
}
&--interactive {
transition: top $global__fast $global__easing;
top: 0;
position: relative;
&:hover,
&:focus {
top: -$baseline/4;
}
}
} |
Increase bottom margin of panels | // Elements overrides
.form-group {
.panel-border-narrow {
padding-bottom: em(15, 19);
}
}
| // Elements overrides
.panel {
margin-bottom: $gutter-half;
@include media(tablet) {
margin-bottom: $gutter;
}
&:last-child {
margin-bottom: 0;
}
}
.form-group {
.panel-border-narrow {
padding-bottom: em(15, 19);
}
}
|
Allow enough space so full public key fits in the "To" input | @import "solar-css/lib/index";
@import "solar-css/styles/index";
@import "solar-stellarorg/lib/index";
@import "solar-stellarorg/styles/index";
@import "siteHeader";
@import "loginBox";
@import "welcomeBox";
@import "dashboardOverviewBack";
@import "dashboardOverviewRow";
@import "accountUnfunded";
@import "sendConfirm";
@import "sendOutcome";
@import "sendPane";
@import "sendSetup";
@import "sendWaiting";
@import "additionalSigners";
@import "history";
@import "historyTable";
.sendSetup, .sendConfirm, .sendWaiting, .sendOutcome {
max-width: 36em;
margin: 0 auto 3em 0;
}
.sendConfirm, .sendWaiting, .sendOutcome {
margin: 0 auto 3em auto;
}
| @import "solar-css/lib/index";
@import "solar-css/styles/index";
@import "solar-stellarorg/lib/index";
@import "solar-stellarorg/styles/index";
@import "siteHeader";
@import "loginBox";
@import "welcomeBox";
@import "dashboardOverviewBack";
@import "dashboardOverviewRow";
@import "accountUnfunded";
@import "sendConfirm";
@import "sendOutcome";
@import "sendPane";
@import "sendSetup";
@import "sendWaiting";
@import "additionalSigners";
@import "history";
@import "historyTable";
.sendSetup, .sendConfirm, .sendWaiting, .sendOutcome {
max-width: 37em;
margin: 0 auto 3em 0;
}
.sendConfirm, .sendWaiting, .sendOutcome {
margin: 0 auto 3em auto;
}
|
Secure image size on product | .production-description-nav{
&__link{
color: black;
font-weight: 400;
font-size: 14px;
text-transform: uppercase;
&.active{
color: #D2BB92;
}
}
}
.production-description-sticky {
}
| .production-description-nav{
&__link{
color: black;
font-weight: 400;
font-size: 14px;
text-transform: uppercase;
&.active{
color: #D2BB92;
}
}
}
#production-description-content{
figure,
img{
max-width: 100%;
}
}
|
Fix fieldset legend styles in IE7 | .form-group,
.form-group-plain {
@include clearfix;
position: relative;
margin: 40px 0 0;
padding: 0;
outline: 0;
border: 0;
&:first-child,
legend + &,
header + &,
p + & {
margin-top: 0;
}
}
.form-group {
@include clearfix;
> .form-group-label {
overflow: hidden;
position: relative;
display: block;
width: 100%;
padding: 0;
> label,
> span {
position: relative;
padding-right: 7px;
&:after {
content: '';
position: absolute;
left: 100%;
right: -1000px;
bottom: .65em;
height: 1px;
background: $grey-3;
}
}
}
}
.form-group-label {
cursor: default;
font-size: 1.1em;
padding: 0;
color: inherit;
.form-optional {
color: $grey-2;
&:before {
content: '(';
}
&:after {
content: ')';
}
}
}
| .form-group,
.form-group-plain {
@include clearfix;
position: relative;
margin: 40px 0 0;
padding: 0;
outline: 0;
border: 0;
&:first-child,
legend + &,
header + &,
p + & {
margin-top: 0;
}
}
.form-group {
@include clearfix;
> .form-group-label {
overflow: hidden;
position: relative;
display: block;
width: 100%;
padding: 0;
*display: inline; // IE7
> label,
> span {
position: relative;
padding-right: 7px;
&:after {
content: '';
position: absolute;
left: 100%;
right: -1000px;
bottom: .65em;
height: 1px;
background: $grey-3;
}
}
}
}
.form-group-label {
cursor: default;
font-size: 1.1em;
padding: 0;
color: inherit;
.form-optional {
color: $grey-2;
&:before {
content: '(';
}
&:after {
content: ')';
}
}
}
|
Update font-size as per review. | .deployment-services {
margin: 0 auto;
width: 1030px;
background-color: $light-grey;
padding: 20px;
.accordion-section {
border: none;
}
.accordion-section__title {
font-size: 23px;
}
&__max {
font-size: 1.4em;
}
&__changes {
@extend %list-style;
margin: 15px 0 0;
padding-top: 7px;
border-top: 1px dotted $light-mid-grey;
}
}
| .deployment-services {
margin: 0 auto;
width: 1030px;
background-color: $light-grey;
padding: 20px;
.accordion-section {
border: none;
}
.accordion-section__title {
font-size: 1.4375rem;
}
&__max {
font-size: 1.4em;
}
&__changes {
@extend %list-style;
margin: 15px 0 0;
padding-top: 7px;
border-top: 1px dotted $light-mid-grey;
}
}
|
Set max height for thumbnail images | body {
background-color: #333;
color: #fff;
}
.navbar-main {
border-radius: 0px;
}
.thumbnail-container {
margin-bottom: 15px;
}
.thumbnail {
margin: 0;
padding: 0;
border: 15px solid #fff;
border-radius: 0px;
}
| body {
background-color: #333;
color: #fff;
}
.navbar-main {
border-radius: 0px;
}
.thumbnail-container {
margin-bottom: 15px;
}
.thumbnail {
margin: 0;
padding: 0;
border: 15px solid #fff;
border-radius: 0px;
display: inline-block;
& > img {
max-height: 200px;
}
}
|
Add css for Disk Information component | @import '../../../themes/basic-theme.scss';
.disk-information-callout {
border: 1px solid $light-text-color;
.callout-main {
padding: 8px;
div {
font-size: 14px;
color: $emphasized-text-color;
}
div + div {
padding-top: 5px;
}
}
}
| |
Use column rules on snake nav | nav.nav-page-snake {
@include clearfix();
clear: left;
margin: 1em 0 1em;
-webkit-column-width: 11em;
-moz-column-width: 11em;
column-width: 11em;
-webkit-column-gap: 2em;
-moz-column-gap: 2em;
column-gap: 2em;
ul {
list-style: none;
margin: 0;
padding: 0;
}
li {
padding: 0;
}
> ul > li {
padding-bottom: 1em;
-webkit-column-break-inside: avoid;
page-break-inside: avoid;
break-inside: avoid;
}
a {
display: block;
margin: 0;
padding: .4em 0;
font-family: $sans-serif;
line-height: 1.2;
color: black;
// word-wrap: break-word;
-ms-hyphens: auto;
-webkit-hyphens: auto;
-moz-hyphens: auto;
hyphens: auto;
}
> ul > li > a {
font-size: emize(16);
font-weight: bold;
border-bottom: $border;
margin-bottom: 0;
padding-bottom: .2em;
}
li li a {
font-size: emize(14);
}
}
| nav.nav-page-snake {
@include clearfix();
clear: left;
margin: 1.4em 0 1em;
-webkit-column-width: 11em;
-moz-column-width: 11em;
column-width: 11em;
-webkit-column-gap: 1.6em;
-moz-column-gap: 1.6em;
column-gap: 1.6em;
-webkit-column-rule: $border;
-moz-column-rule: $border;
column-rule: $border;
ul {
list-style: none;
margin: 0;
padding: 0;
}
li {
padding: 0;
}
> ul > li {
padding-bottom: 1.5em;
-webkit-column-break-inside: avoid;
page-break-inside: avoid;
break-inside: avoid;
}
a {
display: block;
margin: 0;
padding: .2em 0;
font-family: $sans-serif;
line-height: 1.2;
color: black;
// word-wrap: break-word;
-ms-hyphens: auto;
-webkit-hyphens: auto;
-moz-hyphens: auto;
hyphens: auto;
}
> ul > li > a {
font-size: emize(16);
font-weight: bold;
// border-bottom: $border;
padding: 0 0 .1em 0;
}
li li a {
font-size: emize(14);
// margin: 0 0 0 .8em;
// text-indent: -.8em;
}
}
|
Change color of connection dots. | .home__wrapper {
display: flex;
height: 100%;
justify-content: center;
align-items: center;
flex-direction: column;
}
.home__url {
margin: {
top: 0;
bottom: 32px;
}
font: {
size: 48px;
}
}
.home__connections {
display: flex;
width: 200px;
padding: 0;
margin: {
top: 0;
bottom: 64px;
}
list-style-type: none;
justify-content: space-around;
flex-flow: row nowrap;
}
.home__connection {
width: 16px;
height: 16px;
background: {
color: #eee;
}
border: {
radius: 50%;
}
}
.home__connection--active {
background: {
color: #ddd;
}
}
| .home__wrapper {
display: flex;
height: 100%;
justify-content: center;
align-items: center;
flex-direction: column;
}
.home__url {
margin: {
top: 0;
bottom: 32px;
}
font: {
size: 48px;
}
}
.home__connections {
display: flex;
width: 200px;
padding: 0;
margin: {
top: 0;
bottom: 64px;
}
list-style-type: none;
justify-content: space-around;
flex-flow: row nowrap;
}
.home__connection {
width: 16px;
height: 16px;
background: {
color: #eee;
}
border: {
radius: 50%;
}
}
.home__connection--active {
background: {
color: $brand-primary;
}
}
|
Use shorter notation for border colors | .dc-spinner {
display: inline-block;
margin: -2px 8px 0;
border-top: 2px solid rgba(red($dc-gray30), green($dc-gray30), blue($dc-gray30), .3);
border-right: 2px solid rgba(red($dc-gray30), green($dc-gray30), blue($dc-gray30), .3);
border-bottom: 2px solid rgba(red($dc-gray30), green($dc-gray30), blue($dc-gray30), .3);
border-left: 2px solid $dc-gray30;
vertical-align: middle;
animation: dc-spinner-load 1.1s infinite linear;
&,
&:after {
width: 30px;
height: 30px;
border-radius: 50%;
}
&--error {
border-top-color: rgba(red($dc-red20), green($dc-red20), blue($dc-red20), .3);
border-right-color: rgba(red($dc-red20), green($dc-red20), blue($dc-red20), .3);
border-bottom-color: rgba(red($dc-red20), green($dc-red20), blue($dc-red20), .3);
border-left-color: $dc-red20;
}
}
@keyframes dc-spinner-load {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
| .dc-spinner {
display: inline-block;
margin: -2px 8px 0;
border-top: 2px solid rgba($dc-gray30, .3);
border-right: 2px solid rgba($dc-gray30, .3);
border-bottom: 2px solid rgba($dc-gray30, .3);
border-left: 2px solid $dc-gray30;
vertical-align: middle;
animation: dc-spinner-load 1.1s infinite linear;
&,
&:after {
width: 64px;
height: 64px;
border-radius: 50%;
}
&--error {
border-top-color: rgba($dc-red20, .3);
border-right-color: rgba($dc-red20, .3);
border-bottom-color: rgba($dc-red20, .3);
border-left-color: $dc-red20;
}
}
@keyframes dc-spinner-load {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
|
Fix wrong padding when alert has close button | //
//--------------------------------------------------------------------------
// Alerts - Luma
//--------------------------------------------------------------------------
//
.alert {
border-radius: .3rem;
margin-bottom: 20px;
padding: 15px;
position: relative;
width: 100%;
&.is-info {
background-color: $color-info;
color: tint($color-info, 80%);
}
&.is-success {
background-color: $color-success;
color: shade($color-success, 50%);
}
&.is-warning {
background-color: $color-warning;
color: shade($color-warning, 50%);
}
&.is-danger {
background-color: $color-danger;
color: tint($color-danger, 80%);
}
.close {
cursor: pointer;
position: absolute;
font-size: 22px;
font-style: normal;
opacity: .7;
right: 1rem;
top: 1.1rem;
&:hover {
opacity: .9;
}
&::before {
content: "×";
}
}
}
| //
//--------------------------------------------------------------------------
// Alerts - Luma
//--------------------------------------------------------------------------
//
.alert {
border-radius: .3rem;
margin-bottom: 20px;
padding: 15px;
position: relative;
width: 100%;
&.is-info {
background-color: $color-info;
color: tint($color-info, 80%);
}
&.is-success {
background-color: $color-success;
color: shade($color-success, 50%);
}
&.is-warning {
background-color: $color-warning;
color: shade($color-warning, 50%);
}
&.is-danger {
background-color: $color-danger;
color: tint($color-danger, 80%);
}
&.can-close {
padding-right: 30px;
}
&__close {
cursor: pointer;
position: absolute;
font-size: 22px;
font-style: normal;
opacity: .7;
right: 1rem;
top: 1.1rem;
&:hover {
opacity: .9;
}
&::before {
content: "×";
}
}
}
|
Increase footer margin to top | #partners {
background: #222;
text-align: center;
padding-top: 65px;
padding-bottom: 65px;
margin-top: 55px;
}
.partner {
max-height: 40px;
display: inline-block;
margin-right: 55px;
margin-top: 35px;
}
/* Specific rules
------------------------------------------------------------------------------*/
#sopraSteria {
display: block;
margin: 0 auto;
}
#computas {
max-height: 50px;
}
#bouvet {
}
#knowit {
}
| #partners {
background: #222;
text-align: center;
padding-top: 65px;
padding-bottom: 65px;
margin-top: 85px;
}
.partner {
max-height: 40px;
display: inline-block;
margin-right: 55px;
margin-top: 35px;
}
/* Specific rules
------------------------------------------------------------------------------*/
#sopraSteria {
display: block;
margin: 0 auto;
}
#computas {
max-height: 50px;
}
#bouvet {
}
#knowit {
}
|
Add half gutter padding when horizontal. | .call_to_action {
background: $light-blue;
font-size: 16px;
line-height: 24px;
font-weight: 500;
.head {
margin: 0px;
background: $light-green;
color: #FFF
}
.body {
margin-top: 0px; // Override default of $well-padding * 2;
padding: $grid-gutter-width/2 0;
background: $light-blue;
.well {
border: 1px solid $light-grey;
width: 100%;
min-height: 100px;
// keep everything within this element vertically centered
@include flexbox();
@include flexbox-center-vert();
}
}
}
a.cta-link {
background: url(/arrow.png) no-repeat right center;
min-height: 50px; // accomodates background image
padding-right: 30px; // accomodates background image
// keep everything within this element vertically centered
@include flexbox();
@include flexbox-center-vert();
}
.blacklight-home-index {
.call_to_action .col-md-4 {
display: block;
width: 100%;
float: none;
}
} | .call_to_action {
background: $light-blue;
font-size: 16px;
line-height: 24px;
font-weight: 500;
.head {
margin: 0px;
background: $light-green;
color: #FFF
}
.body {
margin-top: 0px; // Override default of $well-padding * 2;
padding: $grid-gutter-width/2;
background: $light-blue;
.well {
border: 1px solid $light-grey;
width: 100%;
min-height: 100px;
// keep everything within this element vertically centered
@include flexbox();
@include flexbox-center-vert();
}
}
}
a.cta-link {
background: url(/arrow.png) no-repeat right center;
min-height: 50px; // accomodates background image
padding-right: 30px; // accomodates background image
// keep everything within this element vertically centered
@include flexbox();
@include flexbox-center-vert();
}
.blacklight-home-index {
.call_to_action {
.col-md-4 {
display: block;
width: 100%;
float: none;
}
.body {
padding: $grid-gutter-width/2 0;
}
}
} |
Allow SearchBox to expand to fill width | /*
Copyright 2015, 2016 OpenMarket 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_SearchBox {
flex: 1 1 0;
min-width: 0;
&.mx_SearchBox_blurred:not(:hover) {
background-color: transparent;
}
.mx_SearchBox_closeButton {
cursor: pointer;
background-image: url('$(res)/img/icons-close.svg');
background-repeat: no-repeat;
width: 16px;
height: 16px;
background-position: center;
padding: 9px;
}
}
| /*
Copyright 2015, 2016 OpenMarket 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_SearchBox {
flex: 1 1 0 !important;
min-width: 0;
&.mx_SearchBox_blurred:not(:hover) {
background-color: transparent;
}
.mx_SearchBox_closeButton {
cursor: pointer;
background-image: url('$(res)/img/icons-close.svg');
background-repeat: no-repeat;
width: 16px;
height: 16px;
background-position: center;
padding: 9px;
}
}
|
Fix (CheckBox, Radio): styles issue | @import "/node_modules/formiojs/dist/formio.form.min.css";
| @import "/node_modules/formiojs/dist/formio.form.min.css";
.radio label,
.checkbox label {
min-height: 21px;
}
|
Remove html5boilerplate reset for now | @import "recipes/reset/html5boilerplate";
@import "compass/css3";
html
{
padding: 1em;
@include background(linear-gradient(#ddd, #fff) no-repeat);
}
h1
{
font-size: 2em;
margin-bottom: 1em;
}
h2
{
font-size: 1.4em;
margin-bottom: .6em;
}
p.doc
{
background: #fff;
border: #ddd;
padding: 1em;
color: #bbb;
margin: 1em;
font-style: italic;
a
{
color: #999;
}
} | @import "compass/css3";
html
{
padding: 1em;
@include background(linear-gradient(#ddd, #fff) no-repeat);
}
h1
{
font-size: 2em;
margin-bottom: 1em;
}
h2
{
font-size: 1.4em;
margin-bottom: .6em;
}
p.doc
{
background: #fff;
border: #ddd;
padding: 1em;
color: #bbb;
margin: 1em;
font-style: italic;
a
{
color: #999;
}
} |
Make margins even smaller on mobile | .landing-page {
.questions-wrapper {
margin: 20px auto;
}
.chat-iframe {
display: block;
margin: 40px auto;
}
} | .landing-page {
.questions-wrapper {
margin: 10px auto;
@include breakpoint (large up) {
margin: 20px auto;
}
}
.chat-iframe {
display: block;
margin: 40px auto;
}
} |
Add CSS from react-sdk PR feedback | /*
Copyright 2017 Vector Creations 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_CreateGroupDialog_label {
text-align: left;
padding-bottom: 12px;
}
.mx_CreateGroupDialog_input {
font-size: 15px;
border-radius: 3px;
border: 1px solid $input-border-color;
padding: 9px;
color: $primary-fg-color;
background-color: $primary-bg-color;
}
| /*
Copyright 2017 Vector Creations 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_CreateGroupDialog_inputRow {
margin-top: 10px;
margin-bottom: 10px;
}
.mx_CreateGroupDialog_label {
text-align: left;
padding-bottom: 12px;
}
.mx_CreateGroupDialog_input {
font-size: 15px;
border-radius: 3px;
border: 1px solid $input-border-color;
padding: 9px;
color: $primary-fg-color;
background-color: $primary-bg-color;
}
|
Use simple interpolation in selector | // Align element vertically inside
@mixin valo-vertical-align-guide ($to-align: (), $align: middle, $pseudo-element: after) {
&:#{$pseudo-element} {
content: "";
display: inline-block;
width: 0;
height: 100%;
vertical-align: middle;
}
@if length($to-align) > 0 {
@each $selector in $to-align {
& > #{unquote($selector)} {
vertical-align: $align;
}
}
}
}
@mixin valo-tappable {
@include user-select(none);
-webkit-tap-highlight-color: rgba(0,0,0,0);
-webkit-touch-callout: none;
cursor: pointer;
}
| // Align element vertically inside
@mixin valo-vertical-align-guide ($to-align: (), $align: middle, $pseudo-element: after) {
&:#{$pseudo-element} {
content: "";
display: inline-block;
width: 0;
height: 100%;
vertical-align: middle;
}
@if length($to-align) > 0 {
@each $selector in $to-align {
& > #{$selector} {
vertical-align: $align;
}
}
}
}
@mixin valo-tappable {
@include user-select(none);
-webkit-tap-highlight-color: rgba(0,0,0,0);
-webkit-touch-callout: none;
cursor: pointer;
}
|
Make sure tabmenu height is fixed for RES and non-RES. | #header-bottom-left .tabmenu {
// Stick the tab menu to the bottom of the header.
position: absolute;
bottom: 0; // for padding 2px on bottom of li
left: 0;
right: 0;
padding: 2px;
text-align: center;
overflow: hidden;
&:hover {
overflow: visible;
}
li {
margin: 0 2px 0 0;
padding: 0 0 2px 0;
text-align: center;
font-weight: normal;
&::after {
content: " " + $tab_menu-separator;
color: $tab_menu-separator-color;
}
&:last-of-type::after {
content: "";
}
a {
border: none;
padding: 0 0 2px 0;
background-color: transparent;
&:hover {
border-bottom: 2px solid #5f99cf;
}
}
&.selected {
a {
color: orangered;
border-bottom: 2px solid orangered;
&:hover {
border-bottom: 2px solid lighten(orangered, 20%);
}
}
}
}
}
| #header-bottom-left .tabmenu {
// Stick the tab menu to the bottom of the header.
position: absolute;
bottom: 0; // for padding 2px on bottom of li
left: 0;
right: 0;
height: 18px;
padding: 2px;
text-align: center;
overflow: hidden;
&:hover {
overflow: visible;
}
li {
margin: 0 2px 0 0;
padding: 0 0 2px 0;
text-align: center;
font-weight: normal;
&::after {
content: " " + $tab_menu-separator;
color: $tab_menu-separator-color;
}
&:last-of-type::after {
content: "";
}
a {
border: none;
padding: 0 0 2px 0;
background-color: transparent;
&:hover {
border-bottom: 2px solid #5f99cf;
}
}
&.selected {
a {
color: orangered;
border-bottom: 2px solid orangered;
&:hover {
border-bottom: 2px solid lighten(orangered, 20%);
}
}
}
}
}
|
Add some rules to the IE8 CSS file | //
// note: this file is for use with Sass and Compass - http://sass-lang.com, http://compass-style.org
// don't use it as your live site stylesheet!
//
// import global variables
@import "core/settings";
// import Compass, Compass Plugins and any additional mixins
@import "core/helpers";
/* ==========================================================================
Desktop version layout for IE8 due to lack of media queries support
========================================================================== */
.layout--span-1-6 {
@include grid-span(6, 1, $options: 'both');
}
.layout--span-7-12 {
@include grid-span(6, 7);
}
.layout--span-1-4 {
@include grid-span(4, 1, $options: 'both');
}
.layout--span-5-8 {
@include grid-span(4, 5);
}
.layout--span-9-12 {
@include grid-span(4, 9);
}
.layout--span-1-8 {
@include grid-span(8, 1, $options: 'both');
}
.layout--span-5-12 {
@include grid-span(8, 5);
}
.layout--span-1-3 {
@include grid-span(3, 1, $options: 'both');
}
.layout--span-4-6 {
@include grid-span(3, 4);
}
.layout--span-7-9 {
@include grid-span(3, 7);
}
.layout--span-10-12 {
@include grid-span(3, 10);
}
.layout--span-4-9 {
@include grid-span(6, 4);
}
.layout--span-1-9 {
@include grid-span(9, 1, $options: 'both');
}
.layout--span-4-12 {
@include grid-span(9, 4);
}
/* ==========================================================================
Fix for reponsive embedded content in IE8
========================================================================== */
img,
video {
width: auto;
}
| |
Revert fix needed for bootstrap css | .item-index {
ul {
list-style-type: none;
margin: 0;
padding: 0;
}
.list-item {
padding: 0.9em 1em;
border-bottom: 1px solid #ddd;
border-left: 6px solid transparent;
height: 7em;
.item-header-main,
.item-header-small {
margin: 0;
}
.item-header-main {
font-size: 120%;
a {
color: #333;
}
}
.item-header-small {
text-transform: uppercase;
a {
color: #999;
}
}
.list-item-details {
}
.item-image {
border-radius: 3px;
margin-right: 1em;
}
.item-information {
position: relative;
}
.item-desc {
position: absolute;
top: 40px;
}
}
}
.item-show {
.item-field {
margin-bottom: 1em;
span.item-field-heading {
min-width: 8em;
font-weight: bold;
font-size: 1.17em;
display: inline-block;
&::after {
content: ":";
}
}
.item-field-value {
display: inline;
}
}
}
.linked-item {
cursor: pointer;
}
| .item-index {
ul {
list-style-type: none;
margin: 0;
padding: 0;
}
.list-item {
padding: 0.9em 1em;
border-bottom: 1px solid #ddd;
border-left: 6px solid transparent;
min-height: 5em;
.item-header-main,
.item-header-small {
margin: 0;
}
.item-header-main {
font-size: 120%;
a {
color: #333;
}
}
.item-header-small {
text-transform: uppercase;
a {
color: #999;
}
}
.list-item-details {
}
.item-image {
border-radius: 3px;
margin-right: 1em;
}
.item-information {
position: relative;
}
.item-desc {
position: absolute;
top: 40px;
}
}
}
.item-show {
.item-field {
margin-bottom: 1em;
span.item-field-heading {
min-width: 8em;
font-weight: bold;
font-size: 1.17em;
display: inline-block;
&::after {
content: ":";
}
}
.item-field-value {
display: inline;
}
}
}
.linked-item {
cursor: pointer;
}
|
Improve small screen home page | .page-content {
padding: 10px;
}
.page-center {
width: 800px;
margin: 0 auto;
}
| .page-content {
padding: 10px;
}
.page-center {
width: 800px;
margin: 0 auto;
}
@media only screen and (max-width: 800px) {
.page-center {
width: auto;
}
}
|
Make Wordmark float too, button twiddling | #umass_banner{
background-color: #881c1c;
max-width: 100%;
padding: 1.25em;
#links{
padding: 0 2em 0 0;
float: right;
a{
color: white;
font-size: 16px;
margin-right: 5px;
}
}
#search{
float: right;
#submit{
height: 1.75em;
width: 1.75em;
text-indent: -9999px;
background: #881c1c url('search.svg') 0 0 no-repeat;
}
}
}
#transportation_banner{
background: #eeeeee;
padding: 1.25em;
}
#footer{
background-color: black;
padding: 1.25em;
text-align: center;
.content{
color: silver;
a{
color: silver;
}
}
}
| #umass_banner{
background-color: #881c1c;
max-width: 100%;
padding: 1.25em;
#wordmark{
float: left;
}
#links{
padding: 0 2em 0 0;
float: right;
a{
color: white;
font-size: 16px;
margin-right: 5px;
}
}
#search{
float: right;
#submit{
height: 1.75em;
width: 1.75em;
text-indent: -9999px;
background: #881c1c url('search.svg') 0 0 no-repeat;
background-size: contain;
border: none;
cursor: pointer;
}
}
}
#transportation_banner{
background: #eeeeee;
padding: 1.25em;
}
#footer{
background-color: black;
padding: 1.25em;
text-align: center;
.content, a{
color: silver;
}
}
|
Refactor - point to bootstrap loaded by node vs bower | @import '../lib/bootstrap/scss/bootstrap.scss';
// Add in overrides/custom styling here
@import 'include/variables';
@import 'include/mixins';
@import 'include/base';
@import 'include/bc-devx';
@import 'include/cards';
@import 'include/labels';
@import 'include/nav';
@import 'include/navbar';
@import 'include/footer';
@import 'include/pages';
@import 'include/badges';
@import 'include/dropdowns';
@import 'include/profiles';
@import 'include/messages';
@import 'include/tables';
| @import '../../node_modules/bootstrap/scss/bootstrap.scss';
// Add in overrides/custom styling here
@import 'include/variables';
@import 'include/mixins';
@import 'include/base';
@import 'include/bc-devx';
@import 'include/cards';
@import 'include/labels';
@import 'include/nav';
@import 'include/navbar';
@import 'include/footer';
@import 'include/pages';
@import 'include/badges';
@import 'include/dropdowns';
@import 'include/profiles';
@import 'include/messages';
@import 'include/tables';
|
Add basic <p> and list spacing | body {
margin: 0;
padding: .5em 5%;
font-family: "jaf-facitweb", verdana, sans-serif;
font-size: 1.125em;
line-height: 1.5;
}
h1 {
margin-top: 0;
line-height: 1.2;
}
| body {
margin: 0;
padding: .5em 5%;
font-family: "jaf-facitweb", verdana, sans-serif;
font-size: 1.125em;
line-height: 1.5;
}
h1 {
margin-top: 0;
line-height: 1.2;
}
p,
li {
margin: 0 0 1em;
}
ul {
padding: 0;
list-style: none;
}
|
Add note about font filename renaming | /**
* @section Fonts
*
* You can add fonts by mixin:
* @include font-face($name, $file, $weight: normal, $style: normal);
* @include font-face('PTSans', 'PTSansRegular');
* @include font-face('PTSans', 'PTSansItalic', normal, italic);
* @include font-face('PTSans', 'PTSansBold', bold);
* PLEASE SET FILENAME TO .SVG <font id= !
*/
$Arial : Arial, 'Helvetica Neue', Helvetica, sans-serif;
$OpenSans: 'Open Sans', $Arial;
| /**
* @section Fonts
*
* You can add fonts by mixin:
* @include font-face($name, $file, $weight: normal, $style: normal);
* @include font-face('PTSans', 'PTSansRegular');
* @include font-face('PTSans', 'PTSansItalic', normal, italic);
* @include font-face('PTSans', 'PTSansBold', bold);
*
* PLEASE RENAME FONT FILENAME ($file) TO MATCH CONTENT OF "<font id=" IN .SVG-FONT FILE GENERATED BY FONT-SQUIRREL
* for correct font name after #hashtag in font-face rulse for svg: http://stackoverflow.com/questions/15422770/font-face-svg-not-working-properly-in-chrome#answer-21125630
*/
$Arial : Arial, 'Helvetica Neue', Helvetica, sans-serif;
$OpenSans: 'Open Sans', $Arial;
|
Remove listing margins from create form | /*doc
---
title: Listing
name: listing
category: Widgets
---
A Listing represents a list of elements that may be filtered and/or sorted.
It is generic because it can be used with very different kinds of elements.
Apart from the list of elements the listing optionally contains
a form for creating new elements. This form is then always visible.
```html_example
<div class="listing">
<form class="listing-create-form placeholder">
Create Form
</form>
<ol class="listing-elements">
<li class="listing-element placeholder">Element1</li>
<li class="listing-element placeholder">Element2</li>
</ol>
</div>
```
*/
.listing-elements {
margin: 0;
padding: 0;
list-style: none;
}
// starting animations
.listing-element {
&.ng-enter {
@include transition(all 3s);
background: greenyellow;
@include opacity(0.5);
// destination animations
&.ng-enter-active {
background: white;
@include opacity(1);
}
}
}
.listing-create-form {
background-color: $color-structure-surface;
padding: 0.5em;
margin-left: -0.5em;
margin-right: -0.5em;
margin-bottom: 2em;
}
| /*doc
---
title: Listing
name: listing
category: Widgets
---
A Listing represents a list of elements that may be filtered and/or sorted.
It is generic because it can be used with very different kinds of elements.
Apart from the list of elements the listing optionally contains
a form for creating new elements. This form is then always visible.
```html_example
<div class="listing">
<form class="listing-create-form placeholder">
Create Form
</form>
<ol class="listing-elements">
<li class="listing-element placeholder">Element1</li>
<li class="listing-element placeholder">Element2</li>
</ol>
</div>
```
*/
.listing-elements {
margin: 0;
padding: 0;
list-style: none;
}
// starting animations
.listing-element {
&.ng-enter {
@include transition(all 3s);
background: greenyellow;
@include opacity(0.5);
// destination animations
&.ng-enter-active {
background: white;
@include opacity(1);
}
}
}
.listing-create-form {
background-color: $color-structure-surface;
padding: 0.5em;
margin-bottom: 2em;
}
|
Fix margin/padding on alerts to make them full screen | .flash {
cursor: pointer;
.alert {
.container {
position: relative;
}
&.alert-success .full-width-container,
&.alert-success .fixed-flash-inner {
background: $dark-blue;
color: white;
}
&.alert-danger .full-width-container,
&.alert-danger .fixed-flash-inner {
background: $red;
color: white;
}
// regular flash message full-width-container, displayed full width
// almost on top of the page
.full-width-container {
margin-bottom: 10px;
padding: 5px 0 5px 10px;
}
// fixed positioned flash message container, displayed at the very top of the page
// as wide as the text, centered
.fixed-flash {
position: fixed;
top: 0; left: 0; right: 0;
text-align: center;
.fixed-flash-inner {
border-radius: 4px;
cursor: pointer;
display: inline-block;
padding: 5px 20px;
margin-top: 15px;
@include fadeInDown(0.6s);
p {
margin: 5px 0;
}
}
}
}
.close {
left: -20px;
position: absolute;
top: -3px;
}
}
| .flash {
cursor: pointer;
.alert {
.container {
position: relative;
}
&.alert-success .full-width-container,
&.alert-success .fixed-flash-inner {
background: $dark-blue;
color: white;
}
&.alert-danger .full-width-container,
&.alert-danger .fixed-flash-inner {
background: $red;
color: white;
}
// regular flash message full-width-container, displayed full width
// almost on top of the page
.full-width-container {
margin: 0 -10px 10px;
padding: 5px 10px 5px 35px;
}
// fixed positioned flash message container, displayed at the very top of the page
// as wide as the text, centered
.fixed-flash {
position: fixed;
top: 0; left: 0; right: 0;
text-align: center;
.fixed-flash-inner {
border-radius: 4px;
cursor: pointer;
display: inline-block;
padding: 5px 20px;
margin-top: 15px;
@include fadeInDown(0.6s);
p {
margin: 5px 0;
}
}
}
}
.close {
left: -20px;
position: absolute;
top: -3px;
}
}
|
Add tooltip file to compile | @import "../../Menu/menu.scss";
@import "../../SidebarLeft/sidebarLeft.scss";
@import "../../SearchLayer/searchLayer.scss";
| @import "../../Menu/menu.scss";
@import "../../SidebarLeft/sidebarLeft.scss";
@import "../../SearchLayer/searchLayer.scss";
@import "../../Tooltip/tooltip.scss";
|
Make colours default so they can be overruled. | // Each pattern comes with a mixin. They may also be included seperately
// in a project and applied on custom markup.
@import "mixins";
// Variable defaults
$body-font-family: 'Source Sans Pro', sans-serif;
$colour-base: #efefef;
$colour-primary: black;
$colour-header-elements: #666;
$colour-post: #e4f2f8;
$colour-alert: red;
$colour-workspace-tabs: #869EBF;
$colour-accent: #5d91ff;
$glyph-checkbox: \e808 !default;
$glyph-checkbox-active: \e809 !default;
$glyph-radio-button: \e807 !default;
$glyph-radio-button-active: \e806 !default;
// Individual scss files are imported for each Pattern. These files may
// also be imported seperately in a project, but always require the Patterns
// mixins
@import "components/avatar";
@import "components/auto-suggest";
@import "components/checklist";
@import "components/grid";
@import "components/form";
@import "components/injection";
@import "components/select"; | // Each pattern comes with a mixin. They may also be included seperately
// in a project and applied on custom markup.
@import "mixins";
// Variable defaults
$body-font-family: 'Source Sans Pro', sans-serif;
$colour-base: #efefef !default;
$colour-primary: black !default;
$colour-header-elements: #666 !default;
$colour-post: #e4f2f8 !default;
$colour-alert: red !default;
$colour-workspace-tabs: #869EBF !default;
$colour-accent: #5d91ff !default;
$glyph-checkbox: \e808 !default;
$glyph-checkbox-active: \e809 !default;
$glyph-radio-button: \e807 !default;
$glyph-radio-button-active: \e806 !default;
// Individual scss files are imported for each Pattern. These files may
// also be imported seperately in a project, but always require the Patterns
// mixins
@import "components/avatar";
@import "components/auto-suggest";
@import "components/checklist";
@import "components/grid";
@import "components/form";
@import "components/injection";
@import "components/select"; |
Reduce padding-top of the post. | .site-description {
float: right;
}
@media (max-width: 767px) {
.site-description {
float: none;
}
}
| .site-description {
float: right;
}
.post.p2 {
padding-top: 0.5em;
}
@media (max-width: 767px) {
.site-description {
float: none;
}
}
|
Remove borders from header and footer | /**
* Site header
*/
.site-header {
border-top: 5px solid $grey-color-dark;
border-bottom: 1px solid $grey-color-light;
min-height: 56px;
// Positioning context for the mobile navigation icon
position: relative;
}
.site-title {
font-size: 26px;
font-weight: 300;
line-height: 56px;
letter-spacing: -1px;
margin-bottom: 0;
float: left;
&,
&:visited {
color: $grey-color-dark;
}
}
/**
* Site footer
*/
.site-footer {
border-top: 1px solid $grey-color-light;
padding: $spacing-unit 0;
}
/**
* Page content
*/
.page-content {
padding: $spacing-unit 0;
}
.page-heading {
font-size: 20px;
}
| /**
* Site header
*/
.site-header {
margin-top: $spacing-unit * 2;
}
.site-title {
font-size: 26px;
font-weight: 300;
line-height: 56px;
letter-spacing: -1px;
margin-bottom: 0;
float: left;
&,
&:visited {
color: $grey-color-dark;
}
}
/**
* Site footer
*/
.site-footer {
padding: $spacing-unit 0;
}
/**
* Page content
*/
.page-content {
padding: $spacing-unit 0;
}
.page-heading {
font-size: 20px;
}
|
Add min-width for connect form | /*!
* Copyright (C) 2018 Ľuboš Kozmon
*
* This program 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, either version 3 of the
* License, or (at your option) any later version.
*
* This program 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/>.
*/
div.zoo-header {
padding: 30px 0;
}
mat-card {
padding: 10px;
max-width: 30%;
mat-form-field, div {
width: 100%;
}
button {
margin-top: 15px;
}
}
| /*!
* Copyright (C) 2018 Ľuboš Kozmon
*
* This program 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, either version 3 of the
* License, or (at your option) any later version.
*
* This program 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/>.
*/
div.zoo-header {
padding: 30px 0;
}
mat-card {
padding: 10px;
min-width: 410px;
max-width: 30%;
mat-form-field, div {
width: 100%;
}
button {
margin-top: 15px;
}
}
|
Update padding-left to 20px as per Nad's iteration | /*
Copyright 2020 The Matrix.org Foundation C.I.C.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
.mx_RedactedBody {
white-space: pre-wrap;
color: $muted-fg-color;
vertical-align: middle;
padding-left: 16px;
position: relative;
&::before {
height: 14px;
width: 14px;
background-color: $muted-fg-color;
mask-image: url('$(res)/img/feather-customised/trash (custom).svg');
mask-repeat: no-repeat;
mask-position: center;
mask-size: contain;
content: '';
position: absolute;
top: 2px;
left: 0;
}
}
| /*
Copyright 2020 The Matrix.org Foundation C.I.C.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
.mx_RedactedBody {
white-space: pre-wrap;
color: $muted-fg-color;
vertical-align: middle;
padding-left: 20px;
position: relative;
&::before {
height: 14px;
width: 14px;
background-color: $muted-fg-color;
mask-image: url('$(res)/img/feather-customised/trash (custom).svg');
mask-repeat: no-repeat;
mask-position: center;
mask-size: contain;
content: '';
position: absolute;
top: 2px;
left: 0;
}
}
|
Add shadow to inverse section | //
// Portfolio Style
//
nav li {
text-transform: uppercase;
font-weight: bold;
}
h2 {
margin-bottom: 4rem;
}
#about {
margin-top: 6em;
margin-bottom: 6em;
h1 {
width: 100%;
}
.valign-wrapper {
height: 8.4rem;
}
}
.vspace-small {
padding-top: 0.5em;
}
.extra-margin {
margin: 16px;
}
.large-icon {
font-size: 7rem;
}
.card-action a {
color: #455A64 !important;
}
.section {
margin-top: 4rem;
margin-bottom: 4rem;
}
.section-inverse {
padding-top: 8rem;
padding-bottom: 8rem;
}
.page-footer .row {
padding-top: 2rem;
padding-bottom: 2rem;
}
.quote {
font-size: 3.5rem;
font-style: italic;
}
.typed-cursor {
animation: blink 1.0s infinite;
}
@keyframes blink{
0% { opacity: 1.0; }
50% { opacity: 0.1; }
100% { opacity: 1.0; }
}
| //
// Portfolio Style
//
nav li {
text-transform: uppercase;
font-weight: bold;
}
h2 {
margin-bottom: 4rem;
}
#about {
margin-top: 6em;
margin-bottom: 6em;
h1 {
width: 100%;
}
.valign-wrapper {
height: 8.4rem;
}
}
.vspace-small {
padding-top: 0.5em;
}
.extra-margin {
margin: 16px;
}
.large-icon {
font-size: 7rem;
}
.card-action a {
color: #455A64 !important;
}
.section {
margin-top: 4rem;
margin-bottom: 4rem;
}
.section-inverse {
padding-top: 8rem;
padding-bottom: 8rem;
text-shadow: 0 0 8px #263238;
}
.page-footer .row {
padding-top: 2rem;
padding-bottom: 2rem;
}
.quote {
font-size: 3.5rem;
font-style: italic;
}
.typed-cursor {
animation: blink 1.0s infinite;
}
@keyframes blink{
0% { opacity: 1.0; }
50% { opacity: 0.1; }
100% { opacity: 1.0; }
}
|
Add border radius to audio-progress | .audio-comment-container {
button:focus {
outline: 0;
}
button.play-button {
border: none;
background-image: none;
background-color: transparent;
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
i {
font-size: 25px;
margin-left: -5px;
}
}
display: flex;
vertical-align: middle;
padding: 0%;
width: 100%;
i {
color: white;
}
p#currentTime {
float: right;
white-space: nowrap;
font-size: 12px;
transform: translateY(16%);
padding-left: 10px;
}
.progress-bar-container {
&:hover {
cursor: pointer;
}
background-color: white;
width: 100%;
height: 8px;
align-self: center;
margin-bottom: 0px;
border-radius: 0px;
.progress {
box-shadow: 0px;
}
}
/deep/ .mat-progress-bar-fill::after {
background-color: white;
}
/deep/ .mat-progress-bar-buffer {
background: #2650c3;
}
/deep/
.mat-progress-bar-primary.mat-progress-bar-fill.mat-progress-bar-element {
pointer-events: none;
}
#progressContainer {
width: 100%;
background-color: red;
}
}
| .audio-comment-container {
button:focus {
outline: 0;
}
button.play-button {
border: none;
background-image: none;
background-color: transparent;
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
i {
font-size: 25px;
margin-left: -5px;
}
}
display: flex;
vertical-align: middle;
padding: 0%;
width: 100%;
i {
color: white;
}
p#currentTime {
float: right;
white-space: nowrap;
font-size: 12px;
transform: translateY(16%);
padding-left: 10px;
}
.progress-bar-container {
&:hover {
cursor: pointer;
}
background-color: white;
width: 100%;
height: 8px;
align-self: center;
margin-bottom: 0px;
border-radius: 10px;
.progress {
box-shadow: 0px;
}
}
/deep/ .mat-progress-bar-fill::after {
background-color: white;
}
/deep/ .mat-progress-bar-buffer {
background: #2650c3;
}
/deep/
.mat-progress-bar-primary.mat-progress-bar-fill.mat-progress-bar-element {
pointer-events: none;
}
#progressContainer {
width: 100%;
background-color: red;
}
}
|
Move list spacing properties to _spacing | // BLOCKS ///////////////////////////////////////////////////////////////////
//
// Styles for basic block tags, including pre, lists, and blockquote.
//
aside,
blockquote,
pre {
}
pre {
line-height: 1.2;
white-space: -moz-pre-wrap;
white-space: -pre-wrap;
white-space: -o-pre-wrap;
white-space: pre-wrap;
word-wrap: break-word;
}
ol,
ul {
line-height: 1.4;
margin-bottom: 10px;
margin-left: 0;
padding-left: 20px;
li {
margin-bottom: 5px;
position: relative;
p {
margin-bottom: 5px;
}
p:last-child {
margin-bottom: 0;
}
}
li:last-child {
margin-bottom: 0;
}
}
| // BLOCKS ///////////////////////////////////////////////////////////////////
//
// Styles for basic block tags, including pre, lists, and blockquote.
//
aside,
blockquote,
pre {
}
pre {
white-space: -moz-pre-wrap;
white-space: -pre-wrap;
white-space: -o-pre-wrap;
white-space: pre-wrap;
word-wrap: break-word;
}
ol,
ul {
margin-left: 0;
padding-left: 20px;
}
|
Add missing textarea styles for the feedback component | $govuk-new-link-styles: true;
@import "govuk_publishing_components/govuk_frontend_support";
@import "govuk_publishing_components/component_support";
@import "govuk_publishing_components/components/action-link";
@import "govuk_publishing_components/components/button";
@import "govuk_publishing_components/components/cookie-banner";
@import "govuk_publishing_components/components/feedback";
@import "govuk_publishing_components/components/input";
@import "govuk_publishing_components/components/layout-footer";
@import "govuk_publishing_components/components/layout-for-public";
@import "govuk_publishing_components/components/layout-header";
@import "govuk_publishing_components/components/layout-super-navigation-header";
@import "govuk_publishing_components/components/search";
@import "govuk_publishing_components/components/skip-link";
@import "components/emergency-banner";
@import "components/global-bar";
@import "components/survey";
@import "helpers/draft";
| $govuk-new-link-styles: true;
@import "govuk_publishing_components/govuk_frontend_support";
@import "govuk_publishing_components/component_support";
@import "govuk_publishing_components/components/action-link";
@import "govuk_publishing_components/components/button";
@import "govuk_publishing_components/components/cookie-banner";
@import "govuk_publishing_components/components/feedback";
@import "govuk_publishing_components/components/input";
@import "govuk_publishing_components/components/layout-footer";
@import "govuk_publishing_components/components/layout-for-public";
@import "govuk_publishing_components/components/layout-header";
@import "govuk_publishing_components/components/layout-super-navigation-header";
@import "govuk_publishing_components/components/search";
@import "govuk_publishing_components/components/skip-link";
@import "govuk_publishing_components/components/textarea";
@import "components/emergency-banner";
@import "components/global-bar";
@import "components/survey";
@import "helpers/draft";
|
Update tour buttons to meet style guidelines | @import 'color';
$joyride-color: $brand-orange;
$joyride-button-bg-color: $brand-btn;
$joyride-button-color: $white !important;
$joyride-tooltip-width: (15em, 20em, 20em);
@import '../../node_modules/react-joyride/lib/react-joyride';
#tour {
position: absolute;
display: inline;
bottom: 1em;
right: 1em;
}
.tour-first-pop-up {
.joyride-tooltip {
position: fixed !important;
}
}
.tour-custom-buttons {
text-align: right;
margin-top: 1em;
button: {
margin-left: 0.1em;
}
}
| @import 'color';
$joyride-color: $brand-orange;
$joyride-button-bg-color: $brand-btn;
$joyride-button-color: $brand-gray !important;
$joyride-tooltip-width: (15em, 20em, 20em);
@import '../../node_modules/react-joyride/lib/react-joyride';
#tour {
position: absolute;
display: inline;
bottom: 1em;
right: 1em;
}
.tour-first-pop-up {
.joyride-tooltip {
position: fixed !important;
}
}
.tour-custom-buttons {
text-align: right;
margin-top: 1em;
button: {
margin-left: 0.1em;
}
}
.joyride-tooltip__button {
padding: 10px 25px;
&--primary {
color: $white;
background-color: $brand-btn;
}
&--secondary {
color: $black;
background-color: $brand-gray;
}
&--secondary:hover {
background-color: #dedede;
}
} |
Set padding relative to root fontsize. Make imported files' extensions explicit. | @import 'breadcrumbs-icons';
@import 'bower_components/vui-link/link';
@import 'bower_components/vui-typography/small-text.scss';
@mixin vui-breadcrumbs() {
@include vui-typography-small-text;
padding: 0;
margin-top: 0;
margin-bottom: 0;
list-style: none outside none;
& > li,
& > div,
& > span {
background-color: transparent;
border-width: 0;
display: inline-block;
list-style: none outside none;
&:last-child {
color: inherit;
&:after {
display: none;
[dir='rtl'] & {
display: none;
}
}
}
&:after {
display: inline-block;
content: $vui-separator;
height: 1rem;
padding-left: 10px;
padding-right: 12px;
vertical-align: middle;
[dir='rtl'] & {
content: $vui-separator-rtl;
}
}
& > a {
@include vui-link;
}
}
}
| @import 'breadcrumbs-icons.scss';
@import 'bower_components/vui-link/link.scss';
@import 'bower_components/vui-typography/small-text.scss';
@mixin vui-breadcrumbs() {
@include vui-typography-small-text;
padding: 0;
margin-top: 0;
margin-bottom: 0;
list-style: none outside none;
& > li,
& > div,
& > span {
background-color: transparent;
border-width: 0;
display: inline-block;
list-style: none outside none;
&:last-child {
color: inherit;
&:after {
display: none;
[dir='rtl'] & {
display: none;
}
}
}
&:after {
content: $vui-separator;
display: inline-block;
height: 1rem;
padding-left: .5rem;
padding-right: .5rem;
vertical-align: middle;
[dir='rtl'] & {
content: $vui-separator-rtl;
}
}
& > a {
@include vui-link;
}
}
}
|
Remove over-specific float selector for calendar font size | div.bootstrap-datetimepicker-widget.dropdown-menu.usetwentyfour.float-right ul.list-unstyled li.show {
font-size: 1rem;
}
div.week-view .bootstrap-datetimepicker-widget table tbody tr:hover {
background-color: #007bff;
color: #fff;
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
}
div.week-view .bootstrap-datetimepicker-widget table tbody td:hover {
background-color: #007bff;
color: #fff;
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
}
| div.bootstrap-datetimepicker-widget.dropdown-menu.usetwentyfour ul.list-unstyled li.show {
font-size: 1rem;
}
div.week-view .bootstrap-datetimepicker-widget table tbody tr:hover {
background-color: #007bff;
color: #fff;
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
}
div.week-view .bootstrap-datetimepicker-widget table tbody td:hover {
background-color: #007bff;
color: #fff;
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
}
|
Remove page margin for print layout | .u-visible-on-print-block,
.u-visible-on-print-inline {
display: none !important;
}
@media print {
.u-hide-on-print {
display: none !important;
}
.u-visible-on-print-block {
display: block !important;
}
.u-visible-on-print-inline {
display: inline !important;
}
}
@page {
margin: 0.5in;
}
| .u-visible-on-print-block,
.u-visible-on-print-inline {
display: none !important;
}
@media print {
.u-hide-on-print {
display: none !important;
}
.u-visible-on-print-block {
display: block !important;
}
.u-visible-on-print-inline {
display: inline !important;
}
}
@page {
margin: 0;
}
|
Fix blue button hover wierdness. | .btn {
@include button-size($padding-base-vertical, $padding-base-horizontal * 2, $font-size-base, $line-height-base, 0);
}
.btn-lg {
@include button-size($padding-large-vertical, $padding-large-horizontal * 2, $font-size-large, $line-height-large, 0);
}
.btn-sm {
@include button-size($padding-small-vertical, $padding-small-horizontal * 2, $font-size-small, $line-height-small, 0);
}
.btn-xs {
@include button-size($padding-xs-vertical, $padding-xs-horizontal * 2, $font-size-small, $line-height-small, 0);
}
.btn-blue {
background-color: $blue;
color: white;
&:hover {
background-color: lighten($blue, 5%);
}
}
| .btn {
@include button-size($padding-base-vertical, $padding-base-horizontal * 2, $font-size-base, $line-height-base, 0);
}
.btn-lg {
@include button-size($padding-large-vertical, $padding-large-horizontal * 2, $font-size-large, $line-height-large, 0);
}
.btn-sm {
@include button-size($padding-small-vertical, $padding-small-horizontal * 2, $font-size-small, $line-height-small, 0);
}
.btn-xs {
@include button-size($padding-xs-vertical, $padding-xs-horizontal * 2, $font-size-small, $line-height-small, 0);
}
.btn-blue {
background-color: $blue;
color: $white;
&:hover {
background-color: lighten($blue, 5%);
color: $white;
}
}
|
Add default font colour to the body. | body {
@extend %type;
@extend %font-smoothing;
@extend %prevent-text-zooming;
@include legibility(normal);
@include font-features(liga, kern);
}
// Currently we only support H1 - H3
//
// Styleguide headings
h1 {
@extend %heading-large;
}
h2 {
@extend %heading-medium;
}
h3 {
@extend %heading-small;
}
h4 {
@extend %heading-extra-small;
}
// Our default font-size is 16px, with a line-height of 1.4(?). This is applied to the <body> and all paragraphs.
//
// Styleguide p
p {
@extend %paragraph;
}
b {
font-weight: 700;
}
// The default style for numbered lists. The padding offsets the bullets by 25px;
//
// Styleguide ol
ol {
padding: 0 0 0 25px;
}
// The default style for unordered lists. The padding offsets the bullets by 25px.
//
// Styleguide ul
ul {
margin: $baseline-unit*2 0 $baseline-unit*4 0;
padding: 0 0 0 25px;
}
| body {
@extend %type;
@extend %font-smoothing;
@extend %prevent-text-zooming;
@include legibility(normal);
@include font-features(liga, kern);
color: $color-text-default;
}
// Currently we only support H1 - H3
//
// Styleguide headings
h1 {
@extend %heading-large;
}
h2 {
@extend %heading-medium;
}
h3 {
@extend %heading-small;
}
h4 {
@extend %heading-extra-small;
}
// Our default font-size is 16px, with a line-height of 1.4(?). This is applied to the <body> and all paragraphs.
//
// Styleguide p
p {
@extend %paragraph;
}
b {
font-weight: 700;
}
// The default style for numbered lists. The padding offsets the bullets by 25px;
//
// Styleguide ol
ol {
padding: 0 0 0 25px;
}
// The default style for unordered lists. The padding offsets the bullets by 25px.
//
// Styleguide ul
ul {
margin: $baseline-unit*2 0 $baseline-unit*4 0;
padding: 0 0 0 25px;
}
|
Remove layout information from logo. | .mas-logo {
height: 36px;
width: 170px;
margin-left: $baseline-unit;
background: transparent image_url('mas-logo.png') 0 0 no-repeat;
@include respond-to($mq-m) {
width: 216px;
}
@if $responsive == true {
background: transparent image_url('mas-logo.svg') 0 0 no-repeat;
background-size: contain;
}
}
.mas-logo-small {
width: 54px;
height: 30px;
display: block;
margin: $baseline-unit*2 0 0 0;
background: transparent image_url('mas-logo-small.png') 0 0 no-repeat;
@if $responsive == true {
background: transparent image_url('mas-logo-small.svg') 0 0 no-repeat;
background-size: contain;
}
}
| .mas-logo {
height: 36px;
width: 170px;
background: transparent image_url('mas-logo.png') 0 0 no-repeat;
@include respond-to($mq-m) {
width: 216px;
}
@if $responsive == true {
background: transparent image_url('mas-logo.svg') 0 0 no-repeat;
background-size: contain;
}
}
.mas-logo-small {
width: 54px;
height: 30px;
display: block;
margin: $baseline-unit*2 0 0 0;
background: transparent image_url('mas-logo-small.png') 0 0 no-repeat;
@if $responsive == true {
background: transparent image_url('mas-logo-small.svg') 0 0 no-repeat;
background-size: contain;
}
}
|
Fix highlight CSS for navbar | .navbar {
padding-top: 0;
padding-bottom: 0;
.navbar-brand {
padding-left: 0.5rem;
padding-right: 0.5rem;
}
.nav-link:hover,
.navbar-brand:hover {
background-color: lighten($brand-colour, 10%);
}
.navbar-logo {
height: 2rem;
}
}
.navbar-dark .navbar-nav .nav-link {
color: rgba(255, 255, 255, .75);
}
#primary-navbar {
background-color: $brand-colour !important;
}
#navbarPrimaryContent .dtta-navbar:hover,
#navbarPrimaryContent .dtta-navbar.active {
background-color: $dtta-brand-colour-dark !important;
}
// DTTA
#dtta-navbar {
background-color: $dtta-brand-colour-dark !important;
.nav-link:hover {
background-color: lighten($dtta-brand-colour-dark, 10%);
}
.dropdown-item:hover {
background-color: lighten($dtta-brand-colour-dark, 10%);
color: $white;
}
}
| .navbar {
padding-top: 0;
padding-bottom: 0;
.navbar-brand {
padding-left: 0.5rem;
padding-right: 0.5rem;
}
.nav-link:hover,
.navbar-brand:hover {
background-color: lighten($brand-colour, 10%);
}
.navbar-logo {
height: 2rem;
}
}
.navbar-dark .navbar-nav .nav-link {
color: rgba(255, 255, 255, .75);
}
#primary-navbar {
background-color: $brand-colour !important;
}
#navbarPrimaryContent .dtta-navbar .nav-link:hover,
#navbarPrimaryContent .dtta-navbar.active {
background-color: $dtta-brand-colour-dark !important;
}
// DTTA
#dtta-navbar {
background-color: $dtta-brand-colour-dark !important;
.nav-link:hover,
.navbar-brand:hover {
background-color: lighten($dtta-brand-colour-dark, 10%);
}
.dropdown-item:hover {
background-color: lighten($dtta-brand-colour-dark, 10%);
color: $white;
}
}
|
Tweak transform of youtube image on hover | .youtube-grid {
.thumbnail-container {
padding: 15px;
transition: 350ms;
.thumbnail {
box-shadow: 0 3px 6px rgba(0, 0, 0, .16), 0 3px 6px rgba(0, 0, 0, .23);
}
&:hover {
transform: scale(1.1);
}
}
}
.view-more-link {
font-size: 1.5rem;
}
| .youtube-grid {
.thumbnail-container {
padding: 15px;
transition: 350ms;
.thumbnail {
box-shadow: 0 3px 6px rgba(0, 0, 0, .16), 0 3px 6px rgba(0, 0, 0, .23);
}
&:hover {
transform: scale(1.08);
}
}
}
.view-more-link {
font-size: 1.5rem;
}
|
Update style for user vote submit buttons | // Place all the styles related to the Items controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
main {
padding-bottom: 15%;
}
.items-vote-on {
@include block-grid(
// This controls how many elements will be on each row of the block grid. Set this to whatever number you need, up to the max allowed in the variable.
// Available options: 1-12 by default, and false.
$per-row: 2,
// This controls how much space is between each item in the block grid.
// Use a variable or any pixel or em values.
$spacing: $block-grid-default-spacing,
// This controls whether or not base styles come through, set to false to leave out.
$base-style: true
);
}
.vote-buttons {
position: fixed;
bottom: 0;
background: white;
box-shadow: 0px -1px 1px black;
width: 100%
}
.vote-form {
@extend .large-4;
float:left;
}
| // Place all the styles related to the Items controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
main {
padding-bottom: 10%;
}
li {
list-style-type: none;
}
.items-vote-on {
@include block-grid(
// This controls how many elements will be on each row of the block grid. Set this to whatever number you need, up to the max allowed in the variable.
// Available options: 1-12 by default, and false.
$per-row: 2,
// This controls how much space is between each item in the block grid.
// Use a variable or any pixel or em values.
$spacing: $block-grid-default-spacing,
// This controls whether or not base styles come through, set to false to leave out.
$base-style: true
);
}
.vote-buttons {
position: fixed;
bottom: 0;
background: white;
width: 100%
}
.vote-form {
@extend .large-4;
float:left;
}
.yes-vote {
button {
background-color: #00CC66;
}
}
.no-vote {
button {
background-color: #FF6B6B;
}
}
.skip-vote {
button {
background-color: gray;
}
} |
Change spacing to margin in contact box | .aside-box {
@include media-query($mq-sm) {
flex-basis: 40%;
}
&__content {
background: $secondary-color;
padding: .3em 1em;
border-radius: .2em;
}
&__links {
margin: 0;
list-style: none;
}
&__link {
white-space: nowrap;
display: block;
padding: $quater-spacing 0;
@include media-query($mq-md) {
display: inline;
padding: 0;
}
.fa {
width: 1.5em;
text-align: center;
}
@media print {
&:visited,
&:hover {
color: $brand-color;
}
}
}
&__link-desc {
&[data-print-value] {
@media print {
font-size: 0;
&:before {
content: attr(data-print-value);
font-size: $base-font-size;
}
}
}
}
}
| .aside-box {
@include media-query($mq-sm) {
flex-basis: 40%;
}
&__content {
background: $secondary-color;
padding: .3em 1em;
border-radius: .2em;
}
&__links {
margin: 0;
list-style: none;
}
&__link {
white-space: nowrap;
display: block;
margin: $quater-spacing 0;
@include media-query($mq-md) {
display: inline;
margin: 0;
}
.fa {
width: 1.5em;
text-align: center;
}
@media print {
&:visited,
&:hover {
color: $brand-color;
}
}
}
&__link-desc {
&[data-print-value] {
@media print {
font-size: 0;
&:before {
content: attr(data-print-value);
font-size: $base-font-size;
}
}
}
}
}
|
Change project teaser card bg color and margins | .project-teaser {
min-width:275px;
width:25%;
padding-bottom: 20px;
.title {
font-weight:bold;
font-size:1.5em;
}
.description {
padding:10px;
}
}
| .project-teaser {
background-color: $nav-color;
margin-right:10px;
.title {
font-weight:bold;
font-size:1.5em;
}
.description {
padding:10px;
}
}
|
Tweak table font size & borders | /* ==========================================================================
Tabular elements
========================================================================== */
/* Table placholder */
%table {
@extend %blocks;
@include adjust-font-size-to ($s);
border-collapse: collapse;
border-spacing: 0;
td, th {
text-align: left;
padding: rhythm(1) rhythm(2);
vertical-align: top;
border-bottom: 1px solid $border-color;
border-left: 1px dotted $border-color;
&:first-child {
border-left: none;
}
}
th {
border-top: 1px solid $border-color;
}
th, tfoot td {
font-weight: 700;
background: $gray-e;
}
caption {
@include adjust-font-size-to ($xs, 4, $s);
caption-side: bottom;
color: $gray-9;
text-align: right;
margin: rhythm(2) 0;
}
}
/* This is commented out in favor of extending .innerbox table */
// table { @extend %table; }
/* Remove unwanted table stylings placeholder */
%undo-table {
// @include adjust-font-size-to ($m, 4, $s);
} | /* ==========================================================================
Tabular elements
========================================================================== */
/* Table placholder */
%table {
@extend %blocks;
// @include adjust-font-size-to ($s);
border-collapse: collapse;
border-spacing: 0;
border: 1px solid $border-color;
td, th {
text-align: left;
padding: rhythm(1) rhythm(2);
vertical-align: top;
border: 1px solid $border-color;
// border-left: 1px dotted $border-color;
border-style: solid none solid dotted;
&:first-child {
border-left: none;
}
}
th {
// border-top: 1px solid $border-color;
}
th, tfoot td {
font-weight: 700;
background: $gray-e;
}
caption {
@include adjust-font-size-to ($xs, 4, $s);
caption-side: bottom;
color: $gray-9;
text-align: right;
margin: rhythm(2) 0;
}
}
/* This is commented out in favor of extending .innerbox table */
// table { @extend %table; }
/* Remove unwanted table stylings placeholder */
%undo-table {
// @include adjust-font-size-to ($m, 4, $s);
} |
Fix listcart not showing up on mobile devices | $break-small: 30em;
.list-cart {
margin: 0.2em 0.5em;
min-width: 6em;
&>.list {
max-width: 25em;
max-height: 20em;
margin-bottom: 0.1em;
overflow: auto;
// Hide on mobile devices; it's too big.
@media screen and (max-width: $break-small) {
display: none;
}
.tip {
padding: 0.3em 0;
font-size: 0.9em;
white-space: normal;
min-width: 15em;
color: #333;
text-align: center;
}
}
ul {
text-align: right;
}
&.editor {
padding: 0.6em 0.8em;
border: 1px solid #ccc;
border-radius: 0.3em;
text-align: left;
box-shadow: 0 1px 2px -1px rgba(0, 0, 0, 0.5);
margin: 1em 0;
&>.list {
max-width: 100%;
}
}
}
| $break-small: 30em;
.list-cart {
margin: 0.2em 0.5em;
min-width: 6em;
&>.list {
max-width: 25em;
max-height: 20em;
margin-bottom: 0.1em;
overflow: auto;
// Hide on mobile devices; it's too big.
@media screen and (max-width: $break-small) {
display: none;
}
.tip {
padding: 0.3em 0;
font-size: 0.9em;
white-space: normal;
min-width: 15em;
color: #333;
text-align: center;
}
}
ul {
text-align: right;
}
&.editor {
padding: 0.6em 0.8em;
border: 1px solid #ccc;
border-radius: 0.3em;
text-align: left;
box-shadow: 0 1px 2px -1px rgba(0, 0, 0, 0.5);
margin: 1em 0;
&>.list {
max-width: 100%;
display: block;
}
}
}
|
Use Lato font-family for popup name | .unit-popup {
.leaflet-popup-content-wrapper {
border-radius: 0;
padding: 0 0 $gap/2 0;
.leaflet-popup-content {
padding: 0;
margin: 0;
}
}
&__content {
div {
padding: $gap/2 $gap;
}
&__status {
background: $status-unknown;
color: $ui-text;
text-transform: uppercase;
font-size: 0.8em;
&--good {
@extend .unit-popup__content__status;
background: $status-ok;
}
&--satisfactory {
@extend .unit-popup__content__status;
background: $status-average;
}
&--unusable {
@extend .unit-popup__content__status;
background: $status-bad;
}
}
&__name {
padding: $gap;
margin: 0;
}
}
}
| .unit-popup {
.leaflet-popup-content-wrapper {
border-radius: 0;
padding: 0 0 $gap/2 0;
.leaflet-popup-content {
padding: 0;
margin: 0;
}
}
&__content {
div {
padding: $gap/2 $gap;
}
&__status {
background: $status-unknown;
color: $ui-text;
text-transform: uppercase;
font-size: 0.8em;
&--good {
@extend .unit-popup__content__status;
background: $status-ok;
}
&--satisfactory {
@extend .unit-popup__content__status;
background: $status-average;
}
&--unusable {
@extend .unit-popup__content__status;
background: $status-bad;
}
}
&__name {
padding: $gap;
margin: 0;
font-family: 'Lato', sans-serif;
}
}
}
|
Fix positioning bug with PickedListItem remove button. |
.pickedListItem {
@include listItem;
display: flex;
align-items: center;
&:last-child {
border-bottom: 0;
}
}
.pickedListItem__label {
flex: 1 1 auto;
}
/**
* 1. Align items horizontally to the right.
*/
.pickedListItem__removeButton {
$closeButtonSize: 10px;
display: flex; /* 1 */
justify-content: flex-end; /* 1 */
flex: 0 0 auto;
width: $closeButtonSize;
height: $closeButtonSize;
color: #517582;
cursor: pointer;
&:before,
&:after {
content: '';
width: 2px;
height: $closeButtonSize;
background-color: #517582;
position: absolute;
margin-left: -$closeButtonSize / 2;
}
&:before {
transform: rotate(45deg);
}
&:after {
transform: rotate(-45deg);
}
&:hover {
opacity: 1;
}
}
.pickedListItemIcon {
$iconSize: 13px;
width: $iconSize;
height: $iconSize;
margin-right: 4px;
}
|
.pickedListItem {
@include listItem;
display: flex;
align-items: center;
&:last-child {
border-bottom: 0;
}
}
.pickedListItem__label {
flex: 1 1 auto;
}
/**
* 1. Align items horizontally to the right.
* 2. Position remove button icon absolutely.
*/
.pickedListItem__removeButton {
$closeButtonSize: 10px;
display: flex; /* 1 */
justify-content: flex-end; /* 1 */
flex: 0 0 auto;
position: relative; /* 2 */
width: $closeButtonSize;
height: $closeButtonSize;
color: #517582;
cursor: pointer;
&:before,
&:after {
content: '';
width: 2px;
height: $closeButtonSize;
background-color: #517582;
position: absolute;
margin-left: -$closeButtonSize / 2;
}
&:before {
transform: rotate(45deg);
}
&:after {
transform: rotate(-45deg);
}
&:hover {
opacity: 1;
}
}
.pickedListItemIcon {
$iconSize: 13px;
width: $iconSize;
height: $iconSize;
margin-right: 4px;
}
|
Add min width on images | // Common style for article (page / post)
article {
background-color: $content-bg;
color: $content-fg;
border: 1px solid $border-color;
border-radius: 2px;
width: 100%;
margin: 10px auto;
padding: 10px;
// shortcut to be able to use <pre> instead of <pre><code>
pre {
@extend code;
white-space: pre;
padding: 1rem 1.5rem;
}
.entry-content {
@extend %clearfix;
}
.by, .author, .tags-title, .footer-category {
display: none;
}
.category {
@extend .fa, .fa-folder-open;
font-weight: bold;
}
.tags {
@extend .fa, .fa-tag;
}
.entry-time {
@extend .fa, .fa-calendar-o;
}
.entry-meta, .article-footer {
color: $meta-gray;
}
ul, ol {
// add some padding, otherwise the list decoration won't show
padding-left: 2em;
}
} | // Common style for article (page / post)
article {
background-color: $content-bg;
color: $content-fg;
border: 1px solid $border-color;
border-radius: 2px;
width: 100%;
margin: 10px auto;
padding: 10px;
// shortcut to be able to use <pre> instead of <pre><code>
pre {
@extend code;
white-space: pre;
padding: 1rem 1.5rem;
}
.entry-content {
@extend %clearfix;
img {
max-width: 100%;
}
}
.by, .author, .tags-title, .footer-category {
display: none;
}
.category {
@extend .fa, .fa-folder-open;
font-weight: bold;
}
.tags {
@extend .fa, .fa-tag;
}
.entry-time {
@extend .fa, .fa-calendar-o;
}
.entry-meta, .article-footer {
color: $meta-gray;
}
ul, ol {
// add some padding, otherwise the list decoration won't show
padding-left: 2em;
}
}
|
Document SCSS namespacing with a comment. | .guide {
@import "scss-modules/header";
@import "scss-modules/nav1";
}
| // Declare the namespace, and import modules into the namespace
.guide {
@import "scss-modules/header";
@import "scss-modules/nav1";
}
|
Add `border--left` to make a vertical divider | /*doc
---
title: Borders
name: borderMod
category: Modifier Classes
---
Sets border properties on element
Class | Description
----------------------- | --------------------------------
`.border--top` | sets a standard top border on the element
`.border--none` | removes all borders from element
`.bordered` | sets a standard top border AND top padding
*/
@include _modifier(border, top) {
@include standardBorder();
}
@include _modifier(border, none) {
border-width: 0 !important;
}
%bordered,
.bordered {
@extend %border--top;
padding-top: $space;
}
| /*doc
---
title: Borders
name: borderMod
category: Modifier Classes
---
Sets border properties on element
Class | Description
----------------------- | --------------------------------
`.border--top` | sets a standard top border on the element
`.border--left` | sets a standard left border on the element
`.border--none` | removes all borders from element
`.bordered` | sets a standard top border AND top padding
*/
@include _modifier(border, top) {
@include standardBorder();
}
@include _modifier(border, left) {
@include standardBorder('left');
}
@include _modifier(border, none) {
border-width: 0 !important;
}
%bordered,
.bordered {
@extend %border--top;
padding-top: $space;
}
|
Support new `glyph-accent` color class for buttons | @include glyph-color('danger', $danger-color);
@include glyph-color('success', $success-color);
.x-btn {
}
.x-btn-default-toolbar-medium {
border-bottom-color: #d5d5d5;
&.x-btn-over {
border-bottom-color: #ccc;
}
}
.x-btn-icon-left.x-btn-button-default-medium > .x-btn-icon-el-default-medium,
.x-btn-icon-left.x-btn-button-default-toolbar-medium > .x-btn-icon-el-default-toolbar-medium {
margin-left: 4px;
margin-right: -2px;
} | @include glyph-color('danger', $danger-color);
@include glyph-color('success', $success-color);
@include glyph-color('accent', $accent-color);
.x-btn {
}
.x-btn-default-toolbar-medium {
border-bottom-color: #d5d5d5;
&.x-btn-over {
border-bottom-color: #ccc;
}
}
.x-btn-icon-left.x-btn-button-default-medium > .x-btn-icon-el-default-medium,
.x-btn-icon-left.x-btn-button-default-toolbar-medium > .x-btn-icon-el-default-toolbar-medium {
margin-left: 4px;
margin-right: -2px;
} |
Adjust colors and use font-awesome chevron for back | $tutor-tertiary-light: rgb(0, 193, 222); // light blue
$joyride-color: $tutor-tertiary-light;
// set both medium and large sizes to be 360
$joyride-tooltip-width: (290px, 360px, 360px);
@import '~react-joyride/lib/react-joyride';
.joyride-tooltip__button--secondary {
float: left;
&:before {
display: 'inline';
margin-right: 0.5rem;
content: '<';
}
}
// the default rules lighten the button when it's focused,
// but it's focused by default when paging; essentially causing the standard color to be ignored
.joyride-tooltip__button--primary:focus {
background-color: $joyride-button-bg-color;
}
| $tutor-tertiary-light: rgb(0, 193, 222); // light blue
$joyride-color: $tutor-tertiary-light;
// set both medium and large sizes to be 360
$joyride-tooltip-width: (290px, 360px, 360px);
$joyride-tooltip-color: #232E66;
$joyride-close: (color: $joyride-tooltip-color, size: 12px, top: 10px, right: 10px);
@import '~react-joyride/lib/react-joyride';
.joyride-tooltip__button--secondary {
float: left;
&:before {
display: 'inline';
margin-right: 0.5rem;
font-family: FontAwesome;
content: "\f053"; // chevron-left
}
}
// the default rules lighten the button when it's focused,
// but it's focused by default when paging; essentially causing the standard color to be ignored
.joyride-tooltip__button--primary:focus {
background-color: $joyride-button-bg-color;
}
|
Make golden ratio function compatible with update | @function golden-ratio($value, $increment) {
@return modular-scale($value, $increment, $golden)
}
| @function golden-ratio($increment) {
@return modular-scale($increment, $ratio: $golden)
}
|
Update project name and tagline styling. | ---
---
@import "{{ site.theme }}";
// Variables
$font-heading: "Fredoka One", cursive;
$font-body: "Lora", serif;
// Style declarations
.page-header {
background-image: url(https://github.com/google/ground-platform/raw/master/docs/assets/images/aerial-forest-lake.jpg);
background-repeat: no-repeat;
background-position: center;
background-size: cover;
}
h1, h2, h3, h4, h5, h6 {
font-family: $font-heading;
text-transform: uppercase;
}
.main-content p {
font-family: $font-body;
}
.project-tagline {
font-family: $font-body;
text-transform: none;
}
| ---
---
@import "{{ site.theme }}";
// Variables
$font-heading: "Fredoka One", sans-serif;
$font-body: "Lora", serif;
// Style declarations
.page-header {
background-image: url(https://github.com/google/ground-platform/raw/master/docs/assets/images/aerial-forest-lake.jpg);
background-repeat: no-repeat;
background-position: center;
background-size: cover;
}
h1, h2, h3, h4, h5, h6 {
font-family: $font-heading;
text-transform: uppercase;
}
.main-content p {
font-family: $font-body;
}
.project-name {
font-family: $font-heading;
font-variant: all-small-caps;
font-weight: lighter;
letter-spacing: 1pt;
}
.project-tagline {
font-family: sans-serif;
font-weight: normal;
margin-bottom: 2rem;
font-variant: all-small-caps;
text-transform: none;
}
|
Add print stylesheet for navigation header | // is-print is used by govuk_frontend_toolkit to alter the printed font-stack
$is-print: true;
@import "govuk_publishing_components/govuk_frontend_support";
@import "govuk_publishing_components/component_support";
@import "govuk_publishing_components/components/print/button";
@import "helpers/print-base";
| // is-print is used by govuk_frontend_toolkit to alter the printed font-stack
$is-print: true;
@import "govuk_publishing_components/govuk_frontend_support";
@import "govuk_publishing_components/component_support";
@import "govuk_publishing_components/components/print/button";
@import "govuk_publishing_components/components/print/layout-super-navigation-header";
@import "helpers/print-base";
|
Fix z-index of temporal overlay | #temporal-query {
position: absolute;
color: #fff;
background: rgba(22,22,22,.9);
z-index: 60;
padding: 8px 12px;
border-radius: 5px;
top: 15px;
right: 10px;
box-shadow: 0 0 10px #424242;
font-size: 1em;
}
#temporal-query p {
margin: 0;
}
.leaflet-top.leaflet-right {
top: 50px;
}
.leaflet-bar.projection-switcher a {
@include retina-image(projection-sprite, 90px 30px, png, null, false);
&.projection-switcher-arctic {
background-position: -59px -2px;
}
&.projection-switcher-geo {
background-position: -31px -2px;
}
&.projection-switcher-antarctic {
background-position: -3px -2px;
}
} | #temporal-query {
position: absolute;
color: #fff;
background: rgba(22,22,22,.9);
z-index: 59;
padding: 8px 12px;
border-radius: 5px;
top: 15px;
right: 10px;
box-shadow: 0 0 10px #424242;
font-size: 1em;
}
#temporal-query p {
margin: 0;
}
.leaflet-top.leaflet-right {
top: 50px;
}
.leaflet-bar.projection-switcher a {
@include retina-image(projection-sprite, 90px 30px, png, null, false);
&.projection-switcher-arctic {
background-position: -59px -2px;
}
&.projection-switcher-geo {
background-position: -31px -2px;
}
&.projection-switcher-antarctic {
background-position: -3px -2px;
}
} |
Fix invalid css display type | .icon {
display: block-inline;
width: 1em;
height: 1em;
vertical-align: -0.125em;
}
| .icon {
display: inline-block;
width: 1em;
height: 1em;
vertical-align: -0.125em;
}
|
Fix for removing dark portion of Review Transaction screen below personal note. | #view-review {
background-color: #494949;
slide-to-accept, slide-to-accept-success {
margin-bottom: constant(safe-area-inset-bottom); /* iOS 11.0 */
margin-bottom: env(safe-area-inset-bottom); /* iOS 11.2 */
}
.fee-summary {
position: absolute;
bottom: 92px;
}
.shapeshift-banner, .bitpay-banner, .egifter-banner {
box-shadow: none;
}
.warning {
color: $v-warning-color-2;
}
} | #view-review {
slide-to-accept, slide-to-accept-success {
margin-bottom: constant(safe-area-inset-bottom); /* iOS 11.0 */
margin-bottom: env(safe-area-inset-bottom); /* iOS 11.2 */
}
.fee-summary {
position: absolute;
bottom: 92px;
}
.shapeshift-banner, .bitpay-banner, .egifter-banner {
box-shadow: none;
}
.warning {
color: $v-warning-color-2;
}
} |
Add some space before the footer on the dossier pages | @import "colors";
@import "constants";
#dossier-show {
.sub-header {
.label {
float: right;
margin-left: $default-spacer;
}
.title-container {
margin-bottom: $default-padding * 2;
padding-left: 32px;
.icon.folder {
float: left;
margin-left: -32px;
margin-top: 3px;
}
}
h1 {
color: $black;
font-size: 22px;
margin-bottom: 0;
}
h2 {
color: $grey;
font-weight: bold;
}
}
.button.edit-form {
float: right;
}
.messagerie-explanation {
margin-bottom: $default-padding * 2;
}
.latest-message-section {
display: flex;
flex-direction: column;
max-width: 700px;
margin-bottom: $default-padding * 2;
.button.send {
align-self: flex-end;
}
}
}
| @import "colors";
@import "constants";
#dossier-show {
margin-bottom: 30px;
.sub-header {
.label {
float: right;
margin-left: $default-spacer;
}
.title-container {
margin-bottom: $default-padding * 2;
padding-left: 32px;
.icon.folder {
float: left;
margin-left: -32px;
margin-top: 3px;
}
}
h1 {
color: $black;
font-size: 22px;
margin-bottom: 0;
}
h2 {
color: $grey;
font-weight: bold;
}
}
.button.edit-form {
float: right;
}
.messagerie-explanation {
margin-bottom: $default-padding * 2;
}
.latest-message-section {
display: flex;
flex-direction: column;
max-width: 700px;
margin-bottom: $default-padding * 2;
.button.send {
align-self: flex-end;
}
}
}
|
Remove components that are not being used | // @file styles.scss
// #Requirements
@import
"libraries/bourbon/bourbon",
"libraries/neat/neat";
@import
// #Mixins and Variables
"base/functions",
"base/mixins/main",
"layout/settings",
"layout/breakpoints",
"base/colors",
"base/typesizes",
"base/variables",
// #Project: Start to output CSS
"base/reset",
"base/accessibility",
"base/typography",
"layout/layout",
"component/global",
"component/forms",
"component/search",
"component/buttons",
"component/header",
"component/navigation",
"component/content",
"component/colorcube",
"component/footer";
| // @file styles.scss
// #Requirements
@import
"libraries/bourbon/bourbon",
"libraries/neat/neat";
@import
// #Mixins and Variables
"base/functions",
"base/mixins/main",
"layout/settings",
"layout/breakpoints",
"base/colors",
"base/typesizes",
"base/variables",
// #Project: Start to output CSS
"base/reset",
"base/accessibility",
"base/typography",
"layout/layout",
"component/global",
"component/forms",
//"component/search",
"component/buttons",
"component/header",
//"component/navigation",
//"component/content",
"component/colorcube",
"component/footer";
|
Make things smoother in IE | /*
* This is a manifest file that'll be compiled into application.css, which will include all the files
* listed below.
*
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
*
* You're free to add application-wide styles to this file and they'll appear at the top of the
* compiled file, but it's generally better to create a new file per style scope.
*
*
*
*
*= require_self
*/
html{
color: #f00;
}
.triangle-l{
display: none;
}
.triangle-r{
display: none;
}
.welcome-line-l{
display: none;
}
.welcome-line-r{
display: none;
} | /*
* This is a manifest file that'll be compiled into application.css, which will include all the files
* listed below.
*
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
*
* You're free to add application-wide styles to this file and they'll appear at the top of the
* compiled file, but it's generally better to create a new file per style scope.
*
*
*
*
*= require_self
*/
.triangle-l{
display: none;
}
.triangle-r{
display: none;
}
div#welcome-line-l{
border: none !important;
border-bottom: 2px solid #666768 !important;
}
div#welcome-line-r{
border: none !important;
border-bottom: 2px solid #666768 !important;
}
h3.welcome{
font-family: 'Satisfy', Arial, sans-serif;
}
div.navbar-top{
height: none !important;
padding-bottom: 20px;
line-height: 260%;
}
.ribbon-front{
width: 100%;
}
|
Remove global font-family css rule | @import '~elements-sk/colors';
@import '../colors';
gold-scaffold-sk {
app-sk {
--header-background-color: var(--gold);
}
* {
font-family:Roboto,Helvetica,Arial,'Bitstream Vera Sans',sans-serif;
}
header {
h1 {
font-weight: bold;
font-size: 1.5em;
padding: 0 0.25em;
}
.spinner-spacer {
min-width: 40px;
}
spinner-sk {
width: 24px;
height: 24px;
margin: 0;
border: 8px solid var(--light-orange);
border-left: 8px solid var(--red);
}
}
nav {
display:flex;
flex-direction: column;
a {
padding: 0.5em 0.75em;
color: var(--black);
fill: var(--black);
text-decoration: none;
}
span {
padding: 0 0.5em;
vertical-align: middle;
}
}
login-sk {
margin-left: auto;
margin-right: 1em;
display: block;
color: white;
}
}
| @import '~elements-sk/colors';
@import '../colors';
gold-scaffold-sk {
font-family:Roboto,Helvetica,Arial,'Bitstream Vera Sans',sans-serif;
app-sk {
--header-background-color: var(--gold);
}
header {
h1 {
font-weight: bold;
font-size: 1.5em;
padding: 0 0.25em;
}
.spinner-spacer {
min-width: 40px;
}
spinner-sk {
width: 24px;
height: 24px;
margin: 0;
border: 8px solid var(--light-orange);
border-left: 8px solid var(--red);
}
}
nav {
display:flex;
flex-direction: column;
a {
padding: 0.5em 0.75em;
color: var(--black);
fill: var(--black);
text-decoration: none;
}
span {
padding: 0 0.5em;
vertical-align: middle;
}
}
login-sk {
margin-left: auto;
margin-right: 1em;
display: block;
color: white;
}
}
|
Add inline comment to explain two height properties | @import "branding";
@import "mixins";
@import "variables";
// Styling for brand intro / tagline on homepage
#tagline {
width: 100%;
&:before {
content: "";
@include fullbg;
background-color: $ofn-grey;
background-image: image-url("home/home.jpg");
position: fixed;
left: 0;
right: 0;
top: 0;
z-index: -1;
width: 100%;
height: 100%;
height: 100vh;
}
h1 {
margin-top: 2rem;
@media all and (min-width: 768px) {
margin-top: 10rem;
}
img {
max-width: 45%;
@media all and (min-height: 500px) {
max-width: 250px;
}
margin-bottom: 2rem;
@media all and (min-width: 768px) {
margin-bottom: 5rem;
}
}
}
}
| @import "branding";
@import "mixins";
@import "variables";
// Styling for brand intro / tagline on homepage
#tagline {
width: 100%;
&:before {
content: "";
@include fullbg;
background-color: $ofn-grey;
background-image: image-url("home/home.jpg");
position: fixed;
left: 0;
right: 0;
top: 0;
z-index: -1;
width: 100%;
height: 100%;
// Use vh units for new browsers - fixed issue 1253
height: 100vh;
}
h1 {
margin-top: 2rem;
@media all and (min-width: 768px) {
margin-top: 10rem;
}
img {
max-width: 45%;
@media all and (min-height: 500px) {
max-width: 250px;
}
margin-bottom: 2rem;
@media all and (min-width: 768px) {
margin-bottom: 5rem;
}
}
}
}
|
Use a subtle transition for glow's | .fl-icon-button {
@extend %default-font;
cursor: pointer;
display: block;
opacity: 0.4;
&.hovered {
opacity: 1;
}
}
| .fl-icon-button {
@extend %default-font;
cursor: pointer;
display: block;
opacity: 0.4;
transition: opacity $highlight_visibility_transition_time;
&.hovered {
opacity: 1;
}
}
|
Add padding for print area | .print-area{
margin-top: 3%;
.button{
left: 93%;
top: 90%;
}
.icon{
margin-top: 19%;
}
}
@media print {
#sidebar, #header, #button {
display: none;
}
#reportContainer{padding-top:10%;}
.container{width:95%;}
#dynamic-area{overflow: hidden;}
.print-area{
margin-top: 0;
transform: scale(0.9,0.8);
}
} | .print-area{
padding-top: 5%;
padding-bottom: 5%;
.button{
left: 93%;
top: 90%;
}
.icon{
margin-top: 19%;
}
}
@media print {
#sidebar, #header, #button {
display: none;
}
#reportContainer{padding-top:10%;}
.container{width:95%;}
#dynamic-area{overflow: hidden;}
.print-area{
margin-top: 0;
transform: scale(0.9,0.8);
}
} |
Replace HSL logo and header background | header {
background: url('http://hsl.med.nyu.edu/sites/default/files/primo/bg100.gif') top center repeat-x!important;
background-color: #0f5e58;
margin: 0;
height: 70px!important;
border-bottom:0px;
border-top:5px solid #4E4E4E;
a {
width: 461px!important;
height: 59px!important;
background-image: url('http://hsl.med.nyu.edu/sites/default/files/primo/nyuhsl_green_white_web_banner.png')!important;
background-position: center!important;
background-repeat: no-repeat!important;
margin-bottom:8px;
margin-top:10px;
}
}
| header {
background: url('http://hsl.med.nyu.edu/sites/default/files/primo/violet_glow.jpg') top center repeat-x!important;
background-color: #0f5e58;
margin: 0;
height: 70px!important;
border-bottom:0px;
border-top:5px solid #4E4E4E;
a {
width: 461px!important;
height: 59px!important;
background-image: url('http://hsl.med.nyu.edu/sites/default/files/primo/nyuhsl_identity.png')!important;
background-position: center!important;
background-repeat: no-repeat!important;
margin-bottom:8px;
margin-top:10px;
}
}
|
Increase font-size of elements panel | /* ==========================================================================
Base Typography
========================================================================== */
:host-context(.platform-mac),
body.platform-mac {
.monospace,
.source-code {
font-size: 14px !important;
line-height: 1.5em !important;
}
.sources .source-code {
font-size: 16px !important;
line-height: 1.5em !important;
}
} | /* ==========================================================================
Base Typography
========================================================================== */
:host-context(.platform-mac),
body.platform-mac,
body.platform-mac ::shadow {
.monospace,
.source-code {
font-size: 14px !important;
line-height: 1.5em !important;
}
.sources .source-code {
font-size: 16px !important;
line-height: 1.5em !important;
}
} |
Increase font-size for nav bar dropdown | .sign-in-box {
margin-top: 40px;
}
.sign-in-dev-link {
margin-top: 30px;
}
.twitter-github-links {
margin-top: 30px;
}
.fixed-nav-padding {
padding-top: 7rem;
}
.profile-heading {
margin-bottom: 4rem;
}
.profile-label-description {
margin-bottom: 4rem;
}
.profile-description {
height: 10rem;
margin-bottom: 1rem;
}
| .sign-in-box {
margin-top: 40px;
}
.sign-in-dev-link {
margin-top: 30px;
}
.twitter-github-links {
margin-top: 30px;
}
.fixed-nav-padding {
padding-top: 7rem;
}
.profile-heading {
margin-bottom: 4rem;
}
.profile-label-description {
margin-bottom: 4rem;
}
.profile-description {
height: 10rem;
margin-bottom: 1rem;
}
.dropdown {
font-size: 1.8rem;
}
.dropdown-menu {
font-size: 1.5rem;
}
|
Set max height to 200px | .main-container {
margin: 0px;
padding: 0px;
}
.navbar {
padding: 40px;
margin: 0;
}
.subsection-image {
max-width: 60%;
border-radius: 50%;
}
.text-align-center {
text-align: center;
}
.video-container {
position: relative;
padding-bottom: 56.25%;
padding-top: 35px;
height: 0;
overflow: hidden;
}
.video-container iframe {
position: absolute;
top:0;
left: 0;
width: 100%;
height: 100%;
}
footer {
background-color: $blue;
color: $white;
}
footer .col {
box-sizing: border-box;
}
@media screen and (max-width: 414px) {
.col-3 {
flex: 0 0 100% !important;
max-width: 100% !important
}
.display-1,
.display-2,
.display-3 {
font-size: 35px !important;
line-height: 1.5 !important;
}
} | .main-container {
margin: 0px;
padding: 0px;
}
.navbar {
padding: 40px;
margin: 0;
max-height: 200px;
}
.subsection-image {
max-width: 60%;
border-radius: 50%;
}
.text-align-center {
text-align: center;
}
.video-container {
position: relative;
padding-bottom: 56.25%;
padding-top: 35px;
height: 0;
overflow: hidden;
}
.video-container iframe {
position: absolute;
top:0;
left: 0;
width: 100%;
height: 100%;
}
footer {
background-color: $blue;
color: $white;
}
footer .col {
box-sizing: border-box;
}
@media screen and (max-width: 414px) {
.col-3 {
flex: 0 0 100% !important;
max-width: 100% !important
}
.display-1,
.display-2,
.display-3 {
font-size: 35px !important;
line-height: 1.5 !important;
}
} |
Refactor homepage "editor" styles; provide some padding and other tweaks | $gradient-color: nth($mz-darkpurples, 1);
$editor-right-margin: 32px;
.editor-snippet {
@media (min-width: $screen-sm) {
width: 100%;
height: $section-height - $section-padding*2;
border: 0;
color: #fff;
background-color: #1e0f33;
border-radius: 5px;
overflow-x: hidden;
overflow-y: scroll;
margin: 0;
padding: 0;
}
&:before {
width: 100%;
height: $section-height - $section-padding*2;
border-radius: 5px;
content: ' ';
background: -webkit-linear-gradient(rgba($gradient-color, 0) 25%, $gradient-color 97%);
background: linear-gradient(rgba($gradient-color, 0) 25%, $gradient-color 97%);
position: absolute;
}
// Syntax highlighting
.cp, .nt {
color: #FF112F;
}
.na {
color: nth($mz-pinks, 2);
}
.s {
color: nth($mz-purples, 2);
}
} | $gradient-color: nth($mz-darkpurples, 1);
.editor-wrapper {
width: 100%;
height: $section-height - $section-padding*2;
border-radius: 5px;
overflow: hidden;
&::before {
width: 100%;
height: 100%;
border-radius: 5px;
content: ' ';
background: -webkit-linear-gradient(rgba($gradient-color, 0) 25%, $gradient-color 97%);
background: linear-gradient(rgba($gradient-color, 0) 25%, $gradient-color 97%);
position: absolute;
pointer-events: none;
}
}
.editor-snippet {
@media (min-width: $screen-sm) {
width: 100%;
height: 100%;
border: 0;
color: #fff;
background-color: #1e0f33;
overflow-x: hidden;
overflow-y: scroll;
margin: 0;
padding: 1.5em;
padding-right: 3em;
}
// Scroll bar adjustments, Webkit only
&::-webkit-scrollbar-track-piece {
background-color: transparent;
}
// Syntax highlighting
.cp, .nt {
color: #FF112F;
}
.na {
color: nth($mz-pinks, 2);
}
.s {
color: nth($mz-purples, 2);
}
} |
Change opacity to tag dot | @import '~styles/layout.scss';
.tag {
border: none;
box-shadow: none;
padding: 0;
display: flex;
flex-direction: row;
justify-content: flex-start;
align-items: center;
font-size: $font-size-sm;
color: $dark-gray;
flex-grow: 0;
}
.dot {
display: inline-block;
width: 20px;
height: 10px;
border-radius: 5px;
margin-right: 5px;
}
.label {
padding: 5px 0;
margin-right: 8px;
width: max-content;
}
| @import '~styles/layout.scss';
.tag {
border: none;
box-shadow: none;
padding: 0;
display: flex;
flex-direction: row;
justify-content: flex-start;
align-items: center;
font-size: $font-size-sm;
color: $dark-gray;
flex-grow: 0;
}
.dot {
display: inline-block;
width: 20px;
height: 10px;
border-radius: 5px;
margin-right: 5px;
opacity: 0.65;
}
.label {
padding: 5px 0;
margin-right: 8px;
width: max-content;
}
|
Add styling dependent on when the search bar is on the results page | .l-search-results {
@include column(12);
@include respond-to($mq-m) {
@include column(9);
}
@include respond-to($mq-l) {
@include column(7);
}
}
| .l-search-results {
@include column(12);
@include respond-to($mq-m) {
@include column(9);
}
@include respond-to($mq-l) {
@include column(7);
}
.search-box__input {
border: 1px solid $color-search-border;
}
}
|
Update fadder section top/bottom spacing | #fadder {
background-color: #fff;
color: #222;
transform: skew(0deg, -2deg);
padding-top: 30px;
padding-bottom: 30px;
margin-bottom: 85px;
.component {
transform: skew(0deg, 2deg);
}
}
| #fadder {
background-color: #fff;
color: #222;
transform: skew(0deg, -2deg);
padding-top: 50px;
padding-bottom: 50px;
margin-bottom: 85px;
.component {
transform: skew(0deg, 2deg);
}
}
|
Make entire nav link clickable | header {
background: $nav-color;
left: 0;
padding: 10px;
position: fixed;
width: 100%;
top: 0;
}
.nav-links {
margin: 0;
padding: 0;
text-align: center;
li {
border-radius: 5px;
display: inline-block;
margin-right: 10px;
padding: 7px;
&:hover {
background: darken($green, 5);
}
&:last-child {
margin-right: 0;
}
}
a {
color: $nav-link-color;
}
}
| header {
background: $nav-color;
left: 0;
padding: 10px;
position: fixed;
width: 100%;
top: 0;
}
.nav-links {
margin: 0;
padding: 0;
text-align: center;
li {
border-radius: 5px;
display: inline-block;
margin-right: 10px;
&:hover {
background: darken($green, 5);
}
&:last-child {
margin-right: 0;
}
}
a {
color: $nav-link-color;
display: block;
padding: 7px;
}
}
|
Add paper style shadow to footer | body {
margin: 0;
background: #fff7ec;
}
ol li {
text-align: center;
list-style-type: none;
}
.hide {
display: none;
}
li span {
color: #ff7f66;
margin-right: 10px;
margin-left: 10px;
}
#footer {
background-color: #e5f3e9;
position: absolute;
bottom:0;
height: 65px;
width: 100%
}
#scroll p {
margin-top: 4px;
margin-bottom: 4px;
font-family: Roboto;
font-weight: 400;
}
| body {
margin: 0;
background: #fff7ec;
}
ol li {
text-align: center;
list-style-type: none;
}
.hide {
display: none;
}
li span {
color: #ff7f66;
margin-right: 10px;
margin-left: 10px;
}
#footer {
background-color: #e5f3e9;
position: absolute;
bottom:0;
height: 65px;
width: 100%;
box-shadow: rgba(0, 0, 0, 0.117647) 0px 1px 6px, rgba(0, 0, 0, 0.117647) 0px 1px 4px
}
#scroll p {
margin-top: 4px;
margin-bottom: 4px;
font-family: Roboto;
font-weight: 400;
}
|
Add icons & some nicer (maybe) styling | /* Innerbox - RSS Feeds & Podcasts
========================================================================== */
.lg_rss_list {
@extend %blocks;
}
.rss_view_website,
.rss_view_feed {
@include adjust-font-size-to($s, 4);
}
.rss_view_website {
/* Overrides */
padding-top: 0 !important;
}
.rss_view_feed {
@extend %blocks;
} | /* Innerbox - RSS Feeds & Podcasts
========================================================================== */
.lg_rss_list {
@extend %blocks;
}
.rss_view_website,
.rss_view_feed {
@include adjust-font-size-to($s, 4);
display: inline-block;
margin-right: rhythm(4);
text-align: right;
}
.rss_view_website {
a { @include icon("globe"); }
/* Overrides */
padding-top: 0 !important;
}
.rss_view_feed {
@extend %blocks;
a { @include icon("rss"); }
} |
Add spacing for multiple conditional questions | /*
* On the What type of service do you want to add? page, we want to display the question
* description as hint text, but it's already got classes applied to the HTML. So we want
* to reinstate the govuk-hint colour to conform with other hints.
*
* It may be better to remove these classes in the content loader before they get into
* this app.
*/
.dm-radios--description-hint .govuk-radios__hint .govuk-body,
.dm-radios--description-hint .govuk-radios__hint .govuk-list {
color: $govuk-secondary-text-colour;
} | /*
* On the What type of service do you want to add? page, we want to display the question
* description as hint text, but it's already got classes applied to the HTML. So we want
* to reinstate the govuk-hint colour to conform with other hints.
*
* It may be better to remove these classes in the content loader before they get into
* this app.
*/
.dm-radios--description-hint .govuk-radios__hint .govuk-body,
.dm-radios--description-hint .govuk-radios__hint .govuk-list {
color: $govuk-secondary-text-colour;
}
/*
* We have multiple conditional questions on one option in the declaration journey.
* Because of the way content loader generates questions we end up with no spacing
* beneath the conditional fieldset. This fixes that, but might become unnecessary
* if we redesign the question.
*/
.govuk-radios__conditional fieldset {
margin-bottom: govuk-spacing(6);
} |
Hide media player within print | .govuk-govspeak {
.play-container {
display: none;
}
.attachment {
margin: $gutter 0;
&:first-child {
margin-top: 0;
}
.attachment-thumb {
display: none;
}
.attachment-details {
.download {
display: block;
}
}
.accessibility-warning {
h2 {
@include core-14;
}
.toggler {
display: none;
}
}
}
}
| .govuk-govspeak {
.media-player {
display: none;
}
.attachment {
margin: $gutter 0;
&:first-child {
margin-top: 0;
}
.attachment-thumb {
display: none;
}
.attachment-details {
.download {
display: block;
}
}
.accessibility-warning {
h2 {
@include core-14;
}
.toggler {
display: none;
}
}
}
}
|
Increase header text margin and unblue | ---
---
@import "{{ site.theme }}";
#header {
h1 {
font-family: 'OpenSansLight', 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-weight: normal;
font-size: 40px;
text-align: left;
line-height: 36px;
a {
color: #f0e7d5;
}
}
}
section {
.credits {
font-size: 11px;
font-family: 'OpenSansRegular', 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-weight: normal;
color: #696969;
&.left {
float: left;
}
&.right {
float: right;
}
}
}
@media print, screen and (max-width: 720px) {
.credits {
display: block;
width: 100%;
line-height: 30px;
text-align: center;
.left {
float: none;
display: block;
}
.right {
float: none;
display: block;
}
}
}
| ---
---
@import "{{ site.theme }}";
#header {
nav {
background: default;
margin: 12px auto;
h1 {
font-family: 'OpenSansLight', 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-weight: normal;
font-size: 40px;
text-align: left;
line-height: 36px;
a {
color: #f0e7d5;
}
}
}
section {
.credits {
font-size: 11px;
font-family: 'OpenSansRegular', 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-weight: normal;
color: #696969;
&.left {
float: left;
}
&.right {
float: right;
}
}
}
@media print, screen and (max-width: 720px) {
.credits {
display: block;
width: 100%;
line-height: 30px;
text-align: center;
.left {
float: none;
display: block;
}
.right {
float: none;
display: block;
}
}
}
|
Remove border for images by default | .reveal {
.centered {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.shadowed {
-webkit-box-shadow: 6px 7px 17px -5px rgba(0, 0, 0, 0.75);
-moz-box-shadow: 6px 7px 17px -5px rgba(0, 0, 0, 0.75);
box-shadow: 6px 7px 17px -5px rgba(0, 0, 0, 0.75);
}
code {
padding: 20px !important;
max-height: 1500px !important;
}
code span.fragment.fade-out.visible {
display: none;
}
img.small-logo {
width: 50px;
padding-right: 5px;
margin: 0;
vertical-align: middle;
}
.block {
display: inline-block;
vertical-align: middle;
}
img.block {
margin-right: -5px;
}
} | .reveal {
.centered {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.shadowed {
-webkit-box-shadow: 6px 7px 17px -5px rgba(0, 0, 0, 0.75);
-moz-box-shadow: 6px 7px 17px -5px rgba(0, 0, 0, 0.75);
box-shadow: 6px 7px 17px -5px rgba(0, 0, 0, 0.75);
}
code {
padding: 20px !important;
max-height: 1500px !important;
}
code span.fragment.fade-out.visible {
display: none;
}
section {
img {
border: none;
}
}
img.small-logo {
width: 50px;
padding-right: 5px;
margin: 0;
vertical-align: middle;
}
.block {
display: inline-block;
vertical-align: middle;
}
img.block {
margin-right: -5px;
}
} |
Add pointer cursor to avatar picker | .mu-edit-avatar {
position: relative;
top: 100px;
right: 15px;
}
.mu-avatar-list {
display: flex;
align-items: center;
justify-content: space-evenly;
flex-wrap: wrap;
padding: 15px;
}
.mu-avatar-item {
width: 150px;
height: 150px;
border-radius: 50%;
border: 2px solid $mu-color-dark-separator;
padding: 2px;
margin: 10px;
&:hover {
box-shadow: -3px 3px 10px -3px $mu-color-primary;
transform: scale(1.025);
}
}
| .mu-edit-avatar {
position: relative;
top: 100px;
right: 15px;
}
.mu-avatar-list {
display: flex;
align-items: center;
justify-content: space-evenly;
flex-wrap: wrap;
padding: 15px;
}
.mu-avatar-item {
width: 150px;
height: 150px;
border-radius: 50%;
border: 2px solid $mu-color-dark-separator;
padding: 2px;
margin: 10px;
cursor: pointer;
&:hover {
box-shadow: -3px 3px 10px -3px $mu-color-primary;
transform: scale(1.025);
}
}
|
Add new placeholder for footer navigation elements | // Internal links section of the site-wide footer.
//
// Styleguide Footer Site Links
.footer-site-links {
background-color: $color-footer-bg;
padding: $baseline-unit*5 0 $baseline-unit*6 0;
li {
font-family: MuseoSlab;
font-weight: 700;
}
a {
@include links($color-link-nav, $color-link-nav-visited);
}
}
| // Internal links section of the site-wide footer.
//
// Styleguide Footer Site Links
.footer-site-links {
background-color: $color-footer-bg;
padding: $baseline-unit*5 0 $baseline-unit*6 0;
li {
@extend %type-navigation;
}
a {
@include links($color-link-nav, $color-link-nav-visited);
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.