OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Move basic stlyes (like select or input tags) to the core basic.sass and remove the foundation file
Henriette Darge6996189fc0c1
diff --git a/frontend/src/global_styles/content/_forms.sass b/frontend/src/global_styles/content/_forms.sassindex fd1463595c9..dbfa91332b7 100644--- a/frontend/src/global_styles/content/_forms.sass+++ b/frontend/src/global_styles/content/_forms.sass@@ -26,7 +26,11 @@// See COPYRIGHT and LICENSE files for more details.//+++@import "../openproject/variables"+$form--field-types: (text-field, text-area, select, check-box, radio-button, range-field, search, file, date-picker)+$base-line-height: 1.5+$form-label-color: var(--body-font-color)%input-styleborder: var(--content-form-input-border)@@ -864,12 +868,11 @@ input[readonly].-clickableflex: 0 0 autodisplay: flexfont-size: 0.9rem- background: $inlinelabel-background- color: $inlinelabel-color+ background: #EEEEEE+ color: var(--body-font-color)border: var(--content-form-input-border)- // OR $inlinelabel-borderborder-radius: 2px- padding: 0 $form-padding+ padding: 0 0.5remmargin-bottom: 0remalign-items: centerline-height: 1diff --git a/frontend/src/global_styles/content/_toast.sass b/frontend/src/global_styles/content/_toast.sassindex f1d27613f47..7f2f6f5525c 100644--- a/frontend/src/global_styles/content/_toast.sass+++ b/frontend/src/global_styles/content/_toast.sass@@ -54,6 +54,7 @@ $nm-padding-box: rem-calc(10px)$nm-pb-border-color: $nm-color-border$nm-pb-regress-color: whiteSmoke+$nm-pb-regress-fill-color: #00558b$nm-pb-border-radius: rem-calc(6)$nm-pb-height: rem-calc(20)@@ -279,6 +280,16 @@ $nm-upload-box-padding: rem-calc(15) rem-calc(25)border: rem-calc(1) solid $nm-pb-border-colorcolor: var(--primary-color-dark)margin: 0+ width: 100%++ &::-webkit-progress-bar+ background: $nm-pb-regress-color++ &::-webkit-progress-value+ background: $nm-pb-regress-fill-color++ &::-moz-progress-bar+ background: $nm-pb-regress-fill-color.op-toast--toggle-messagefont-size: rem-calc(16)diff --git a/frontend/src/global_styles/layout/_toolbar.sass b/frontend/src/global_styles/layout/_toolbar.sassindex ee2a265b2d2..85b8b67f113 100644--- a/frontend/src/global_styles/layout/_toolbar.sass+++ b/frontend/src/global_styles/layout/_toolbar.sass@@ -284,7 +284,7 @@ $nm-color-success-background: #d8fdd1.toolbar-input-group--affixbackground: var(--toolbar-item--bg-color)border: 1px solid var(--toolbar-item--border-color)- color: $inlinelabel-color+ color: var(--body-font-color)border-radius: 2pxwhite-space: nowrapdiff --git a/frontend/src/global_styles/openproject/_base.sass b/frontend/src/global_styles/openproject/_base.sassnew file mode 100644index 00000000000..f3ed34848ea--- /dev/null+++ b/frontend/src/global_styles/openproject/_base.sass@@ -0,0 +1,204 @@+//-- copyright+// OpenProject is an open source project management software.+// Copyright (C) 2012-2023 the OpenProject GmbH+//+// This program is free software; you can redistribute it and/or+// modify it under the terms of the GNU General Public License version 3.+//+// OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+// Copyright (C) 2006-2013 Jean-Philippe Lang+// Copyright (C) 2010-2013 the ChiliProject Team+//+// This program is free software; you can redistribute it and/or+// modify it under the terms of the GNU General Public License+// as published by the Free Software Foundation; either version 2+// of the License, or (at your option) any later version.+//+// This program is distributed in the hope that it will be useful,+// but WITHOUT ANY WARRANTY; without even the implied warranty of+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+// GNU General Public License for more details.+//+// You should have received a copy of the GNU General Public License+// along with this program; if not, write to the Free Software+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+//+// See COPYRIGHT and LICENSE files for more details.+//+++@import "variables"++body+ // avoid applying font-family from primer+ font-family: var(--body-font-family) !important++ul,+ol,+dl+ line-height: 1.5++ul,+ol+ margin-left: 2rem++/*+ FORMS (taken from Foundation for Apps)+ -----++ Our form styles include basic resets for text fields, select menus, and so on, along with some of our own custom components.++ Includes:+ - Text fields+ - Text areas+ - Select menus+ - Checkboxes and radio buttons+ - Range slider+ - Progress bars and meters++// Basic form variables+$form-fontsize: 1rem !default+$form-padding: 0.5rem !default++// Text fields+$input-color: #000 !default+$input-color-hover: $input-color !default+$input-color-focus: $input-color !default+$input-background: #fff !default+$input-background-hover: $input-background !default+$input-background-focus: $input-background !default+$input-border: 1px solid #ccc !default+$input-border-hover: 1px solid #bbb !default+$input-border-focus: 1px solid #999 !default++// Labels+$form-label-margin: 0.5rem !default+$form-label-color: #333 !default++// Inline labels+$inlinelabel-color: #333 !default+$inlinelabel-background: #eee !default+$inlinelabel-border: $input-border !default++// Select menus+$select-color: #000 !default+$select-background: #fafafa !default+$select-background-hover: smartscale($select-background, 4%) !default+$select-arrow: true !default+$select-arrow-color: $select-color !default++// Text fields+// - - - - - - - - - - - - - - - - - - - - - - - - -+#{$text-input-selectors}+ $top-padding: get-side($form-padding, top)+ $bottom-padding: get-side($form-padding, bottom)+ $height: ($form-fontsize * 1.4) + $top-padding + $bottom-padding++ @include no-appearance+ display: block+ width: 100%+ height: $height+ padding: $form-padding+ margin: 0 0 1rem 0+ border: $input-border+ border-radius: 2px+ background: $input-background+ color: $input-color+ font-size: $form-fontsize+ -webkit-font-smoothing: antialiased+ vertical-align: middle++ &:hover+ border: $input-border-hover+ background: $input-background-hover+ color: $input-color-hover++ &:focus+ border: $input-border-focus+ background: $input-background-focus+ color: $input-color-focus++ label > &+ margin-top: $form-label-margin++// Inline labels+// Inline labels allow you to prefix or postfix special labels to inputs+// - - - - - - - - - - - - - - - - - - - - - - - - -+.inline-label+ display: flex+ flex-flow: row nowrap+ align-items: stretch+ margin-bottom: 1rem++ // Imitates the top margin on normal inputs+ label > &+ margin-top: $form-label-margin++ // Inputs stretch all the way out+ > input, > select+ flex: 1 1 auto+ margin: 0++ // Inline labels and buttons shrink+ > .form-label+ flex: 0 0 auto+ background: $inlinelabel-background+ color: $inlinelabel-color+ border: $inlinelabel-border+ padding: 0 $form-padding+ display: flex+ align-items: center++ &:first-child+ border-right: 0+ &:last-child+ border-left: 0++ // Buttons also shrink+ > a,+ > button,+ > input[type="button"],+ > input[type="submit"]+ flex: 0 0 auto+ display: flex+ align-items: center+ padding-top: 0+ padding-bottom: 0+ margin: 0+ border-radius: 0+++// Text areas+// - - - - - - - - - - - - - - - - - - - - - - - - -+textarea+ height: auto+ width: 100%+ min-height: 50px+++// Select menus+// - - - - - - - - - - - - - - - - - - - - - - - - -+select+ $top-padding: get-side($form-padding, top)+ $bottom-padding: get-side($form-padding, bottom)+ $height: ($form-fontsize * 1.4) + $top-padding + $bottom-padding+ $color: is-light($select-background)++ @include no-appearance+ display: block+ width: 100%+ height: $height+ padding: $form-padding+ color: $select-color+ border-radius: 0+ border: $input-border++ @if $select-arrow+ background: $select-background url(image-triangle($select-arrow-color)) right 10px center no-repeat+ background-size: 8px 8px+ padding-right: rem-calc(18px) + $form-padding++ @else+ background-color: $select-background+++ &:hover+ background-color: $select-background-hoverdiff --git a/frontend/src/global_styles/openproject/_functions.sass b/frontend/src/global_styles/openproject/_functions.sassindex b3910df2ec9..21c96d3a42c 100644--- a/frontend/src/global_styles/openproject/_functions.sass+++ b/frontend/src/global_styles/openproject/_functions.sass@@ -50,3 +50,45 @@@else@return $no++@function image-triangle($color: #000)+ $color: rgb(red($color), green($color), blue($color))+ @return 'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="32" height="24" viewBox="0 0 32 24"><polygon points="0,0 32,0 16,24" style="fill: #{$color}"></polygon></svg>'+++/// Get Side+/// Determine a top/right/bottom/right value on a padding, margin, etc. property, no matter how many values were passed in. Use this function if you need to know the specific side of a value, but don't know if the value is using shorthand.+///+/// @param {list|number} $val - Value to analyze. Should be a shorthand sizing property, e.g. "1em 2em 1em"+/// @param {keyword} $side - Side to return. Should be top, right, bottom, or left.+///+/// @return A single value based on `$val` and `$side`.+@function get-side($val, $side)+ $length: length($val)++ @if $length == 1+ @return $val++ @if $length == 2+ @return map-get((top: nth($val, 1), bottom: nth($val, 1), left: nth($val, 2), right: nth($val, 2)), $side)++ @if $length == 3+ @return map-get((top: nth($val, 1), left: nth($val, 2), right: nth($val, 2), bottom: nth($val, 3)), $side)++ @if $length == 4+ @return map-get((top: nth($val, 1), right: nth($val, 2), bottom: nth($val, 3), left: nth($val, 4)), $side)+++/// Smart Scale+/// Scales a color to be lighter if it's light, or darker if it's dark. Use this function to "fade" a color appropriate to its lightness.+///+/// @param {color} $color - Color to scale.+/// @param {percentage} $scale - Amount to scale up or down.+/// @param {percentage} $threshold - Threshold of lightness to check against.+///+/// @return A scaled color.+@function smartscale($color, $scale: 5%, $threshold: 60%)+ @if lightness($color) > $threshold+ $scale: -$scale++ @return scale-color($color, $lightness: $scale)diff --git a/frontend/src/global_styles/openproject/_index.sass b/frontend/src/global_styles/openproject/_index.sassindex 80c1f051b98..474366dfa18 100644--- a/frontend/src/global_styles/openproject/_index.sass+++ b/frontend/src/global_styles/openproject/_index.sass@@ -4,7 +4,7 @@@import homescreen@import generic-@import typography+@import base@import mixins@import onboardingdiff --git a/frontend/src/global_styles/openproject/_mixins.sass b/frontend/src/global_styles/openproject/_mixins.sassindex fc5e29bd403..fa2736180a9 100644--- a/frontend/src/global_styles/openproject/_mixins.sass+++ b/frontend/src/global_styles/openproject/_mixins.sass@@ -158,6 +158,12 @@ $button-radius: 0cursor: defaultpointer-events: none+// Disable OS-level styles+@mixin no-appearance+ -webkit-appearance: none+ -moz-appearance: none++// ------------------------------------------------------------------$scrollbar-color: #DDDDDD$scrollbar-size: 10pxdiff --git a/frontend/src/global_styles/openproject/_typography.sass b/frontend/src/global_styles/openproject/_typography.sassdeleted file mode 100644index 883eb81a3e3..00000000000--- a/frontend/src/global_styles/openproject/_typography.sass+++ /dev/null@@ -1,41 +0,0 @@-//-- copyright-// OpenProject is an open source project management software.-// Copyright (C) 2012-2023 the OpenProject GmbH-//-// This program is free software; you can redistribute it and/or-// modify it under the terms of the GNU General Public License version 3.-//-// OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:-// Copyright (C) 2006-2013 Jean-Philippe Lang-// Copyright (C) 2010-2013 the ChiliProject Team-//-// This program is free software; you can redistribute it and/or-// modify it under the terms of the GNU General Public License-// as published by the Free Software Foundation; either version 2-// of the License, or (at your option) any later version.-//-// This program is distributed in the hope that it will be useful,-// but WITHOUT ANY WARRANTY; without even the implied warranty of-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-// GNU General Public License for more details.-//-// You should have received a copy of the GNU General Public License-// along with this program; if not, write to the Free Software-// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.-//-// See COPYRIGHT and LICENSE files for more details.-//++---body- // avoid applying font-family from primer- font-family: var(--body-font-family) !important--ul,-ol,-dl- line-height: 1.5--ul,-ol- margin-left: 2remdiff --git a/frontend/src/global_styles/openproject/_variables.sass b/frontend/src/global_styles/openproject/_variables.sassindex 909ca018d8b..7d10085ce16 100644--- a/frontend/src/global_styles/openproject/_variables.sass+++ b/frontend/src/global_styles/openproject/_variables.sass@@ -1,6 +1,8 @@-// SCSS variables needed for foundation, but that are set in css variables now only-// which cannot be set to sass unfortunately-$secondary-color: #bfbfbf-// A selector that checks whether we are running in a test environment$spec-active-selector: '.env-test'++// All different input types and textarea+$text-input-selectors: 'input[type="text"], input[type="password"], input[type="date"], input[type="datetime"], input[type="datetime-local"], input[type="month"], input[type="week"], input[type="email"], input[type="number"], input[type="search"], input[type="tel"], input[type="time"], input[type="url"], input[type="color"], textarea'++// A global used variable for all labels+$form-label-fontsize: 0.9rem !defaultdiff --git a/frontend/src/global_styles/vendor/foundation-apps/scss/components/_forms.scss b/frontend/src/global_styles/vendor/foundation-apps/scss/components/_forms.scssdeleted file mode 100755index 558ed581e82..00000000000--- a/frontend/src/global_styles/vendor/foundation-apps/scss/components/_forms.scss+++ /dev/null@@ -1,449 +0,0 @@-/*- FORMS- ------- Our form styles include basic resets for text fields, select menus, and so on, along with some of our own custom components.-- Includes:- - Text fields- - Text areas- - Select menus- - Checkboxes and radio buttons- - Range slider- - Progress bars and meters-*/-$text-input-selectors: 'input[type="text"], input[type="password"], input[type="date"], input[type="datetime"], input[type="datetime-local"], input[type="month"], input[type="week"], input[type="email"], input[type="number"], input[type="search"], input[type="tel"], input[type="time"], input[type="url"], input[type="color"], textarea';-/// @Foundation.settings-// Forms-// Basic form variables-$form-fontsize: 1rem !default;-$form-padding: 0.5rem !default;--// Text fields-$input-color: #000 !default;-$input-color-hover: $input-color !default;-$input-color-focus: $input-color !default;-$input-background: #fff !default;-$input-background-hover: $input-background !default;-$input-background-focus: $input-background !default;-$input-background-disabled: smartscale($input-background) !default;-$input-border: 1px solid #ccc !default;-$input-border-hover: 1px solid #bbb !default;-$input-border-focus: 1px solid #999 !default;-$input-cursor-disabled: not-allowed !default;--// Select menus-$select-color: #000 !default;-$select-background: #fafafa !default;-$select-background-hover: smartscale($select-background, 4%) !default;-$select-arrow: true !default;-$select-arrow-color: $select-color !default;--// Labels-$form-label-fontsize: 0.9rem !default;-$form-label-margin: 0.5rem !default;-$form-label-color: #333 !default;--// Inline labels-$inlinelabel-color: #333 !default;-$inlinelabel-background: #eee !default;-$inlinelabel-border: $input-border !default;--// Range slider-$slider-background: #ddd !default;-$slider-height: 1rem !default;-$slider-radius: 0px !default;-$slider-thumb-height: 1.5rem !default;-$slider-thumb-color: $primary-color !default;-$slider-thumb-radius: 0px !default;--// Progress and meter-$meter-height: 1.5rem !default;-$meter-background: #ccc !default;-$meter-fill: $primary-color !default;-$meter-fill-high: $success-color !default;-$meter-fill-medium: #e7cf00 !default;-$meter-fill-low: $alert-color !default;-$meter-radius: 0 !default;-///--// Disable OS-level styles-@mixin no-appearance {- -webkit-appearance: none;- -moz-appearance: none;-}--// Text fields-// - - - - - - - - - - - - - - - - - - - - - - - - --#{$text-input-selectors} {- $top-padding: get-side($form-padding, top);- $bottom-padding: get-side($form-padding, bottom);- $height: ($form-fontsize * 1.4) + $top-padding + $bottom-padding;-- @include no-appearance;- display: block;- width: 100%;- height: $height;- padding: $form-padding;- margin: 0 0 $global-padding 0;- border: $input-border;- border-radius: 2px;- background: $input-background;- color: $input-color;- font-size: $form-fontsize;- -webkit-font-smoothing: antialiased;- vertical-align: middle;-- &:hover {- border: $input-border-hover;- background: $input-background-hover;- color: $input-color-hover;- }- &:focus {- border: $input-border-focus;- background: $input-background-focus;- color: $input-color-focus;- }-- label > & {- margin-top: $form-label-margin;- }-}--// Override the content-box declaration set by Normalize-input[type="search"] {- box-sizing: border-box;-}--// Disabled state-input {- &.disabled,- &[disabled],- &[readonly],- fieldset[disabled] & {- cursor: $input-cursor-disabled;-- &, &:hover {- background-color: $input-background-disabled;- }- }-}--// Labels-// - - - - - - - - - - - - - - - - - - - - - - - - --label {- display: block;- font-size: $form-label-fontsize;- margin-bottom: $form-label-margin;- color: $form-label-color;-- > input, > textarea {- margin-top: $form-label-margin;- }-}--// Checkbox/radio buttons-// - - - - - - - - - - - - - - - - - - - - - - - - --input[type="checkbox"], input[type="radio"] {- width: 1rem;- height: 1rem;-- // Input inside of a label- label > & {- margin-right: $form-padding * 0.5;- }-- // Input next to a label- & + label {- display: inline-block;- margin-left: $form-padding;- margin-right: $form-padding * 2;- margin-bottom: 0;- vertical-align: baseline;- }-}--// Inline labels-// Inline labels allow you to prefix or postfix special labels to inputs-// - - - - - - - - - - - - - - - - - - - - - - - - --.inline-label {- display: flex;- flex-flow: row nowrap;- align-items: stretch;- margin-bottom: $global-padding;-- // Imitates the top margin on normal inputs- label > & {- margin-top: $form-label-margin;- }-- // Inputs stretch all the way out- > input, > select {- flex: 1 1 auto;- margin: 0;- }-- // Inline labels and buttons shrink- > .form-label {- flex: 0 0 auto;- background: $inlinelabel-background;- color: $inlinelabel-color;- border: $inlinelabel-border;- padding: 0 $form-padding;- display: flex;- align-items: center;-- &:first-child { border-right: 0; }- &:last-child { border-left: 0; }- }- // Buttons also shrink- > a,- > button,- > input[type="button"],- > input[type="submit"] {- flex: 0 0 auto;- display: flex;- align-items: center;- padding-top: 0;- padding-bottom: 0;- margin: 0;- border-radius: 0;- }-}--// Text areas-// - - - - - - - - - - - - - - - - - - - - - - - - --textarea {- height: auto;- width: 100%;- min-height: 50px;-}--// Select menus-// - - - - - - - - - - - - - - - - - - - - - - - - --select {- $top-padding: get-side($form-padding, top);- $bottom-padding: get-side($form-padding, bottom);- $height: ($form-fontsize * 1.4) + $top-padding + $bottom-padding;- $color: is-light($select-background);-- @include no-appearance;- display: block;- width: 100%;- height: $height;- padding: $form-padding;- margin: 0 0 $global-padding 0;- font-size: $form-fontsize;- color: $select-color;- border-radius: 0;- border: $input-border;-- @if $select-arrow {- background: $select-background url(image-triangle($select-arrow-color)) right 10px center no-repeat;- background-size: 8px 8px;- padding-right: rem-calc(18px) + $form-padding;- }- @else {- background-color: $select-background- }-- &:hover {- background-color: $select-background-hover;- }-- // Remove the dropdown arrow added in IE10/11- &::-ms-expand {- display: none;- }-}--// Range slider-// - - - - - - - - - - - - - - - - - - - - - - - - --input[type="range"] {- $margin: ($slider-thumb-height - $slider-height) * 0.5;-- @include no-appearance;- display: block;- width: 100%;- height: auto;- cursor: pointer;- margin-top: $margin;- margin-bottom: $margin;- border: 0;- line-height: 1;-- @if hasvalue($slider-radius) {- border-radius: $slider-radius;- }-- // Chrome/Safari- &::-webkit-slider-runnable-track {- height: $slider-height;- background: $slider-background;- }- &::-webkit-slider-thumb {- -webkit-appearance: none;- background: $slider-thumb-color;- width: $slider-thumb-height;- height: $slider-thumb-height;- margin-top: -$margin;- @if hasvalue($slider-thumb-radius) {- border-radius: $slider-thumb-radius;- }- }- // Firefox- &::-moz-range-track {- -moz-appearance: none;- height: $slider-height;- background: #ccc;- }- &::-moz-range-thumb {- -moz-appearance: none;- background: $slider-thumb-color;- width: $slider-thumb-height;- height: $slider-thumb-height;- margin-top: -$margin;- @if hasvalue($slider-thumb-radius) {- border-radius: $slider-thumb-radius;- }- }- // Internet Explorer- &::-ms-track {- height: $slider-height;- background: $slider-background;- color: transparent;- border: 0;- overflow: visible;- border-top: $margin solid var(--body-background);- border-bottom: $margin solid var(--body-background);- }- &::-ms-thumb {- background: $slider-thumb-color;- width: $slider-thumb-height;- height: $slider-thumb-height;- border: 0;- @if hasvalue($slider-thumb-radius) {- border-radius: $slider-thumb-radius;- }- }- &::-ms-fill-lower, &::-ms-fill-upper {- background: $slider-background;- }-}-output {- line-height: $slider-thumb-height;- vertical-align: middle;- margin-left: 0.5em;-}--// Number inputs-// - - - - - - - - - - - - - - - - - - - - - - - - --input[type="number"] {- &::-webkit-inner-spin-button {-- }- &::-webkit-outer-spin-button {- -webkit-appearance: none;- background: $primary-color;- }-}--// Progress and meter-// - - - - - - - - - - - - - - - - - - - - - - - - --progress, meter {- @include no-appearance;- display: block;- width: 100%;- height: $meter-height;- margin-bottom: 1rem;-- @if hasvalue($meter-radius) {- border-radius: $meter-radius;- }-- // For Firefox- background: $meter-background;- border: 0;-}--progress {- &::-webkit-progress-bar {- background: $meter-background;- @if hasvalue($meter-radius) {- border-radius: $meter-radius;- }- }- &::-webkit-progress-value {- background: $meter-fill;- @if hasvalue($meter-radius) {- border-radius: $meter-radius;- }- }- &::-moz-progress-bar {- background: $meter-fill;- @if hasvalue($meter-radius) {- border-radius: $meter-radius;- }- }-- @each $name, $color in (high: $meter-fill-high, medium: $meter-fill-medium, low: $meter-fill-low) {- &.#{$name} {- &::-webkit-progress-value {- background: $color;- }- &::-moz-progress-bar {- background: $color;- }- }- }-}-meter {- // Chrome/Safari- &::-webkit-meter-bar {- background: $meter-background;- @if hasvalue($meter-radius) {- border-radius: $meter-radius;- }- }- &::-webkit-meter-inner-element {- @if hasvalue($meter-radius) {- border-radius: $meter-radius;- }- }- &::-webkit-meter-optimum-value {- background: $meter-fill-high;- @if hasvalue($meter-radius) {- border-radius: $meter-radius;- }- }- &::-webkit-meter-suboptimum-value {- background: $meter-fill-medium;- @if hasvalue($meter-radius) {- border-radius: $meter-radius;- }- }- &::-webkit-meter-even-less-good-value {- background: $meter-fill-low;- @if hasvalue($meter-radius) {- border-radius: $meter-radius;- }- }-- // Firefox- background: $meter-background;- &::-moz-meter-bar {- background: $primary-color;- @if hasvalue($meter-radius) {- border-radius: $meter-radius;- }- }- &:-moz-meter-optimum::-moz-meter-bar {- background: $meter-fill-high;- }- &:-moz-meter-sub-optimum::-moz-meter-bar {- background: $meter-fill-medium;- }- &:-moz-meter-sub-sub-optimum::-moz-meter-bar {- background: $meter-fill-low;- }-}diff --git a/frontend/src/global_styles/vendor/foundation-apps/scss/foundation.scss b/frontend/src/global_styles/vendor/foundation-apps/scss/foundation.scssindex 146eb6daebe..140c893a199 100755--- a/frontend/src/global_styles/vendor/foundation-apps/scss/foundation.scss+++ b/frontend/src/global_styles/vendor/foundation-apps/scss/foundation.scss@@ -11,11 +11,7 @@ $foundation-version: '1.1.0';// Helpers@import "helpers/functions",-"helpers/breakpoints",-"helpers/images";+"helpers/breakpoints";// Global styles@import "global";--// Components-@import "components/forms";diff --git a/frontend/src/global_styles/vendor/foundation-apps/scss/helpers/_functions.scss b/frontend/src/global_styles/vendor/foundation-apps/scss/helpers/_functions.scssindex 2db60f8ec0e..bc152d74e6d 100755--- a/frontend/src/global_styles/vendor/foundation-apps/scss/helpers/_functions.scss+++ b/frontend/src/global_styles/vendor/foundation-apps/scss/helpers/_functions.scss@@ -102,20 +102,6 @@ $rem-base: 16px !default;}}-/// Smart Scale-/// Scales a color to be lighter if it's light, or darker if it's dark. Use this function to "fade" a color appropriate to its lightness.-///-/// @param {color} $color - Color to scale.-/// @param {percentage} $scale - Amount to scale up or down.-/// @param {percentage} $threshold - Threshold of lightness to check against.-///-/// @return A scaled color.-@function smartscale($color, $scale: 5%, $threshold: 60%) {- @if lightness($color) > $threshold {- $scale: -$scale;- }- @return scale-color($color, $lightness: $scale);-}/// Has Value/// Returns true if a value is not 0, null, or none. Use this function to check for values like `border: 0` or `box-shadow: none`.@@ -133,44 +119,6 @@ $rem-base: 16px !default;@return true;}-/// Get Side-/// Determine a top/right/bottom/right value on a padding, margin, etc. property, no matter how many values were passed in. Use this function if you need to know the specific side of a value, but don't know if the value is using shorthand.-///-/// @param {list|number} $val - Value to analyze. Should be a shorthand sizing property, e.g. "1em 2em 1em"-/// @param {keyword} $side - Side to return. Should be top, right, bottom, or left.-///-/// @return A single value based on `$val` and `$side`.-@function get-side($val, $side) {- $length: length($val);-- @if $length == 1 {- @return $val;- }- @if $length == 2 {- @return map-get((- top: nth($val, 1),- bottom: nth($val, 1),- left: nth($val, 2),- right: nth($val, 2),- ), $side);- }- @if $length == 3 {- @return map-get((- top: nth($val, 1),- left: nth($val, 2),- right: nth($val, 2),- bottom: nth($val, 3),- ), $side);- }- @if $length == 4 {- @return map-get((- top: nth($val, 1),- right: nth($val, 2),- bottom: nth($val, 3),- left: nth($val, 4),- ), $side);- }-}/// Get Border Value/// Given border $val, find a specific element of the border, which is $elem. The possible values for $elem are width, style, and color.diff --git a/frontend/src/global_styles/vendor/foundation-apps/scss/helpers/_images.scss b/frontend/src/global_styles/vendor/foundation-apps/scss/helpers/_images.scssdeleted file mode 100644index c91052e3845..00000000000--- a/frontend/src/global_styles/vendor/foundation-apps/scss/helpers/_images.scss+++ /dev/null@@ -1,19 +0,0 @@-@function image-triangle($color: #000) {- $color: rgb(red($color), green($color), blue($color));- @return 'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="32" height="24" viewBox="0 0 32 24"><polygon points="0,0 32,0 16,24" style="fill: #{$color}"></polygon></svg>';-}--@mixin image-checkmark($color: #000) {- $color: rgb(red($color), green($color), blue($color));- background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="32" height="32" viewBox="0 0 32 32"><path fill="#{$color}" d="M16 0c-8.837 0-16 7.163-16 16s7.163 16 16 16 16-7.163 16-16-7.163-16-16-16zm6.906 8.875l2.219 2.031-12.063 13.281-6.188-6.188 2.125-2.125 3.938 3.938 9.969-10.938z"/></svg>');-- // IE10 fallback, since it doesn't support SVG data URLs- @media screen and (min-width:0\0) {- @if lightness($color) < 60% {- background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAdlJREFUeNrMl0FugzAQRY3TRZeoFyhVL0BOkGTXJezaHZwguUnECaCrdFd6gqQnCN11Uyk5QekNOlONJWMVGMCgfGlkEIY3HnsG2xFM3d96PjQB2AJsWdPtAPYOln+dTwXnuw4DHEGzBvNFN6EDCTiS9XIAwB40acNoucKoxODIie0AwAOCu8KOSnIiNx/MakK+A7sW9oTferxx3fP3T1nURoBG/irGVahHwjHm/Ggx7E3TMVdrQmoP0gngghhpZQ3QvG/EdPLUelARWI8Aycjq9Md0qMIdbcNhjmOKLoY7quk3l1Rebeqg4AwFkmq7LWGOh1pmNY0etZAWSq0OX8HoS4JvWuCopbSY26EGR/CW86K0BF+pwkLwlPuyHJhOCl5oe4ZtF++vOqST+GdOYwO+71pN2VNAjmQGPCe42weuHDg0PI8olUwnYrXTGQJH9gxq8l1LKvrQx4O6/YY32Kp/ugb3ey7gZ4xAzuhYiYTxB/UHZFAuaREVXZ2g6yFlvEC2yoKEmbsRZYNgVLk2JeaOaG+xLHN+WCszDWMqLGOrJFa1DlApjSdwoHJGqGzLIb0+cas0wh5Bh780ngswx8GJD7h8sHg2wLA/mfDLPZpdxOF0quP5rwADAAFIzSRvu1m5AAAAAElFTkSuQmCC');- }- @else {- background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAT9JREFUeNrMV4sRgyAMDU7gCI6AE7QjMILdoCO4Cd2g3aB2Ah2hG7Qb0ODRO2r98Anqu8txKvISII/AwBFKKY6NQDugHSe6NWgPtBtjrAMKIHGF1ip/6H+qGOIC7a7ioccofMkF2kvRQY8lfKY8FSqXyFPjZyaYvebYtGg5pMUbrcQseeqHzPogVyAHwyHXXPfZ/cCMA3rqOXGkF9NObbwOl6HsFS5BdNKaXTnTj2dGXinRYGQnx74CiNTOlt/cMfpeJSEh+dnlJyCU2iIkq4CInIemtIsDcmYth+Tc9xCDyHQSMeReDow4UVnv89Dj2yUNx5wYkreB+6dPw9pH2QbOxJBr1D5SLEccuEZmEP8O1Po64aByi8IVehxLAvL/8oz4TFjefHspyTYvSvdVlu/iYrKLq9mal1O29fX8I8AANpIQzC0hTdEAAAAASUVORK5CYII=');- }- }-}\ No newline at end of file