diff options
| author | Ofer Lehr <ofer@oferlehr.com> | 2014-12-06 22:43:12 +0200 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2014-12-06 23:34:55 +0200 |
| commit | db363484901a9521949cdd394c0701bb51153e2b (patch) | |
| tree | ecf7af4573a457f1747340f41f11029ce2469ee2 /res/css/partials/info-card.scss | |
| parent | 65f2db92de282047317dab0c4669c2c255328a2e (diff) | |
new info box (now card) styling - Partial
added a class to the info card to style different types in css.
also rearranged colors in helpers.js
(alon: changed implementation and broke the edit, will fix in the
morning)
Diffstat (limited to 'res/css/partials/info-card.scss')
| -rw-r--r-- | res/css/partials/info-card.scss | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/res/css/partials/info-card.scss b/res/css/partials/info-card.scss new file mode 100644 index 00000000..d3907679 --- /dev/null +++ b/res/css/partials/info-card.scss @@ -0,0 +1,88 @@ +@import '../modules/mixins'; // For box-shadow and box-sizing + +.info-container { + position: absolute; + right: $doc-margin; + top: $two-baselines; +} + +.subtitle{ + font-style:italic; + color: #bbb; + font-size: 12px; + float:right; +} + +.edge_info, .info { + color: $dark-grey; + background-color: white; + @include rz-box-shadow(0px, 1px, 6px, 0px, rgba(0,0,0,0.3) ); + position: relative; + width:250px; + padding: 24px; + @include rz-box-sizing-border; + border-top: 6px solid $dark-grey; +} + +// change card top border color by node type +.info.type-person { + border-top: 6px solid $blue; +} + +.info.type-club { + border-top: 6px solid $magenta; +} + +.info.type-skill { + border-top: 6px solid $yellow; +} + +.info.type-third-internship-proposal { + border-top: 6px solid $cyan; +} + +.info.type-internship { + border-top: 6px solid $orange; +} + +.info.type-interest { + border-top: 6px solid $purple; +} + +.info.type-empty { + border-top: 6px solid $mid-grey; +} + +.info.type-chainlink { + border-top: 6px solid $dark-grey; +} + +.info.type-project { + border-top: 6px solid $green; +} + +// card elements styles + +.info .info-card-attr { + display: block; + text-transform: capitalize; + font-size: $h4-size; + font-family: $bold-font-family; +} + +.info .info-card-attr-val { + display: block; + text-transform: capitalize; + font-size: $h2-size; + margin: 12px 0px 24px 0px; +} + +.info hr { + width: 250px; + position: relative; + left: -24px; + border: none; + background-color: $mid-light-grey; + height: 2px; + margin: $two-baselines 0px $two-baselines 0px; +}
\ No newline at end of file |
