-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
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
Compile examples CSS with Sass using BS variables and mixins #18709
Closed
Closed
Changes from 6 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
d3fb5ae
compile CSS files for the examples and lint the SCSS files
bassjobsen 8099eb7
SCSS to generate albums.css for the album example
bassjobsen 8b18fd4
compile the examples too
bassjobsen e30e062
compile the examples too
bassjobsen c8309dc
allow comments in the compiled CSS code of the examples
bassjobsen 80b073f
compile comments into the CSS code
bassjobsen 7c3c941
SCSS code for the dashboard example
bassjobsen dc3b450
update HTML code for newest CSS code
bassjobsen 6829c57
compile the dashboard example
bassjobsen 36a35f7
compile the dashboard example
bassjobsen d2eab9c
Update dashboard.scss
bassjobsen dd79e40
make images fluid add `card-img` class
bassjobsen d406638
apply `margin-bottom` on `.card-img` selector and use hover mixin
bassjobsen 8958835
scss code for the blog example
bassjobsen f93b60e
add some new CSS classes
bassjobsen b6ea74d
compile the blog example
bassjobsen 1f55496
compile the blog example
bassjobsen d9e1330
Update blog.scss
bassjobsen 15c595e
Update album.scss
bassjobsen ba092a8
Update blog.scss
bassjobsen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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,89 @@ | ||
// Load Bootstrap variables and mixins | ||
@import "../../../../../scss/variables"; | ||
@import "../../../../../scss/mixins"; | ||
|
||
body { | ||
min-height: 75rem; /* Can be removed; just added for demo purposes */ | ||
} | ||
|
||
.navbar { | ||
margin-bottom: 0; | ||
} | ||
|
||
.navbar-collapse .container-fluid { | ||
padding: 2rem 2.5rem; | ||
border-bottom: 1px solid #55595c; | ||
} | ||
|
||
.navbar-collapse h4 { | ||
color: #818a91; | ||
} | ||
|
||
.navbar-collapse .text-muted { | ||
color: #818a91; | ||
} | ||
|
||
.about { | ||
float: left; | ||
max-width: 30rem; | ||
margin-right: 3rem; | ||
} | ||
|
||
.social a { | ||
font-weight: 500; | ||
color: #eceeef; | ||
} | ||
.social a:hover { | ||
color: #fff; | ||
} | ||
|
||
.jumbotron { | ||
padding-top: 6rem; | ||
padding-bottom: 6rem; | ||
margin-bottom: 0; | ||
background-color: #fff; | ||
} | ||
|
||
.jumbotron p:last-child { | ||
margin-bottom: 0; | ||
} | ||
|
||
.jumbotron-heading { | ||
font-weight: 300; | ||
} | ||
|
||
.jumbotron .container { | ||
max-width: 40rem; | ||
} | ||
|
||
.album { | ||
min-height: 50rem; /* Can be removed; just added for demo purposes */ | ||
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 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 |
||
padding-top: 3rem; | ||
padding-bottom: 3rem; | ||
background-color: #f7f7f7; | ||
} | ||
|
||
.card { | ||
float: left; | ||
width: 33.333%; | ||
padding: .75rem; | ||
margin-bottom: 2rem; | ||
border: 0; | ||
} | ||
|
||
.card > img { | ||
margin-bottom: .75rem; | ||
} | ||
|
||
.card-text { | ||
font-size: 85%; | ||
} | ||
|
||
footer { | ||
padding-top: 3rem; | ||
padding-bottom: 3rem; | ||
|
||
p { | ||
margin-bottom: .25rem; | ||
} | ||
} |
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
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Use
//
comments everywhere