-
Notifications
You must be signed in to change notification settings - Fork 8
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
fix styling of book info page #45
base: master
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
@import '../fonts/fontWeight.scss'; | ||
|
||
.PageTitle { | ||
margin: 0 0 1.25em ; | ||
font: $regular 2.25em/1.5 'Quicksand', sans-serif; | ||
text-transform: uppercase; | ||
} | ||
|
||
.Section { | ||
padding: 2em; | ||
|
||
&__row::after { | ||
content: ""; | ||
clear: both; | ||
display: table; | ||
} | ||
} | ||
|
||
.BookDetails { | ||
float: left; | ||
text-align: center; | ||
width: 40em; | ||
|
||
dt { | ||
float: left; | ||
clear: left; | ||
width: 5em; | ||
text-align: right; | ||
text-transform: uppercase; | ||
font: $regular 1.5em/1.5 'Quicksand', sans-serif; | ||
} | ||
|
||
dt::after { | ||
content: ":"; | ||
} | ||
|
||
dd { | ||
margin: 0.5em; | ||
//padding-left: 0.5em; | ||
padding: 0 0 3.5em 0; | ||
font-style: 'Quicksand', sans-serif; | ||
font-size: larger; | ||
} | ||
} | ||
|
||
.Button { | ||
border: none; | ||
color: white; | ||
padding: 0.5em ; | ||
text-align: center; | ||
font-size: 1.5em; | ||
margin: 0 2em; | ||
display: inline-block; | ||
text-transform: uppercase; | ||
cursor: pointer; | ||
border-radius: 0.5em; | ||
|
||
&__back { | ||
background-color: #db5127; | ||
} | ||
|
||
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. @Shinh18 : both buttons have the same rules applied, except for the background, you could put everything in common and add two classes on your HTML element, one for the common aspect and one for the specific rule |
||
&__add { | ||
background-color: #3e8e41; | ||
} | ||
} |
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.
don't really like the floats and % unit
i would also like you to change the px unit into em, em is a unit scaled on the current font-size