From dd7def68e3ec661ee2ca71b68b7c122edbcd8054 Mon Sep 17 00:00:00 2001 From: Brandy Carney Date: Tue, 23 Feb 2016 19:19:09 -0500 Subject: [PATCH] feat(windows): add card components references #5565 --- ionic/components.wp.scss | 1 + ionic/components/alert/alert.wp.scss | 2 +- ionic/components/card/card.wp.scss | 136 +++++++++++++++++++++++++++ 3 files changed, 138 insertions(+), 1 deletion(-) create mode 100644 ionic/components/card/card.wp.scss diff --git a/ionic/components.wp.scss b/ionic/components.wp.scss index a8ac2d8d106..88dd405088d 100644 --- a/ionic/components.wp.scss +++ b/ionic/components.wp.scss @@ -10,6 +10,7 @@ "components/alert/alert.wp", "components/badge/badge.wp", "components/button/button.wp", + "components/card/card.wp", "components/checkbox/checkbox.wp", "components/chip/chip.wp", "components/content/content.wp", diff --git a/ionic/components/alert/alert.wp.scss b/ionic/components/alert/alert.wp.scss index 5c238bce03f..4dabf8afe30 100644 --- a/ionic/components/alert/alert.wp.scss +++ b/ionic/components/alert/alert.wp.scss @@ -194,7 +194,7 @@ $alert-wp-buttons-justify-content: flex-end !default; border-radius: 2px; border-width: 2px; border-style: solid; - border-color: darken($list-wp-border-color, 40%); + border-color: #818181; background-color: transparent; } diff --git a/ionic/components/card/card.wp.scss b/ionic/components/card/card.wp.scss new file mode 100644 index 00000000000..7afc63f8f84 --- /dev/null +++ b/ionic/components/card/card.wp.scss @@ -0,0 +1,136 @@ +@import "../../globals.wp"; +@import "./card"; + +// Windows Card +// -------------------------------------------------- + +$card-wp-margin-top: 10px !default; +$card-wp-margin-right: 10px !default; +$card-wp-margin-bottom: 10px !default; +$card-wp-margin-left: 10px !default; + +$card-wp-padding-top: 13px !default; +$card-wp-padding-right: 16px !default; +$card-wp-padding-bottom: 13px !default; +$card-wp-padding-left: 16px !default; + +$card-wp-padding-media-top: 10px !default; +$card-wp-padding-media-bottom: 10px !default; + +$card-wp-avatar-size: 4rem !default; +$card-wp-thumbnail-size: 8rem !default; + +$card-wp-background-color: $list-wp-background-color !default; +$card-wp-box-shadow: 0 2px 2px 0 rgba(0,0,0,.14), 0 3px 1px -2px rgba(0,0,0,.2), 0 1px 5px 0 rgba(0,0,0,.12) !default; +$card-wp-border-radius: 2px !default; +$card-wp-font-size: 1.4rem !default; +$card-wp-line-height: 1.5 !default; + +$card-wp-text-color: #222 !default; +$card-wp-title-font-size: 2.4rem !default; +$card-wp-title-padding: 8px 0 8px 0 !default; +$card-wp-title-margin: 2px 0 2px !default; +$card-wp-title-text-color: #222 !default; + +$card-wp-header-font-size: 1.6rem !default; +$card-wp-header-padding: 16px !default; +$card-wp-header-color: #222 !default; + + +ion-card { + margin: $card-wp-margin-top $card-wp-margin-right $card-wp-margin-bottom $card-wp-margin-left; + font-size: $card-wp-font-size; + + background: $card-wp-background-color; + box-shadow: $card-wp-box-shadow; + border-radius: $card-wp-border-radius; + + ion-list { + margin-bottom: 0; + + ion-label { + padding: 0; + } + + .item-inner { + border-bottom: 1px solid $list-wp-border-color; + } + + > .item:last-child, + > ion-item-sliding:last-child .item { + border-bottom: none; + } + } + + .item-inner { + border: none; + } + + ion-card-content { + padding: $card-wp-padding-top $card-wp-padding-right $card-wp-padding-bottom $card-wp-padding-left; + font-size: $card-wp-font-size; + line-height: $card-wp-line-height; + } + + ion-card-header { + padding: $card-wp-header-padding; + font-size: $card-wp-header-font-size; + color: $card-wp-header-color; + } + + ion-card-header + ion-card-content, + .item + ion-card-content { + padding-top: 0; + } + + ion-note[item-left], + ion-note[item-right], { + font-size: 1.3rem; + } + + ion-card-title { + display: block; + line-height: 1.2; + padding: $card-wp-title-padding; + margin: $card-wp-title-margin; + font-size: $card-wp-title-font-size; + color: $card-wp-title-text-color; + } + + h1 { + margin: 0 0 2px; + font-size: 2.4rem; + font-weight: normal; + color: $card-wp-text-color; + } + + h2 { + margin: 2px 0 2px; + font-size: 1.6rem; + font-weight: normal; + color: $card-wp-text-color; + } + + h3, + h4, + h5, + h6 { + margin: 2px 0 2px; + font-size: 1.4rem; + font-weight: normal; + color: $card-wp-text-color; + } + + p { + font-size: 1.4rem; + margin: 0 0 2px; + line-height: 1.5; + font-weight: normal; + color: $card-wp-text-color; + } + +} + +ion-card + ion-card { + margin-top: 0; +}