Skip to content
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

Book detail: title and shadow #5

Merged
merged 10 commits into from Jun 10, 2019
Merged

Conversation

bhflm
Copy link
Contributor

@bhflm bhflm commented Jun 7, 2019

Summary

Added title border and shadow

Screenshots

image

Trello Card

https://trello.com/c/qCqZRvZE/33-detalle-de-libro-iii-estructura

@bhflm bhflm changed the base branch from master to book-detail-pic June 7, 2019 18:57
@bhflm bhflm changed the title Book detail structure Book detail: title and shadow Jun 7, 2019
position: relative;
margin-bottom: 40px;
&::after {
content:"";
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would write content: '';

@@ -1 +1,3 @@
$gray: #828282;
$earls-green: #BED23C;
$shadow-background: rgba(0,0,0,0.5);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this is black with some opacity I would change this name to $black-05

padding: 10px;
padding: 20px;
background-color: #FFF;
box-shadow: 4px 4px 10px 0 $shadow-background;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same

@@ -3,7 +3,10 @@
}

.book-container {
padding: 10px;
padding: 20px;
background-color: #FFF;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use $white instead

maquetado/scss/styles.scss Show resolved Hide resolved
maquetado/scss/styles.scss Show resolved Hide resolved
padding: 20px;
background-color: #FFF;
box-shadow: 4px 4px 10px 0 $shadow-background;
width: 1000px;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remember to read our CSS style guide. There it says that elements with a width higher than 250px have to use following structure for responsive purposes:

Suggested change
width: 1000px;
max-width: 1000px;
width: 100%;

@Dorian30 Dorian30 assigned bhflm and unassigned Dorian30 Jun 10, 2019
@Dorian30 Dorian30 requested a review from damfinkel June 10, 2019 14:16
@bhflm bhflm assigned Dorian30 and unassigned bhflm Jun 10, 2019
margin-right: 40px;
width: 261px;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remember the style guide here, this is greater than 250px:

Suggested change
width: 261px;
width: 100%;
max-width: 261px;

@Dorian30 Dorian30 assigned bhflm and unassigned Dorian30 Jun 10, 2019
@@ -11,9 +11,11 @@
}

.book-cover {
height: 368px;
height: 100%;
max-width: 380px;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not necessary when it comes to height. You can just leave height: 380px.

@bhflm bhflm merged commit 2b1310e into book-detail-pic Jun 10, 2019
@bhflm bhflm mentioned this pull request Jun 10, 2019
bhflm pushed a commit that referenced this pull request Jun 10, 2019
@bhflm bhflm deleted the book-detail-structure branch July 1, 2019 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants