From 01ec52f4d7cbbcb31374d72127da90217e7d9ed9 Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Wed, 30 Mar 2016 13:57:14 -0400 Subject: [PATCH] Refactor caption as a scss component --- build/css/main.css | 22 +++++++++++++++++++++- lib/components/hero-caption.html | 20 -------------------- lib/components/hero-icon.html | 6 +++--- lib/index.html | 3 +-- lib/scss/components/_caption.scss | 21 +++++++++++++++++++++ lib/scss/main.scss | 3 ++- 6 files changed, 48 insertions(+), 27 deletions(-) delete mode 100644 lib/components/hero-caption.html create mode 100644 lib/scss/components/_caption.scss diff --git a/build/css/main.css b/build/css/main.css index b05fd02c..b7cd87be 100644 --- a/build/css/main.css +++ b/build/css/main.css @@ -5895,10 +5895,30 @@ button.close { background-color: #5c5e5c; color: #787c7f; } +/* + * Copyright 2016 Resin.io + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +.caption { + font-weight: bold; + font-size: 11px; + margin-bottom: 0; } + html { background-color: #535760; } -hero-icon[disabled] hero-caption { +hero-icon[disabled] .caption { color: #787c7f; } hero-button .btn { diff --git a/lib/components/hero-caption.html b/lib/components/hero-caption.html deleted file mode 100644 index 082f259c..00000000 --- a/lib/components/hero-caption.html +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - diff --git a/lib/components/hero-icon.html b/lib/components/hero-icon.html index 49a7fd61..25437cc6 100644 --- a/lib/components/hero-icon.html +++ b/lib/components/hero-icon.html @@ -1,10 +1,10 @@ -