bcgov/vue-scaffold

View on GitHub
app/frontend/src/assets/scss/style.scss

Summary

Maintainability
Test Coverage
Multiline style comments should not be used
/*
* BCGov Style
* This globally extends the base Vuetify style
*/
File extensions are not allowed
@import '~vuetify/src/styles/styles.sass';
 
// Variables
Hex values should use the shorthand format - 3 characters where possible
$bcgov-blue: #003366;
$bcgov-blue-secondary: #38598a;
$bcgov-orange: #fcba19;
$bcgov-grey: #efefef;
$bcgov-font: #494949;
 
// Sticky Footer
body {
display: flex;
flex-direction: column;
Space expected between blocks
& > .v-content {
flex: 1 0 auto;
}
}
 
// Typography
.v-application {
!important not allowed
font-family: -apple-system, BlinkMacSystemFont, BCSans, Roboto, Verdana, Arial, sans-serif !important;
Expected `font-size`, found `line-height`
line-height: 1.4;
Don't include leading zeros on numbers
Expected `line-height`, found `font-size`
font-size: 0.875rem;
}
 
h1 { font-size: 1.9em; }
h2 { font-size: 1.7em; }
h3 { font-size: 1.3em; }
h4 { font-size: 1.05em; }
 
Selectors must be placed on new lines
h1, h2, h3, h4, h5 {
color: $bcgov-font;
line-height: 1.2;
}
 
p {
color: $bcgov-font;
line-height: 1.4;
}
 
// Horizontal Rule
hr {
Color literals such as 'lightgrey' should only be used in variable declarations
Color 'lightgrey' should be written in its hexadecimal form #d3d3d3
border-top: 1px solid lightgrey;
margin-bottom: 1em;
Space expected between blocks
.orange {
border-top: 2px solid $bcgov-orange;
}
}
 
// Anchor and Tab Behavior
Selectors must be placed on new lines
a, .v-tab {
text-decoration: none;
Space expected between blocks
&:hover {
text-decoration: underline;
Selectors must be placed on new lines
Space expected between blocks
button, .v-icon {
display: inline-block;
text-decoration: none;
}
}
}
 
// General Button Style Extensions
.v-btn {
span > span {
font-weight: bold;
}
 
&:hover {
Don't include leading zeros on numbers
opacity: 0.8;
Space expected between blocks
span > span {
text-decoration: underline;
}
}
 
&.v-btn--disabled {
Color literals such as '#eee' should only be used in variable declarations
background-color: #eee;
Color literals such as '#777' should only be used in variable declarations
color: #777;
}
 
&.v-btn--outlined {
&.theme--light {
Color literals such as '#003366' should only be used in variable declarations
Hex values should use the shorthand format - 3 characters where possible
border: 2px solid #003366;
}
 
&.theme--dark {
Color literals such as '#fff' should only be used in variable declarations
border: 2px solid #fff;
}
}
}
 
// Stepper
.silv-stepper {
.header-row {
!important not allowed
background-color: $bcgov-grey !important;
}
Space expected between blocks
&.v-stepper--alt-labels {
Class '.v-stepper__step' should be written in lowercase with hyphens
.v-stepper__step {
padding-left: 0;
padding-right: 0;
Space expected between blocks
Class '.v-stepper__label' should be written in lowercase with hyphens
.v-stepper__label {
color: $bcgov-font;
font-size: .75em;
}
Class '.v-stepper__step--active' should be written in lowercase with hyphens
Space expected between blocks
&.v-stepper__step--active {
Class '.v-stepper__label' should be written in lowercase with hyphens
Whitespace required before {
.v-stepper__label{
color: $bcgov-font;
font-weight: bold;
}
}
}
}
}