-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
restore nested styles for components
- Loading branch information
1 parent
d453d39
commit 25f3970
Showing
7 changed files
with
286 additions
and
294 deletions.
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 |
---|---|---|
@@ -1,63 +1,65 @@ | ||
/* TODO restore to nested styles */ | ||
:host .card { | ||
padding: 2.5rem; | ||
position: relative; | ||
display: flex; | ||
flex-direction: column; | ||
min-width: 0; | ||
word-wrap: break-word; | ||
background-color: #fff; | ||
background-clip: initial; | ||
text-align: center; | ||
|
||
@media(max-width:768px) { | ||
padding:0; | ||
:host { | ||
|
||
& .card { | ||
padding: 2.5rem; | ||
position: relative; | ||
display: flex; | ||
flex-direction: column; | ||
min-width: 0; | ||
word-wrap: break-word; | ||
background-color: #fff; | ||
background-clip: initial; | ||
text-align: center; | ||
|
||
@media(max-width:768px) { | ||
padding:0; | ||
} | ||
|
||
& .body { | ||
padding:10px; | ||
} | ||
} | ||
} | ||
|
||
:host .card .body { | ||
padding:10px; | ||
} | ||
|
||
:host .card-xs { | ||
margin: 0.25rem; | ||
flex: 1 1 16.666%; | ||
max-width: 250px; | ||
& .card-xs { | ||
margin: 0.25rem; | ||
flex: 1 1 16.666%; | ||
max-width: 250px; | ||
|
||
@media (max-width: 1024px) { | ||
max-width: 100%; | ||
} | ||
} | ||
& .card-sm { | ||
margin: 0.25rem; | ||
flex: 1 1 25%; | ||
max-width: 380px; | ||
|
||
@media (max-width: 1024px) { | ||
max-width: 100%; | ||
} | ||
} | ||
& .card-md { | ||
margin: 0.25rem; | ||
flex: 1 1 33.333%; | ||
max-width: 450px; | ||
|
||
@media (max-width: 1024px) { | ||
max-width: 100%; | ||
@media (max-width: 1024px) { | ||
max-width: 100%; | ||
} | ||
} | ||
} | ||
:host .card-sm { | ||
margin: 0.25rem; | ||
flex: 1 1 25%; | ||
max-width: 380px; | ||
|
||
@media (max-width: 1024px) { | ||
max-width: 100%; | ||
& .card-full { | ||
margin: 0.25rem; | ||
flex: 1 1 33.333%; | ||
} | ||
} | ||
:host .card-md { | ||
margin: 0.25rem; | ||
flex: 1 1 33.333%; | ||
max-width: 450px; | ||
|
||
@media (max-width: 1024px) { | ||
max-width: 100%; | ||
|
||
& .card-img-top { | ||
background-size: cover; | ||
background-position-x: center; | ||
background-position-y: center; | ||
& img { | ||
width: 100%; | ||
max-width: 200px; | ||
} | ||
} | ||
} | ||
:host .card-full { | ||
margin: 0.25rem; | ||
flex: 1 1 33.333%; | ||
} | ||
|
||
:host .card-img-top { | ||
background-size: cover; | ||
background-position-x: center; | ||
background-position-y: center; | ||
} | ||
|
||
:host .card-img-top img { | ||
width: 100%; | ||
max-width: 200px; | ||
} |
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,22 +1,20 @@ | ||
/* TODO restore to nested styles */ | ||
:host { | ||
grid-area: footer; | ||
} | ||
& .footer { | ||
background-color: #192a27; | ||
min-height: 30px; | ||
padding-top: 10px; | ||
|
||
:host .footer { | ||
background-color: #192a27; | ||
min-height: 30px; | ||
padding-top: 10px; | ||
} | ||
& h4 { | ||
width: 90%; | ||
margin: 0 auto; | ||
padding: 0; | ||
text-align: center; | ||
} | ||
|
||
:host h4 { | ||
width: 90%; | ||
margin: 0 auto; | ||
padding: 0; | ||
text-align: center; | ||
} | ||
|
||
:host a { | ||
color: white; | ||
text-decoration:none; | ||
& a { | ||
color: white; | ||
text-decoration:none; | ||
} | ||
} | ||
} |
Oops, something went wrong.