Global styles
Make the updates below to improve our theming experience.
Global
Replace the contents of src/patterns/global/global.scss with the following:
// @file
// Site global scss file.
//
// Import variables and mixins
// Should contain NO css output.
// Only variables / mixins / settings.
@import 'utils/init';
// Import font-face fonts.
//
// This should only be imported and loaded once.
@import 'fonts/fonts';
html {
@include font-stack-primary;
font-size: 62.5%;
-webkit-text-size-adjust: 100%;
}
body {
box-sizing: border-box;
margin: 0;
font-size: 1.8rem;
line-height: 1.5;
}
// Basic sticky-footer treatment.
.layout-container {
display: flex;
min-height: 100vh;
flex-direction: column;
}
// Render the `main` element consistently in IE11.
// and style the Mediacurrent footer.
main {
display: block;
flex: 1;
& + footer {
font-size: small;
color: $color-button-gray;
position: relative;
background-color: $color-navy-blue;
width: 100%;
padding: 15px 3vw;
margin-top: 2rem;
}
}
#block-training-theme-page-title {
max-width: 1900px;
margin: 0 auto;
padding: 20px;
}
#block-mediacurrentfooter {
display: flex;
flex-direction: column;
align-items: center;
@media screen and (min-width: $bp-xsm) {
flex-flow: row-reverse;
}
* {
margin: 0;
}
h2 {
display: none;
}
p {
line-height: 1;
a {
color: rgba($color-white, 0.5);
display: inline-block;
}
&:last-of-type {
margin: 5px 0 0;
@media screen and (min-width: $bp-xsm) {
margin: 0 auto 0 0;
}
}
img {
width: 40px;
}
}
}Mixins
Replace the content of src/patterns/global/util/_mixins.scsswith the code below:
Typography
Replace all existing typography styles in src/patterns/global/utils/_typography.scss with the code below.
Color variables
Replace all existing color variables in src/patterns/global/colors/_colors.scss with the code below.
Breakpoints
Add the following breakpoints to the existing list of breakpoints in src/global/utils/_breakpoints.scss
Tabs
Replace all existing styles in src/patterns/components/tabs/tabs.scss with the code below.
Last updated