From ca007e933bcd9f63aa77801656ed9dd4142c432c Mon Sep 17 00:00:00 2001 From: ARULNA Date: Fri, 2 Jun 2017 16:27:25 -0400 Subject: Initial coomit for AAI-UI(sparky-fe) Change-Id: I9f8482824a52bac431c100939899e760c0fa4fdb Signed-off-by: ARULNA --- resources/scss/bootstrap/mixins/_alerts.scss | 14 ++ .../scss/bootstrap/mixins/_background-variant.scss | 12 + .../scss/bootstrap/mixins/_border-radius.scss | 21 ++ resources/scss/bootstrap/mixins/_buttons.scss | 68 ++++++ resources/scss/bootstrap/mixins/_center-block.scss | 7 + resources/scss/bootstrap/mixins/_clearfix.scss | 22 ++ resources/scss/bootstrap/mixins/_forms.scss | 87 ++++++++ resources/scss/bootstrap/mixins/_gradients.scss | 60 +++++ .../scss/bootstrap/mixins/_grid-framework.scss | 78 +++++++ resources/scss/bootstrap/mixins/_grid.scss | 134 +++++++++++ resources/scss/bootstrap/mixins/_hide-text.scss | 21 ++ resources/scss/bootstrap/mixins/_image.scss | 30 +++ resources/scss/bootstrap/mixins/_labels.scss | 12 + resources/scss/bootstrap/mixins/_list-group.scss | 32 +++ resources/scss/bootstrap/mixins/_nav-divider.scss | 10 + .../scss/bootstrap/mixins/_nav-vertical-align.scss | 9 + resources/scss/bootstrap/mixins/_opacity.scss | 8 + resources/scss/bootstrap/mixins/_pagination.scss | 24 ++ resources/scss/bootstrap/mixins/_panels.scss | 24 ++ resources/scss/bootstrap/mixins/_progress-bar.scss | 10 + resources/scss/bootstrap/mixins/_reset-filter.scss | 8 + resources/scss/bootstrap/mixins/_reset-text.scss | 18 ++ resources/scss/bootstrap/mixins/_resize.scss | 6 + .../bootstrap/mixins/_responsive-visibility.scss | 27 +++ resources/scss/bootstrap/mixins/_size.scss | 10 + resources/scss/bootstrap/mixins/_tab-focus.scss | 9 + resources/scss/bootstrap/mixins/_table-row.scss | 28 +++ .../scss/bootstrap/mixins/_text-emphasis.scss | 12 + .../scss/bootstrap/mixins/_text-overflow.scss | 8 + .../scss/bootstrap/mixins/_vendor-prefixes.scss | 247 +++++++++++++++++++++ 30 files changed, 1056 insertions(+) create mode 100644 resources/scss/bootstrap/mixins/_alerts.scss create mode 100644 resources/scss/bootstrap/mixins/_background-variant.scss create mode 100644 resources/scss/bootstrap/mixins/_border-radius.scss create mode 100644 resources/scss/bootstrap/mixins/_buttons.scss create mode 100644 resources/scss/bootstrap/mixins/_center-block.scss create mode 100644 resources/scss/bootstrap/mixins/_clearfix.scss create mode 100644 resources/scss/bootstrap/mixins/_forms.scss create mode 100644 resources/scss/bootstrap/mixins/_gradients.scss create mode 100644 resources/scss/bootstrap/mixins/_grid-framework.scss create mode 100644 resources/scss/bootstrap/mixins/_grid.scss create mode 100644 resources/scss/bootstrap/mixins/_hide-text.scss create mode 100644 resources/scss/bootstrap/mixins/_image.scss create mode 100644 resources/scss/bootstrap/mixins/_labels.scss create mode 100644 resources/scss/bootstrap/mixins/_list-group.scss create mode 100644 resources/scss/bootstrap/mixins/_nav-divider.scss create mode 100644 resources/scss/bootstrap/mixins/_nav-vertical-align.scss create mode 100644 resources/scss/bootstrap/mixins/_opacity.scss create mode 100644 resources/scss/bootstrap/mixins/_pagination.scss create mode 100644 resources/scss/bootstrap/mixins/_panels.scss create mode 100644 resources/scss/bootstrap/mixins/_progress-bar.scss create mode 100644 resources/scss/bootstrap/mixins/_reset-filter.scss create mode 100644 resources/scss/bootstrap/mixins/_reset-text.scss create mode 100644 resources/scss/bootstrap/mixins/_resize.scss create mode 100644 resources/scss/bootstrap/mixins/_responsive-visibility.scss create mode 100644 resources/scss/bootstrap/mixins/_size.scss create mode 100644 resources/scss/bootstrap/mixins/_tab-focus.scss create mode 100644 resources/scss/bootstrap/mixins/_table-row.scss create mode 100644 resources/scss/bootstrap/mixins/_text-emphasis.scss create mode 100644 resources/scss/bootstrap/mixins/_text-overflow.scss create mode 100644 resources/scss/bootstrap/mixins/_vendor-prefixes.scss (limited to 'resources/scss/bootstrap/mixins') diff --git a/resources/scss/bootstrap/mixins/_alerts.scss b/resources/scss/bootstrap/mixins/_alerts.scss new file mode 100644 index 0000000..b092e85 --- /dev/null +++ b/resources/scss/bootstrap/mixins/_alerts.scss @@ -0,0 +1,14 @@ +// Alerts + +@mixin alert-variant($background, $border, $text-color) { + background-color: $background; + border-color: $border; + color: $text-color; + + hr { + border-top-color: darken($border, 5%); + } + .alert-link { + color: darken($text-color, 10%); + } +} diff --git a/resources/scss/bootstrap/mixins/_background-variant.scss b/resources/scss/bootstrap/mixins/_background-variant.scss new file mode 100644 index 0000000..533ff12 --- /dev/null +++ b/resources/scss/bootstrap/mixins/_background-variant.scss @@ -0,0 +1,12 @@ +// Contextual backgrounds + +// [converter] $parent hack +@mixin bg-variant($parent, $color) { + #{$parent} { + background-color: $color; + } + a#{$parent}:hover, + a#{$parent}:focus { + background-color: darken($color, 10%); + } +} diff --git a/resources/scss/bootstrap/mixins/_border-radius.scss b/resources/scss/bootstrap/mixins/_border-radius.scss new file mode 100644 index 0000000..30e065d --- /dev/null +++ b/resources/scss/bootstrap/mixins/_border-radius.scss @@ -0,0 +1,21 @@ +// Single side border-radius + +@mixin border-top-radius($radius) { + border-top-right-radius: $radius; + border-top-left-radius: $radius; +} + +@mixin border-right-radius($radius) { + border-bottom-right-radius: $radius; + border-top-right-radius: $radius; +} + +@mixin border-bottom-radius($radius) { + border-bottom-right-radius: $radius; + border-bottom-left-radius: $radius; +} + +@mixin border-left-radius($radius) { + border-bottom-left-radius: $radius; + border-top-left-radius: $radius; +} diff --git a/resources/scss/bootstrap/mixins/_buttons.scss b/resources/scss/bootstrap/mixins/_buttons.scss new file mode 100644 index 0000000..255c259 --- /dev/null +++ b/resources/scss/bootstrap/mixins/_buttons.scss @@ -0,0 +1,68 @@ +// Button variants +// +// Easily pump out default styles, as well as :hover, :focus, :active, +// and disabled options for all buttons + +@mixin button-variant($color, $background, $border) { + color: $color; + background-color: $background; + border-color: $border; + + &:focus, + &.focus { + color: $color; + background-color: darken($background, 10%); + border-color: darken($border, 25%); + } + &:hover { + color: $color; + background-color: darken($background, 10%); + border-color: darken($border, 12%); + } + &:active, + &.active, + .open > &.dropdown-toggle { + color: $color; + background-color: darken($background, 10%); + border-color: darken($border, 12%); + + &:hover, + &:focus, + &.focus { + color: $color; + background-color: darken($background, 17%); + border-color: darken($border, 25%); + } + } + &:active, + &.active, + .open > &.dropdown-toggle { + background-image: none; + } + &.disabled, + &[disabled], + fieldset[disabled] & { + &, + &:hover, + &:focus, + &.focus, + &:active, + &.active { + background-color: $background; + border-color: $border; + } + } + + .badge { + color: $background; + background-color: $color; + } +} + +// Button sizes +@mixin button-size($padding-vertical, $padding-horizontal, $font-size, $line-height, $border-radius) { + padding: $padding-vertical $padding-horizontal; + font-size: $font-size; + line-height: $line-height; + border-radius: $border-radius; +} diff --git a/resources/scss/bootstrap/mixins/_center-block.scss b/resources/scss/bootstrap/mixins/_center-block.scss new file mode 100644 index 0000000..e06fb5e --- /dev/null +++ b/resources/scss/bootstrap/mixins/_center-block.scss @@ -0,0 +1,7 @@ +// Center-align a block level element + +@mixin center-block() { + display: block; + margin-left: auto; + margin-right: auto; +} diff --git a/resources/scss/bootstrap/mixins/_clearfix.scss b/resources/scss/bootstrap/mixins/_clearfix.scss new file mode 100644 index 0000000..8042d18 --- /dev/null +++ b/resources/scss/bootstrap/mixins/_clearfix.scss @@ -0,0 +1,22 @@ +// Clearfix +// +// For modern browsers +// 1. The space content is one way to avoid an Opera bug when the +// contenteditable attribute is included anywhere else in the document. +// Otherwise it causes space to appear at the top and bottom of elements +// that are clearfixed. +// 2. The use of `table` rather than `block` is only necessary if using +// `:before` to contain the top-margins of child elements. +// +// Source: http://nicolasgallagher.com/micro-clearfix-hack/ + +@mixin clearfix() { + &:before, + &:after { + content: " "; // 1 + display: table; // 2 + } + &:after { + clear: both; + } +} diff --git a/resources/scss/bootstrap/mixins/_forms.scss b/resources/scss/bootstrap/mixins/_forms.scss new file mode 100644 index 0000000..7a26de5 --- /dev/null +++ b/resources/scss/bootstrap/mixins/_forms.scss @@ -0,0 +1,87 @@ +// Form validation states +// +// Used in forms.less to generate the form validation CSS for warnings, errors, +// and successes. + +@mixin form-control-validation($text-color: #555, $border-color: #ccc, $background-color: #f5f5f5) { + // Color the label and help text + .help-block, + .control-label, + .radio, + .checkbox, + .radio-inline, + .checkbox-inline, + &.radio label, + &.checkbox label, + &.radio-inline label, + &.checkbox-inline label { + color: $text-color; + } + // Set the border and box shadow on specific inputs to match + .form-control { + border-color: $border-color; + @include box-shadow(inset 0 1px 1px rgba(0, 0, 0, .075)); // Redeclare so transitions work + &:focus { + border-color: darken($border-color, 10%); + $shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px lighten($border-color, 20%); + @include box-shadow($shadow); + } + } + // Set validation states also for addons + .input-group-addon { + color: $text-color; + border-color: $border-color; + background-color: $background-color; + } + // Optional feedback icon + .form-control-feedback { + color: $text-color; + } +} + +// Form control focus state +// +// Generate a customized focus state and for any input with the specified color, +// which defaults to the `$input-border-focus` variable. +// +// We highly encourage you to not customize the default value, but instead use +// this to tweak colors on an as-needed basis. This aesthetic change is based on +// WebKit's default styles, but applicable to a wider range of browsers. Its +// usability and accessibility should be taken into account with any change. +// +// Example usage: change the default blue border and shadow to white for better +// contrast against a dark gray background. +@mixin form-control-focus($color: $input-border-focus) { + $color-rgba: rgba(red($color), green($color), blue($color), .6); + &:focus { + border-color: $color; + outline: 0; + @include box-shadow(inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px $color-rgba); + } +} + +// Form control sizing +// +// Relative text size, padding, and border-radii changes for form controls. For +// horizontal sizing, wrap controls in the predefined grid classes. `