-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* npm update * upgraded storybook to version 6.1.21 (#6) Co-authored-by: Alex Guo <[email protected]> * integrate cognition styling (#7) * refactored entrance page styling * versioned * updated webpack and versioning Co-authored-by: Alex Guo <[email protected]> * version bump Co-authored-by: Alex Guo <[email protected]>
- Loading branch information
1 parent
dab9da2
commit 429d06a
Showing
11 changed files
with
3,428 additions
and
1,130 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/* | ||
Typography :: Font Declarations | ||
================================================== */ | ||
|
||
// @import url('https://fonts.googleapis.com/css?family=Muli:400,400i,500,700,700i,800'); | ||
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,wght@0,200;0,300;0,400;0,600;0,700;0,800;0,900;1,200;1,300;1,400;1,600;1,700;1,800;1,900&display=swap'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
@mixin tablet-up { | ||
@media screen and (min-width: 768px) { | ||
@content; | ||
} | ||
} | ||
|
||
@mixin mobile-only { | ||
@media screen and (max-width: 767px) { | ||
@content; | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
// Media Query Generator | ||
|
||
@mixin media-query($mq) { | ||
$breakpoint-found: false; | ||
|
||
// Loop through the list of breakpoints we’ve provided in our settings file. | ||
@each $breakpoint in $breakpoints { | ||
// Grab the alias and the condition from their respective locations in | ||
// the list. | ||
$alias: nth($breakpoint, 1); | ||
$condition: nth($breakpoint, 2); | ||
|
||
// If the media query we’ve specified has an alias and a condition... | ||
@if $mq == $alias and $condition { | ||
// ...tell the mixin that we’ve found it... | ||
$breakpoint-found: true; | ||
|
||
// ...and spit it out here. | ||
@media #{$condition} { | ||
@content; | ||
} | ||
} | ||
} | ||
|
||
// If the user specifies a non-exitent alias, send them a warning. | ||
@if $breakpoint-found == false { | ||
@warn "Oops! Breakpoint ‘#{$mq}’ does not exist."; | ||
} | ||
} | ||
|
||
// Add breakpoints | ||
$breakpoints: ( | ||
"mega" "screen and (min-width: 1400px)", | ||
"xxl" "screen and (min-width: 1300px)", | ||
"xl" "screen and (min-width: 1200px)", | ||
"desk" "screen and (min-width: 1024px)", | ||
"lg" "screen and (min-width: 920px)", | ||
"tab" "screen and (min-width: 768px)", | ||
"mobile" "screen and (max-width: 767px)", | ||
"video" "screen and (max-height: 900px)", | ||
"med" "screen and (min-width: 40em)", | ||
"small" "screen and (min-width: 30em)", | ||
"tiny" "screen and (max-width: 320px)", | ||
"retina" | ||
"(-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi), (min-resolution: 2dppx)", | ||
"ie" "all and(-ms-high-contrast: none), (-ms-high-contrast: active)", | ||
"ipad" "screen and (min-device-width : 768px) and (max-device-width : 1024px)" | ||
) !default; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
Typography :: Baseline styles */ | ||
|
||
@use "./immunespace"; | ||
p { | ||
font-size: 1rem; | ||
line-height: 1.5; | ||
} | ||
|
||
.caps { | ||
text-transform: uppercase; | ||
} | ||
|
||
a { | ||
color: immunespace.$blue; | ||
text-decoration: none; | ||
} | ||
|
||
h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5 { | ||
font-family: immunespace.$nunito-sans; | ||
} | ||
|
||
h1, .h1 { | ||
font-weight: immunespace.$font-weight--black; | ||
font-size: 3rem; | ||
line-height: 52px; | ||
} | ||
|
||
h2, .h2 { | ||
font-size: 1.5rem; | ||
} | ||
|
||
h3, .h3 { | ||
font-size: 1.5rem; | ||
} | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,41 @@ | ||
const path = require('path'); | ||
const CopyWebpackPlugin = require('copy-webpack-plugin'); | ||
const path = require("path"); | ||
const CopyWebpackPlugin = require("copy-webpack-plugin"); | ||
|
||
module.exports = { | ||
entry: {}, | ||
mode: 'production', | ||
mode: "production", | ||
plugins: [ | ||
// // add a hash to the filename of our bundles for easy and efficient cache busting. | ||
// new MiniCssExtractPlugin({ | ||
// filename: isDevelopment ? '[name].css' : '[name].[hash].css', | ||
// chunkFilename: isDevelopment ? '[id].css' : '[id].[hash].css' | ||
// }) | ||
// copy over variables and let downstream modules compile | ||
|
||
// copy over variables and let downstream modules compile | ||
new CopyWebpackPlugin({ | ||
patterns: [ | ||
{ | ||
// copy static scss files into the dist dir to be used by LabKey module apps | ||
from: '_immunespace.scss', | ||
to: '' | ||
} | ||
] | ||
from: "_immunespace.scss", | ||
to: "", | ||
}, | ||
{ | ||
from: "_immunespace.fonts.scss", | ||
to: "", | ||
}, | ||
{ | ||
from: "_immunespace.mixins.scss", | ||
to: "", | ||
}, | ||
{ | ||
from: "_immunespace.responsive.scss", | ||
to: "", | ||
}, | ||
{ | ||
from: "_immunespace.typography.scss", | ||
to: "", | ||
}, | ||
], | ||
}), | ||
] | ||
}; | ||
], | ||
}; |