From 30662a1989cd6dc6770ffc4c3c7c7538da16f95d Mon Sep 17 00:00:00 2001 From: Ben Golder Date: Thu, 17 Dec 2020 19:10:49 -0800 Subject: [PATCH 1/3] Add compact drop down and button styles - Solves #205 - Dropdown story: [#176151526] - Button story: [#175169414] --- .../stylesheets/_honeycrisp-compact.scss | 28 +++++++++++++++++++ .../pages/honeycrisp_compact.html.erb | 8 ++++++ .../honeycrisp_compact/_buttons.html.erb | 19 +++++++++++++ .../_form_elements.html.erb | 12 ++++++++ 4 files changed, 67 insertions(+) create mode 100644 app/views/examples/honeycrisp_compact/_buttons.html.erb create mode 100644 app/views/examples/honeycrisp_compact/_form_elements.html.erb diff --git a/app/assets/stylesheets/_honeycrisp-compact.scss b/app/assets/stylesheets/_honeycrisp-compact.scss index e61705f6..3593c445 100644 --- a/app/assets/stylesheets/_honeycrisp-compact.scss +++ b/app/assets/stylesheets/_honeycrisp-compact.scss @@ -1,10 +1,38 @@ .honeycrisp-compact { font-size: $font-size-19; line-height: $s19; + .data-table { font-size: inherit; th, td { padding: $s15; } } + + .button { + line-height: 2rem; + padding: $s10; + font-weight: normal; + border-width: 1px; + box-shadow: 0 1px 0px rgba(#000, .5); + border-radius: $border-radius; + font-size: $font-size-25-small; + [class^="icon-"], [class*=" icon-"] { + vertical-align: 0; + } + } + + .select { + line-height: 4.6rem; + height: 4.6rem; + &:after { + width: 4.2rem; + } + } + .select__element { + font-size: $font-size-25-small; + font-weight: normal; + border: 1px solid $color-grey-darkest; + padding: 0 4.2rem 0 $s15; + } } diff --git a/app/views/cfa/styleguide/pages/honeycrisp_compact.html.erb b/app/views/cfa/styleguide/pages/honeycrisp_compact.html.erb index ca50d47f..c0df35c7 100644 --- a/app/views/cfa/styleguide/pages/honeycrisp_compact.html.erb +++ b/app/views/cfa/styleguide/pages/honeycrisp_compact.html.erb @@ -1,7 +1,13 @@ <% content_for(:template_name) { "styleguide" } %> <% content_for :subnavigation do %> +
  • + Atoms + Molecules