-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Migrate from libsass to dart sass #2284
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,3 +33,6 @@ config/environments/*.local.yml | |
|
||
/node_modules | ||
/public/assets | ||
|
||
/app/assets/builds/* | ||
!/app/assets/builds/.keep |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
web: unset PORT && bin/rails server | ||
css: yarn build:css --watch |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
//= link application.css | ||
//= link application_parker.css | ||
//= link openseadragon-assets.js | ||
//= link_tree ../builds |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
// Entry point for your Sass build | ||
@import "base"; | ||
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
@import 'blacklight_range_limit/blacklight_range_limit'; | ||
@import 'blacklight-range-limit/app/assets/stylesheets/blacklight_range_limit/blacklight_range_limit'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Prefer double-quoted strings |
||
@import 'bootstrap-slider/dist/css/bootstrap-slider'; | ||
@import "bootstrap-tagsinput"; | ||
@import "variables"; // bootstrap variable overrides | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@import 'sul-styles/su_web_colors'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Prefer double-quoted strings |
||
@import 'sul-styles/su_primary_colors'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Prefer double-quoted strings |
||
@import 'sul-styles/variables'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Prefer double-quoted strings |
||
@import 'sul-styles/sul_footer'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Files should end with a trailing newline |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use |
||
Stanford Primary Colors | ||
from https://identity.stanford.edu/overview/color.html | ||
*/ | ||
|
||
// Primary Palette | ||
$color-cardinal-red: #8c1515; | ||
$color-cool-gray: #4d4f53; | ||
$color-black: #000; | ||
|
||
// Neutral Color Palette | ||
$color-pantone-467: #d2c295; | ||
$color-pantone-465: #b3995d; | ||
$color-pantone-403: #928b81; | ||
$color-pantone-401: #b6b1a9; | ||
$color-pantone-7527: #dad7cb; | ||
$color-pantone-5665: #c7d1c5; | ||
$color-pantone-445: #4d5357; | ||
$color-pantone-405: #5f574f; | ||
|
||
// Deep Tone Color Palette | ||
$color-pantone-1817: #5e3032; | ||
$color-pantone-7526: #8d3c1e; | ||
$color-pantone-3165: #00505c; | ||
$color-pantone-561: #175e54; | ||
$color-pantone-262: #53284f; | ||
|
||
// Bright Color Palette | ||
$color-pantone-2925: #0098db; | ||
$color-pantone-3145: #007c92; | ||
$color-pantone-334: #009b76; | ||
$color-pantone-7511: #b26f16; | ||
$color-pantone-144: #e98300; | ||
$color-pantone-124: #eaab00; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use |
||
Stanford Web Colors | ||
from https://identity.stanford.edu/web-toolkit/color.html | ||
*/ | ||
|
||
// Red | ||
$color-cardinal-red: #8c1515; | ||
$color-dark-red: #820000; | ||
|
||
// Black | ||
$color-blackish: #2e2d29; | ||
$color-black-80: #585754; | ||
|
||
// Warm Gray | ||
$color-gray: #3f3c30; | ||
$color-gray-90: #565347; | ||
$color-gray-60: #8a887d; | ||
|
||
// Sandstone | ||
$color-sandstone: #ddcf99; | ||
$color-sandstone-50: #eee6cb; | ||
$color-sandstone-35: #f3efd8; | ||
$color-sandstone-25: #f6f3e5; | ||
$color-sandstone-20: #f8f6ea; | ||
|
||
// Beige | ||
$color-beige: #9d9573; | ||
$color-beige-85: #aca68d; | ||
$color-beige-60: #c4bfa9; | ||
$color-beige-40: #d5d0c0; | ||
$color-beige-30: #e3dfd5; | ||
$color-beige-20: #e9e6df; | ||
$color-beige-10: #f2f1eb; | ||
$color-beige-05: #fbfbf9; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
#su-content { | ||
padding-bottom: $footer-height !important; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. !important should not be used |
||
} | ||
|
||
#sul-footer-container { | ||
background-color: $sul-footer-bg-color; | ||
border-top: 1px solid $sul-footer-border-top-color; | ||
-webkit-box-shadow: $sul-footer-shadow; | ||
box-shadow: $sul-footer-shadow; | ||
clear: both; | ||
margin-top: -1 * $footer-height; | ||
min-height: $footer-height; | ||
padding: 0 !important; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. !important should not be used |
||
position: relative; | ||
} | ||
|
||
#sul-footer { | ||
display: table; | ||
font-size: small; | ||
height: 80px; | ||
margin: 0 auto; | ||
padding: 0; | ||
|
||
ul { | ||
list-style-type: none; | ||
margin: 0; | ||
} | ||
|
||
li { | ||
display: inline; | ||
margin: 0 13px 3px 0; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Shorthands of length |
||
padding: 0; | ||
|
||
a { | ||
color: $color-blackish; | ||
white-space: nowrap; | ||
} | ||
|
||
a, | ||
a:hover, | ||
a:focus { | ||
border-bottom: 1px dotted $color-gray-60; | ||
text-decoration: none; | ||
} | ||
} | ||
} | ||
|
||
#sul-footer-img { | ||
display: table-cell; | ||
vertical-align: middle; | ||
width: 162px; | ||
} | ||
|
||
#sul-footer-links { | ||
display: table-cell; | ||
padding-left: 15px; | ||
text-align: left; | ||
vertical-align: middle; | ||
} | ||
|
||
@media (min-width: 768px) { | ||
#sul-footer { | ||
width: 750px; | ||
} | ||
} | ||
|
||
@media (min-width: 980px) { | ||
#sul-footer { | ||
width: 970px; | ||
} | ||
} | ||
|
||
@media (min-width: 1200px) { | ||
#sul-footer { | ||
width: 1170px; | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
$sul-footer-bg-color: $color-beige-10; | ||
$sul-footer-border-top-color: $color-beige-20; | ||
$footer-height: 200px; | ||
$sul-footer-shadow-color: rgba(0, 0, 0, 0.2); | ||
$sul-footer-shadow: 0 4px 8px -8px $sul-footer-shadow-color inset; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Files should end with a trailing newline |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env sh | ||
|
||
if ! gem list foreman -i --silent; then | ||
echo "Installing foreman..." | ||
gem install foreman | ||
fi | ||
|
||
exec foreman start -f Procfile.dev "$@" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
{ | ||
"dependencies": { | ||
"blacklight-range-limit": "8.2.4-beta.1", | ||
"bootstrap": "^4.6.2", | ||
"bootstrap-slider": "^11.0.2" | ||
"bootstrap-slider": "^11.0.2", | ||
"sass": "^1.57.1" | ||
}, | ||
"scripts": { | ||
"build:css": "sass ./app/assets/stylesheets/application.sass.scss:./app/assets/builds/application.css --no-source-map --load-path=node_modules" | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Files should end with a trailing newline