-
Notifications
You must be signed in to change notification settings - Fork 14
Card design update #290
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
Merged
Merged
Card design update #290
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
8c86a9e
fix(card): update card component design
rishichawda d1b99da
test(card): fix broken test
rishichawda 35a85ee
fix(card): minor changes and fixes
rishichawda 989aabc
fix icon orientation
KRRISH96 0731d8b
update cursor style.
KRRISH96 72c6c84
fix(card): fix card animation
rishichawda dff29f8
fix(card): fix card mobile view
rishichawda 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 hidden or 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 hidden or 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 hidden or 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,105 +1,117 @@ | ||
| @import '../globals/theme'; | ||
|
|
||
| :local(.card) { | ||
| display: flex; | ||
| flex-direction: column; | ||
| box-sizing: border-box; | ||
| background: $original-white; | ||
| border-radius: 3px; | ||
| padding: 15px 20px; | ||
| margin: 5px; | ||
| font-family: Roboto, sans-serif; | ||
| display: flex; | ||
| flex-direction: column; | ||
| box-sizing: border-box; | ||
| background: $original-white; | ||
| border-radius: 3px; | ||
| padding: 1.6%; | ||
| margin: 5px; | ||
| font-family: Roboto, sans-serif; | ||
| } | ||
|
|
||
| .expandedContent { | ||
| max-height: 0; | ||
| overflow: hidden; | ||
| &.expanded { | ||
| max-height: 2000px; | ||
| transition: max-height 1s ease; | ||
| } | ||
| &.collapsed { | ||
| max-height: 0; | ||
| transition: max-height 0.5s ease; | ||
| } | ||
| -moz-transition: height .5s; | ||
| -ms-transition: height .5s; | ||
| -o-transition: height .5s; | ||
| -webkit-transition: height .5s; | ||
| transition: height .5s; | ||
| height: 0; | ||
| overflow: hidden; | ||
| @media only screen and (max-width: 768px) { | ||
| padding: 0 3%; | ||
| } | ||
| @media only screen and (max-width:500px) { | ||
| padding: 0 5%; | ||
| line-height: 1.4em; | ||
| } | ||
| } | ||
|
|
||
| :local(.noPadding) { | ||
| padding: 0; | ||
| padding: 0; | ||
| } | ||
|
|
||
| :local(.wrapContent) { | ||
| display: inline-block; | ||
| display: inline-block; | ||
| } | ||
|
|
||
| :local(.elevation-low) { | ||
| box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), | ||
| 0 3px 1px -2px rgba(0, 0, 0, 0.2), | ||
| 0 1px 5px 0 rgba(0, 0, 0, 0.12); | ||
| -webkit-box-shadow: 0 1px 3px 1.5px #d4d4d5, 0 0 0 1px #d4d4d5; | ||
| box-shadow: 0 1px 3px 1.5px #d4d4d5, 0 0 0 1px #d4d4d5; | ||
| } | ||
|
|
||
| :local(.elevation-medium) { | ||
| box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14), | ||
| 0 1px 10px 0 rgba(0, 0, 0, 0.12), | ||
| 0 2px 4px -1px rgba(0, 0, 0, 0.2); | ||
| -webkit-box-shadow: 0 1px 3px 3px #d4d4d5, 0 0 0 1px #d4d4d5; | ||
| box-shadow: 0 1px 3px 3px #d4d4d5, 0 0 0 1px #d4d4d5; | ||
| } | ||
|
|
||
| :local(.elevation-high) { | ||
| box-shadow: 0 16px 24px 2px rgba(0, 0, 0, 0.14), | ||
| 0 6px 30px 5px rgba(0, 0, 0, 0.12), | ||
| 0 8px 10px -5px rgba(0, 0, 0, 0.2); | ||
| -webkit-box-shadow: 0 1px 3px 4px #d4d4d5, 0 0 0 2px #d4d4d5; | ||
| box-shadow: 0 1px 3px 4px #d4d4d5, 0 0 0 2px #d4d4d5; | ||
| } | ||
|
|
||
| :local(.cardHeader) { | ||
| font-weight: bold; | ||
| font-size: 18px; | ||
| padding: 5px 0; | ||
| margin-bottom: 15px; | ||
| font-weight: bold; | ||
| font-size: 18px; | ||
| padding: 5px 0; | ||
| margin-bottom: 15px; | ||
| @media only screen and (max-width: 768px) { | ||
| padding: 1% 3%; | ||
| } | ||
| @media only screen and (max-width:500px) { | ||
| padding: 2% 5%; | ||
| line-height: 1.4em; | ||
| } | ||
| } | ||
|
|
||
| :local(.cardContent) { | ||
| margin-bottom: 0.5em; | ||
| @media only screen and (max-width: 768px) { | ||
| padding: 1% 3%; | ||
| } | ||
| @media only screen and (max-width:500px) { | ||
| padding: 2% 5%; | ||
| line-height: 1.4em; | ||
| } | ||
| } | ||
|
|
||
| :local(.cardFooter) { | ||
| width: 100%; | ||
| margin-top: 2%; | ||
| display: flex; | ||
| justify-content: space-between; | ||
| box-sizing: border-box; | ||
| padding: 1%; | ||
| font-size: 0.8rem; | ||
| width: 100%; | ||
| margin-top: 0.2em; | ||
| display: flex; | ||
| justify-content: space-between; | ||
| box-sizing: border-box; | ||
| padding: 0.5%; | ||
| font-size: 0.8rem; | ||
| flex-direction: column; | ||
| @media only screen and (max-width: 768px) { | ||
| padding: 1% 3%; | ||
| } | ||
| @media only screen and (max-width:500px) { | ||
| padding: 2% 5%; | ||
| line-height: 1.4em; | ||
| } | ||
| } | ||
|
|
||
| :local(.card-actions) { | ||
| float: left; | ||
| float: left; | ||
| align-self: center; | ||
| height: 100%; | ||
| width: 50%; | ||
| } | ||
|
|
||
| :local(.expand-icon) { | ||
| align-self: center; | ||
| height: 100%; | ||
| width: 50%; | ||
| transition: transform 0.5s linear; | ||
| padding: 1%; | ||
| font-size: 1.36em; | ||
| cursor: pointer; | ||
| } | ||
|
|
||
| :local(.more-icon) { | ||
| height: 20px; | ||
| width: 20px; | ||
| position: relative; | ||
| border-radius: 50%; | ||
| box-sizing: border-box; | ||
| padding: 1em; | ||
| &:hover { | ||
| cursor: pointer; | ||
| } | ||
| &::after { | ||
| position: absolute; | ||
| content: ''; | ||
| display: block; | ||
| border-left: 2px solid #454a4f; | ||
| border-bottom: 2px solid #454a4f; | ||
| height: 8px; | ||
| width: 8px; | ||
| top: 0.4em; | ||
| left: 30%; | ||
| transform: rotate(-45deg); | ||
| transition: 0.5s ease-in-out; | ||
| } | ||
| :local(.open) { | ||
| transform: rotate(180deg); | ||
| } | ||
|
|
||
| :local(.less-icon) { | ||
| &::after { | ||
| top: 0.7em; | ||
| transform: rotate(135deg); | ||
| } | ||
| } | ||
| :local(.close) { | ||
| transform: rotate(0deg); | ||
| } | ||
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.
Uh oh!
There was an error while loading. Please reload this page.