Skip to content

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

Remove code from Foundation that is not used anyways

Henriette Dargeb92380545b89
diff --git a/frontend/src/global_styles/vendor/foundation-apps/scss/_settings.scss b/frontend/src/global_styles/vendor/foundation-apps/scss/_settings.scss
deleted file mode 100644
index 5369d3e79fb..00000000000
--- a/frontend/src/global_styles/vendor/foundation-apps/scss/_settings.scss
+++ /dev/null
@@ -1,615 +0,0 @@
-// FOUNDATION FOR APPS SETTINGS
-// ----------------------------
-//
-// Table of Contents:
-//
-// 1. CSS Exports
-// 2. Global Styles
-// 3. Breakpoints
-// 4. Typography
-// 5. Grid
-// 6. Button
-// 7. Accordion
-// 8. Action Sheet
-// 9. Block List
-// 10. Button Group
-// 11. Card
-// 12. Extras
-// 13. Forms
-// 14. Iconic
-// 15. Label
-// 16. Menu Bar
-// 17. Modal
-// 18. Motion UI
-// 19. Notification
-// 20. Off-canvas
-// 21. Panel
-// 22. Popup
-// 23. Switch
-// 24. Tabs
-// 25. Title Bar
-
-@import "helpers/functions";
-
-// 1. CSS Exports
-// - - - - - - - - - - - - - - -
-
-// Change any value in this map from "true" to "false" to disable that component's CSS class output. You'll still be able to use the component's mixins, but none of our pre-written classes will be in your CSS.
-
-// $include-css: (
-// accordion: true,
-// action-sheet: true,
-// block-list: true,
-// button: true,
-// button-group: true,
-// card: true,
-// coloring: true,
-// extras: true,
-// forms: true,
-// grid: true,
-// iconic: true,
-// label: true,
-// badge: true,
-// list: true,
-// menu-bar: true,
-// modal: true,
-// motion: true,
-// notification: true,
-// off-canvas: true,
-// panel: true,
-// popup: true,
-// switch: true,
-// tabs: true,
-// title-bar: true,
-// typography: true,
-// utilities: true,
-// );
-
-// 2. Global Styles
-// - - - - - - - - - - - - - - -
-
-// This sets 1rem to be 16px
-// $rem-base: 16px;
-
-// The default font-size is set to 100% of the browser style sheet (usually 16px)
-// for compatibility with browser-based text zoom or user-set defaults.
-
-// Since the typical default browser font-size is 16px, that makes the calculation for grid size.
-// If you want your base font-size to be different and not have it affect the grid breakpoints,
-// set $rem-base to $base-font-size and make sure $base-font-size is a px value.
-// $base-font-size: 100%;
-
-// $base-line-height is 24px while $base-font-size is 16px
-// $base-line-height: 1.5;
-
-// Text selector helpers
-// $headers: "h1,h2,h3,h4,h5,h6";
-
-// We use these to define default font weights
-// $font-weight-normal: normal;
-// $font-weight-bold: bold;
-
-// We use these to control various global styles
-// $body-background: #fff;
-// $body-font-color: #222;
-// $body-font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
-// $body-font-weight: $font-weight-normal;
-// $body-font-style: normal;
-// $body-antialiased: true;
-
-// Application Colors
-// $primary-color: #00558b;
-// $secondary-color: #f1f1f1;
-// $alert-color: #F04124;
-// $info-color: #A0D3E8;
-// $success-color: #43AC6A;
-// $warning-color: #F08A24;
-// $dark-color: #232323;
-// $gray: #dfdfdf;
-// $gray-dark: darken($gray, 8);
-// $gray-light: lighten($gray, 8);
-
-// We use these to make sure border radius matches unless we want it different.
-// $global-radius: 4px;
-// $global-rounded: 1000px;
-
-// We use this for default spacing
-// $global-padding: 1rem;
-// $global-spacing: rem-calc(15);
-
-// 3. Breakpoints
-// - - - - - - - - - - - - - - -
-
-// These are our named breakpoints. You can use them in our breakpoint function like this: @include breakpoint(medium) { // Medium and larger styles }
-// $breakpoints: (
-// small: rem-calc(0),
-// medium: rem-calc(640),
-// large: rem-calc(1200),
-// xlarge: rem-calc(1440),
-// xxlarge: rem-calc(1920),
-// );
-
-// All of the names in this list will be output as classes in your CSS, like small-12, medium-6, and so on.
-// $breakpoint-classes: (small medium large);
-
-// 4. Typography
-// - - - - - - - - - - - - - - -
-
-// We use these to control header font styles
-// $header-font-family: $body-font-family;
-// $header-font-weight: $font-weight-normal;
-// $header-font-style: $font-weight-normal;
-// $header-font-color: #222;
-// $header-line-height: 1.4;
-// $header-top-margin: .2rem;
-// $header-bottom-margin: .5rem;
-// $header-text-rendering: optimizeLegibility;
-
-// We use these to control header font sizes
-// $h1-font-size: rem-calc(44);
-// $h2-font-size: rem-calc(37);
-// $h3-font-size: rem-calc(27);
-// $h4-font-size: rem-calc(23);
-// $h5-font-size: rem-calc(18);
-// $h6-font-size: 1rem;
-
-// We use these to control header size reduction on small screens
-// $h1-font-reduction: rem-calc(10);
-// $h2-font-reduction: rem-calc(10);
-// $h3-font-reduction: rem-calc(5);
-// $h4-font-reduction: rem-calc(5);
-// $h5-font-reduction: 0;
-// $h6-font-reduction: 0;
-
-// These control how subheaders are styled.
-// $subheader-line-height: 1.4;
-// $subheader-font-color: scale-color($header-font-color, $lightness: 35%);
-// $subheader-font-weight: $font-weight-normal;
-// $subheader-top-margin: .2rem;
-// $subheader-bottom-margin: .5rem;
-
-// A general <small> styling
-// $small-font-size: 60%;
-// $small-font-color: scale-color($header-font-color, $lightness: 35%);
-
-// We use these to style paragraphs
-// $paragraph-font-family: inherit;
-// $paragraph-font-weight: $font-weight-normal;
-// $paragraph-font-size: 1rem;
-// $paragraph-line-height: 1.6;
-// $paragraph-margin-bottom: rem-calc(20);
-// $paragraph-aside-font-size: rem-calc(14);
-// $paragraph-aside-line-height: 1.35;
-// $paragraph-aside-font-style: italic;
-// $paragraph-text-rendering: optimizeLegibility;
-
-// We use these to style <code> tags
-// $code-color: grayscale($primary-color);
-// $code-font-family: Consolas, 'Liberation Mono', Courier, monospace;
-// $code-font-weight: $font-weight-normal;
-// $code-background-color: scale-color($secondary-color, $lightness: 70%);
-// $code-border-size: 1px;
-// $code-border-style: solid;
-// $code-border-color: scale-color($code-background-color, $lightness: -10%);
-// $code-padding: rem-calc(2) rem-calc(5) rem-calc(1);
-// $code-line-height: 1.75em;
-
-// We use these to style anchors
-// $anchor-text-decoration: none;
-// $anchor-text-decoration-hover: none;
-// $anchor-font-color: $primary-color;
-// $anchor-font-color-hover: scale-color($anchor-font-color, $lightness: -14%);
-
-// We use these to style the <hr> element
-// $hr-border-width: 1px;
-// $hr-border-style: solid;
-// $hr-border-color: #ddd;
-// $hr-margin: rem-calc(20);
-
-// We use these to style lists
-// $list-font-family: $paragraph-font-family;
-// $list-font-size: $paragraph-font-size;
-// $list-line-height: $paragraph-line-height;
-// $list-margin-bottom: $paragraph-margin-bottom;
-// $list-style-position: outside;
-// $list-side-margin: 1.1rem;
-// $list-ordered-side-margin: 1.4rem;
-// $list-side-margin-no-bullet: 0;
-// $list-nested-margin: rem-calc(20);
-// $definition-list-header-weight: $font-weight-bold;
-// $definition-list-header-margin-bottom: .3rem;
-// $definition-list-margin-bottom: rem-calc(12);
-
-// We use these to style blockquotes
-// $blockquote-font-color: scale-color($header-font-color, $lightness: 35%);
-// $blockquote-padding: rem-calc(9 20 0 19);
-// $blockquote-border: 1px solid #ddd;
-// $blockquote-cite-font-size: rem-calc(13);
-// $blockquote-cite-font-color: scale-color($header-font-color, $lightness: 23%);
-// $blockquote-cite-link-color: $blockquote-cite-font-color;
-
-// Acronym styles
-// $acronym-underline: 1px dotted #ddd;
-
-// 5. Grid
-// - - - - - - - - - - - - - - -
-
-// $container-width: rem-calc(900);
-// $block-padding: $global-padding;
-// $total-columns: 12;
-// $block-grid-max-size: 6;
-
-// 6. Button
-// - - - - - - - - - - - - - - -
-
-// $button-padding: 0.85em 1em;
-// $button-margin: 0 $global-padding $global-padding 0;
-// $button-style: solid;
-// $button-background: $primary-color;
-// $button-background-hover: scale-color($button-background, $lightness: -15%);
-// $button-color: auto;
-// $button-radius: 0;
-// $button-sizes: (
-// tiny: 0.7,
-// small: 0.8,
-// medium: 1,
-// large: 1.3,
-// );
-// $button-font-size: 0.9rem;
-// $button-opacity-disabled: 0.5;
-// $button-tag-selector: false;
-
-// 7. Accordion
-// - - - - - - - - - - - - - - -
-
-// $accordion-border: 1px solid $gray-dark;
-
-// $accordion-title-background: $gray-light;
-// $accordion-title-background-hover: smartscale($accordion-title-background, 5%);
-// $accordion-title-background-active: smartscale($accordion-title-background, 3%);
-// $accordion-title-color: isitlight($accordion-title-background);
-// $accordion-title-color-active: isitlight($accordion-title-background);
-
-// $accordion-title-padding: $global-padding;
-// $accordion-content-padding: $global-padding;
-
-// 8. Action Sheet
-// - - - - - - - - - - - - - - -
-
-// $actionsheet-background: white;
-// $actionsheet-border-color: #ccc;
-// $actionsheet-animate: transform opacity;
-// $actionsheet-animation-speed: 0.25s;
-// $actionsheet-width: 300px;
-// $actionsheet-radius: 4px;
-// $actionsheet-shadow: 0 -3px 10px rgba(black, 0.25);
-// $actionsheet-padding: $global-padding;
-// $actionsheet-tail-size: 10px;
-
-// $actionsheet-popup-shadow: 0 0 10px rgba(black, 0.25);
-
-// $actionsheet-link-color: #000;
-// $actionsheet-link-background-hover: smartscale($actionsheet-background);
-
-// 9. Block List
-// - - - - - - - - - - - - - - -
-
-// $blocklist-background: #fff;
-// $blocklist-fullbleed: true;
-// $blocklist-fontsize: 1rem;
-
-// $blocklist-item-padding: 0.8rem 1rem;
-// $blocklist-item-color: isitlight($blocklist-background, #000, #fff);
-// $blocklist-item-background-hover: smartscale($blocklist-background, 4.5%);
-// $blocklist-item-color-disabled: #999;
-// $blocklist-item-border: 1px solid smartscale($blocklist-background, 18.5%);
-
-// $blocklist-item-label-color: scale-color($blocklist-item-color, $lightness: 60%);
-// $blocklist-item-icon-size: 0.8;
-
-// $blocklist-header-fontsize: 0.8em;
-// $blocklist-header-color: smartscale($blocklist-item-color, 40%);
-// $blocklist-header-uppercase: true;
-
-// $blocklist-check-icons: true;
-
-// 10. Button Group
-// - - - - - - - - - - - - - - -
-
-// $btngroup-background: $primary-color;
-// $btngroup-color: #fff;
-// $btngroup-radius: $button-radius;
-
-// 11. Card
-// - - - - - - - - - - - - - - -
-
-// $card-background: #fff;
-// $card-color: isitlight($card-background);
-// $card-border: 1px solid smartscale($card-background, 7%);
-// $card-radius: $global-radius;
-// $card-shadow: 0 1px 2px rgba(#000, 0.2);
-// $card-padding: $global-padding;
-// $card-margin: 0.5rem;
-
-// $card-divider-background: smartscale($card-background, 7%);
-
-// 12. Extras
-// - - - - - - - - - - - - - - -
-
-// $closebutton-position: (top right);
-// $closebutton-size: 2em;
-// $closebutton-lineheight: 0.5;
-// $closebutton-color: #999;
-// $closebutton-color-hover: #333;
-
-// $thumbnail-padding: 0.5rem;
-// $thumbnail-shadow: 0 3px 15px rgba(black, 0.25);
-
-// 13. Forms
-// - - - - - - - - - - - - - - -
-
-// Basic form variables
-// $form-fontsize: 1rem;
-// $form-padding: 0.5rem;
-
-// Text fields
-// $input-color: #000;
-// $input-color-hover: $input-color;
-// $input-color-focus: $input-color;
-// $input-background: #fff;
-// $input-background-hover: $input-background;
-// $input-background-focus: $input-background;
-// $input-background-disabled: smartscale($input-background);
-// $input-border: 1px solid #ccc;
-// $input-border-hover: 1px solid #bbb;
-// $input-border-focus: 1px solid #999;
-// $input-cursor-disabled: not-allowed;
-
-// Select menus
-// $select-color: #000;
-// $select-background: #fafafa;
-// $select-background-hover: smartscale($select-background, 4%);
-// $select-arrow: true;
-// $select-arrow-color: $select-color;
-
-// Labels
-// $form-label-fontsize: 0.9rem;
-// $form-label-margin: 0.5rem;
-// $form-label-color: #333;
-
-// Inline labels
-// $inlinelabel-color: #333;
-// $inlinelabel-background: #eee;
-// $inlinelabel-border: $input-border;
-
-// Range slider
-// $slider-background: #ddd;
-// $slider-height: 1rem;
-// $slider-radius: 0px;
-// $slider-thumb-height: 1.5rem;
-// $slider-thumb-color: $primary-color;
-// $slider-thumb-radius: 0px;
-
-// Progress and meter
-// $meter-height: 1.5rem;
-// $meter-background: #ccc;
-// $meter-fill: $primary-color;
-// $meter-fill-high: $success-color;
-// $meter-fill-medium: #e7cf00;
-// $meter-fill-low: $alert-color;
-// $meter-radius: 0;
-
-// 14. Iconic
-// - - - - - - - - - - - - - - -
-
-// $iconic-primary-fill: $primary-color;
-// $iconic-primary-stroke: $primary-color;
-// $iconic-accent-fill: $iconic-primary-fill;
-// $iconic-accent-stroke: $iconic-accent-fill;
-
-// 15. Label
-// - - - - - - - - - - - - - - -
-
-// $label-fontsize: 0.8rem;
-// $label-padding: ($global-padding / 3) ($global-padding / 2);
-// $label-radius: 0;
-// $label-background: $primary-color;
-// $label-color: isitlight($primary-color);
-
-// $badge-fontsize: 0.8em;
-// $badge-diameter: 1.5rem;
-// $badge-background: $primary-color;
-// $badge-color: #fff;
-
-// 16. Menu Bar
-// - - - - - - - - - - - - - - -
-
-// $menubar-fontsize: 1rem;
-// $menubar-background: #fff;
-// $menubar-background-hover: smartscale($menubar-background, 7%);
-// $menubar-background-active: $menubar-background-hover;
-// $menubar-color: isitlight($menubar-background);
-// $menubar-color-hover: $menubar-color;
-// $menubar-color-active: $menubar-color-hover;
-
-// $menubar-item-padding: $global-padding;
-// $menubar-icon-size: 25px;
-// $menubar-icon-spacing: $menubar-item-padding;
-
-// 17. Modal
-// - - - - - - - - - - - - - - -
-
-// $modal-background: #fff;
-// $modal-border: 0;
-// $modal-radius: 0px;
-// $modal-shadow: none;
-// $modal-zindex: 1000;
-// $modal-sizes: (
-// tiny: 300px,
-// small: 500px,
-// medium: 600px,
-// large: 800px,
-// );
-
-// $modal-overlay-class: 'modal-overlay';
-// $modal-overlay-background: rgba(#333, 0.7);
-
-// 18. Motion UI
-// - - - - - - - - - - - - - - -
-
-// Classes to use when triggering in/out animations
-// $motion-class: (
-// in: "ng-enter",
-// out: "ng-leave",
-// );
-// $motion-class-active: (
-// in: "ng-enter-active",
-// out: "ng-leave-active",
-// );
-// $motion-class-stagger: (
-// in: "ng-enter-stagger",
-// out: "ng-leave-stagger",
-// );
-// $motion-class-showhide: (
-// in: "ng-hide-remove",
-// out: "ng-hide-add",
-// );
-// $motion-class-showhide-active: (
-// in: "ng-hide-remove-active",
-// out: "ng-hide-add-active",
-// );
-
-// Set if movement-based transitions should also fade the element in and out
-// $motion-slide-and-fade: false;
-// $motion-hinge-and-fade: true;
-// $motion-scale-and-fade: true;
-// $motion-spin-and-fade: true;
-
-// Default speed for transitions and animations
-// $motion-duration-default: 500ms;
-
-// Slow and fast modifiders
-// $motion-duration-slow: 750ms;
-// $motion-duration-fast: 250ms;
-// $motion-stagger-duration-default: 150ms;
-// $motion-stagger-duration-short: 50ms;
-// $motion-stagger-duration-long: 300ms;
-
-// Default timing function for transitions and animations
-// $motion-timing-default: ease;
-
-// Built-in and custom easing functions
-// Every item in this map becomes a CSS class
-// $motion-timings: (
-// linear: linear,
-// ease: ease,
-// easeIn: ease-in,
-// easeOut: ease-out,
-// easeInOut: ease-in-out,
-// bounceIn: cubic-bezier(0.485, 0.155, 0.240, 1.245),
-// bounceOut: cubic-bezier(0.485, 0.155, 0.515, 0.845),
-// bounceInOut: cubic-bezier(0.760, -0.245, 0.240, 1.245),
-// );
-
-// Default delay for all transitions and animations
-// $motion-delay-default: 0;
-// Short and long delay modifiers
-// $motion-delay-short: 300ms;
-// $motion-delay-long: 700ms;
-
-// 19. Notification
-// - - - - - - - - - - - - - - -
-
-// $notification-default-position: right top;
-// $notification-width: rem-calc(400);
-// $notification-offset: $global-padding;
-
-// $notification-background: $primary-color;
-// $notification-color: white;
-// $notification-padding: $global-padding;
-// $notification-radius: 4px;
-
-// $notification-icon-size: 60px;
-// $notification-icon-margin: $global-padding;
-// $notification-icon-align: top;
-
-
-// 20. Off-canvas
-// - - - - - - - - - - - - - - -
-
-// $offcanvas-size-horizontal: 250px;
-// $offcanvas-size-vertical: 250px;
-
-// $offcanvas-background: #fff;
-// $offcanvas-color: isitlight($offcanvas-background);
-// $offcanvas-padding: 0;
-// $offcanvas-shadow: 3px 0 10px rgba(black, 0.25);
-// $offcanvas-animation-speed: 0.25s;
-
-// $offcanvas-frame-selector: '.grid-frame';
-
-// 21. Panel
-// - - - - - - - - - - - - - - -
-
-// $panel-size-horizontal: 300px;
-// $panel-size-vertical: 300px;
-// $panel-padding: 0;
-
-// $panel-background: #fff;
-// $panel-shadow: 3px 0 10px rgba(black, 0.25);
-
-// DEPRECATED: these variables will be removed in a future version.
-// $panel-animation-speed: 0.25s;
-
-// 22. Popup
-// - - - - - - - - - - - - - - -
-
-// $popup-width: rem-calc(300);
-// $popup-background: #fff;
-// $popup-border: 0;
-// $popup-radius: 0;
-// $popup-shadow: 0 0 10px rgba(#000, 0.25);
-
-// 23. Switch
-// - - - - - - - - - - - - - - -
-
-// $switch-width: rem-calc(50);
-// $switch-height: rem-calc(32);
-// $switch-background: #ccc;
-// $switch-background-active: $primary-color;
-// $switch-border: 0;
-// $switch-radius: 9999px;
-// $switch-animation-speed: 0.15s;
-
-// $switch-paddle-color: white;
-// $switch-paddle-offset: 4px;
-
-// 24. Tabs
-// - - - - - - - - - - - - - - -
-
-// $tabstrip-background: transparent;
-
-// $tab-title-background: $gray-light;
-// $tab-title-background-hover: smartscale($tab-title-background, 5%);
-// $tab-title-background-active: smartscale($tab-title-background, 3%);
-// $tab-title-color: isitlight($tab-title-background);
-// $tab-title-color-active: $tab-title-color;
-
-// $tab-title-padding: $global-padding;
-// $tab-content-padding: $global-padding;
-
-// 25. Title Bar
-// - - - - - - - - - - - - - - -
-
-// $titlebar-center-width: 50%;
-// $titlebar-side-width: (100% - $titlebar-center-width) / 2;
-// $titlebar-background: #eee;
-// $titlebar-color: #000;
-// $titlebar-border: 1px solid #ccc;
-// $titlebar-padding: $global-padding;
-// $titlebar-item-classes: (
-// center: 'center',
-// left: 'left',
-// right: 'right',
-// title: 'title',
-// );
diff --git a/frontend/src/global_styles/vendor/foundation-apps/scss/components/_accordion.scss b/frontend/src/global_styles/vendor/foundation-apps/scss/components/_accordion.scss
deleted file mode 100644
index 032bd028453..00000000000
--- a/frontend/src/global_styles/vendor/foundation-apps/scss/components/_accordion.scss
+++ /dev/null
@@ -1,72 +0,0 @@
-/*
- ACCORDION
- ---------
-
- The trusy accordion allows you to create a series of vertical tabs.
-*/
-
-/// @Foundation.settings
-// Accordion
-$accordion-border: 1px solid $gray-dark !default;
-
-$accordion-title-background: $gray-light !default;
-$accordion-title-background-hover: smartscale($accordion-title-background, 5%) !default;
-$accordion-title-background-active: smartscale($accordion-title-background, 3%) !default;
-$accordion-title-color: isitlight($accordion-title-background) !default;
-$accordion-title-color-active: isitlight($accordion-title-background) !default;
-
-$accordion-title-padding: $global-padding !default;
-$accordion-content-padding: $global-padding !default;
-///
-
-@mixin accordion-title(
- $background: $accordion-title-background,
- $background-hover: $accordion-title-background-hover,
- $background-active: $accordion-title-background-active,
- $color: $accordion-title-color,
- $color-active: $accordion-title-color-active,
- $padding: $accordion-title-padding
-) {
- padding: $padding;
- background: $background;
- color: $color;
- line-height: 1;
- cursor: pointer;
-
- &:hover {
- background: $background-hover;
- }
-
- .is-active > & {
- background: $background-active;
- color: $color-active;
- }
-}
-
-@mixin accordion-content(
- $padding: $accordion-content-padding
-) {
- padding: $padding;
-
- display: none;
- .is-active > & {
- display: block;
- }
-}
-
-@include exports(accordion) {
- .accordion {
- @if hasvalue($accordion-border) {
- border: $accordion-border;
- }
- }
- .accordion-item {
-
- }
- .accordion-title {
- @include accordion-title;
- }
- .accordion-content {
- @include accordion-content;
- }
-}
diff --git a/frontend/src/global_styles/vendor/foundation-apps/scss/components/_action-sheet.scss b/frontend/src/global_styles/vendor/foundation-apps/scss/components/_action-sheet.scss
deleted file mode 100644
index ed478bbe201..00000000000
--- a/frontend/src/global_styles/vendor/foundation-apps/scss/components/_action-sheet.scss
+++ /dev/null
@@ -1,265 +0,0 @@
-/*
- ACTION SHEET
- ------------
-
- A dropdown menu that sticks to the bottom of the screen on small devices, and becomes a dropdown menu on larger devices.
-*/
-
-/// @Foundation.settings
-// Action Sheet
-$actionsheet-background: white !default;
-$actionsheet-border-color: #ccc !default;
-$actionsheet-animate: transform opacity !default;
-$actionsheet-animation-speed: 0.25s !default;
-$actionsheet-width: 300px !default;
-$actionsheet-radius: 4px !default;
-$actionsheet-shadow: 0 -3px 10px rgba(black, 0.25) !default;
-$actionsheet-padding: $global-padding !default;
-$actionsheet-tail-size: 10px !default;
-
-$actionsheet-popup-shadow: 0 0 10px rgba(black, 0.25) !default;
-
-$actionsheet-link-color: #000 !default;
-$actionsheet-link-background-hover: smartscale($actionsheet-background) !default;
-///
-
-/*
- Styles for the list inside an action sheet.
- Don't include this mixin if you want to build custom controls inside the sheet.
-*/
-@mixin action-sheet-menu(
- $padding: $actionsheet-padding,
- $color: $actionsheet-link-color,
- $border-color: $actionsheet-border-color,
- $background-hover: $actionsheet-link-background-hover
-) {
- // Menu container
- ul {
- margin: -($padding);
- margin-top: 0;
- list-style-type: none;
- user-select: none;
-
- // If the menu has no content above it
- &:first-child {
- margin-top: -$padding;
-
- li:first-child {
- border-top: 0;
- }
- }
-
- // Menu links
- a {
- display: block;
- padding: $padding * 0.8;
- line-height: 1;
- color: $color;
- border-top: 1px solid $border-color;
-
- &:hover {
- color: $color;
- background: $background-hover;
- }
- }
-
- .alert > a {
- color: $alert-color;
- }
- .disabled > a {
- pointer-events: none;
- color: #999;
- }
- }
-}
-
-/*
- Styles for the action sheet container. Action sheets pin to the top or bottom of the screen.
-*/
-@mixin action-sheet(
- $position: bottom,
- $shadow: $actionsheet-shadow,
- $animate: $actionsheet-animate,
- $animation-speed: $actionsheet-animation-speed,
- $padding: $actionsheet-padding,
- $background: $actionsheet-background
-) {
- position: fixed;
- left: 0;
- z-index: 1000;
- width: 100%;
- padding: $padding;
- background: $background;
- text-align: center;
- transition-property: $animate;
- transition-duration: $animation-speed;
- transition-timing-function: ease-out;
-
- @if hasvalue($shadow) {
- box-shadow: $shadow;
- }
-
- // Positions
- @if $position == bottom {
- bottom: 0;
- transform: translateY(100%);
-
- &.is-active {
- transform: translateY(0%);
- }
- }
- // These two don't quite work as planned yet
- @else if $position == top {
- top: 0;
- transform: translateY(-100%);
-
- &.is-active {
- transform: translateY(0%);
- }
- }
-}
-
-@mixin popup-menu(
- $position: bottom,
- $background: $actionsheet-background,
- $width: $actionsheet-width,
- $radius: $actionsheet-radius,
- $shadow: $actionsheet-popup-shadow,
- $tail-size: $actionsheet-tail-size
-) {
- /*
- Core styles
- */
- position: absolute;
- left: 50%;
- width: $width;
- border-radius: $radius;
- opacity: 0;
- pointer-events: none;
-
- /*
- Menu shadow
- */
- @if hasvalue($shadow) {
- box-shadow: $shadow;
- }
-
- /*
- Active state
- */
- &.is-active {
- opacity: 1;
- pointer-events: auto;
- }
-
- /*
- Menu tail
- */
- &::before, &::after {
- content: '';
- position: absolute;
- left: 50%;
- display: block;
- width: 0px;
- height: 0px;
- border-left: $tail-size solid transparent;
- border-right: $tail-size solid transparent;
- margin-left: -($tail-size);
- }
-
- /*
- Positioning
- */
- @if $position == bottom {
- top: auto;
- bottom: 0;
- transform: translateX(-50%) translateY(110%);
- &.is-active {
- transform: translateX(-50%) translateY(100%);
- }
-
- &::before, &::after {
- top: -($tail-size);
- bottom: auto;
- border-top: 0;
- border-bottom: $tail-size solid $background;
- }
- &::before {
- top: -($tail-size + 2);
- border-bottom-color: rgba(black, 0.15);
- }
-
- }
- @else if $position == top {
- top: 0;
- bottom: auto;
- transform: translateX(-50%) translateY(-120%);
- &.is-active {
- transform: translateX(-50%) translateY(-110%);
- }
-
- &::before, &::after {
- top: auto;
- bottom: -($tail-size);
- border-top: $tail-size solid $background;
- border-bottom: 0;
- }
- &::before {
- bottom: -($tail-size + 2);
- border-top-color: rgba(black, 0.15);
- }
- }
-}
-
-@include exports(action-sheet) {
- .action-sheet-container {
- position: relative;
- display: inline-block;
-
- .button {
- margin-left: 0;
- margin-right: 0;
- }
- }
- .action-sheet {
- @include action-sheet;
- @include action-sheet-menu;
-
- @include breakpoint(medium) {
- @include popup-menu;
-
- &.top {
- @include popup-menu(top);
- }
- }
-
- &.primary {
- background: $primary-color;
- color: isitlight($primary-color);
- border: 0;
- &::before { display: none; }
- &::before, &::after { border-top-color: $primary-color; }
- &.top::before, &.top::after { border-bottom-color: $primary-color; }
-
- @include action-sheet-menu(
- $color: isitlight($primary-color),
- $border-color: smartscale($primary-color, 10%),
- $background-hover: smartscale($primary-color)
- );
- }
- &.dark {
- background: $dark-color;
- color: isitlight($dark-color);
- border: 0;
- &::before { display: none; }
- &::before, &::after { border-top-color: $dark-color; }
- &.top::before, &.top::after { border-bottom-color: $dark-color; }
-
- @include action-sheet-menu(
- $color: isitlight($dark-color),
- $border-color: smartscale($dark-color, 10%),
- $background-hover: smartscale($dark-color)
- );
- }
- }
-}
diff --git a/frontend/src/global_styles/vendor/foundation-apps/scss/components/_block-list.scss b/frontend/src/global_styles/vendor/foundation-apps/scss/components/_block-list.scss
deleted file mode 100644
index 3671bbffc74..00000000000
--- a/frontend/src/global_styles/vendor/foundation-apps/scss/components/_block-list.scss
+++ /dev/null
@@ -1,350 +0,0 @@
-/*
- BLOCK LIST
- ----------
-
- A generic list component that can accommodate a variety of styles and controls.
-
- Features:
- - Icons
- - Labels
- - Chevrons
- - Text fields
- - Dropdown menus
- - Checkbox/radio inputs
-*/
-
-/// @Foundation.settings
-// Block List
-$blocklist-background: #fff !default;
-$blocklist-fullbleed: true !default;
-$blocklist-fontsize: 1rem !default;
-
-$blocklist-item-padding: 0.8rem 1rem !default;
-$blocklist-item-color: isitlight($blocklist-background, #000, #fff) !default;
-$blocklist-item-background-hover: smartscale($blocklist-background, 4.5%) !default;
-$blocklist-item-color-disabled: #999 !default;
-$blocklist-item-border: 1px solid smartscale($blocklist-background, 18.5%) !default;
-
-$blocklist-item-label-color: scale-color($blocklist-item-color, $lightness: 60%) !default;
-$blocklist-item-icon-size: 0.8 !default;
-
-$blocklist-header-fontsize: 0.8em !default;
-$blocklist-header-color: smartscale($blocklist-item-color, 40%) !default;
-$blocklist-header-uppercase: true;
-
-$blocklist-check-icons: true !default;
-///
-
-/*
- Adds styles for a block list container.
-
- $font-size: global font size for the list.
- $full-bleed: when "true", the margins of the list invert to line it up with the edge of a padded element.
-*/
-%block-list-container {
- margin-bottom: 1rem;
- line-height: 1;
- user-select: none;
-
- &, ul {
- list-style-type: none;
- }
- ul {
- margin-left: 0;
- }
-}
-@mixin block-list-container(
- $font-size: $blocklist-fontsize,
- $full-bleed: $blocklist-fullbleed
-) {
- @extend %block-list-container;
- font-size: $font-size;
-
- @if $full-bleed {
- margin-left: -$global-padding;
- margin-right: -$global-padding;
- }
-}
-
-/*
- Styles block list headers on the selector you include this mixin in (normally a <header>).
-
- $color - color of the header.
- $font-size - font size of the header.
- $offset - left margin to add to the header, to line it up with the list items.
-*/
-@mixin block-list-header(
- $color: $blocklist-header-color,
- $font-size: $blocklist-header-fontsize,
- $uppercase: $blocklist-header-uppercase,
- $offset: get-side($blocklist-item-padding, left)
-) {
- margin-top: 1em;
- color: $color;
- font-weight: bold;
- margin-bottom: 0.5em;
- margin-left: $offset;
- font-size: $font-size;
- cursor: default;
- @if $uppercase { text-transform: uppercase; }
-}
-
-/*
- Styles block list items on the selector you include this mixin in (normally an <li>).
-
- $color - color of items.
- $color-hover - color of items on hover.
- $background - background of items.
- $background-hover - background of items on hover.
- $border - border between items.
- $padding - padding on items.
-*/
-@mixin block-list-item(
- $color: $blocklist-item-color,
- $color-hover: $blocklist-item-color,
- $color-disabled: $blocklist-item-color-disabled,
- $background: transparent,
- $background-hover: $blocklist-item-background-hover,
- $border: $blocklist-item-border,
- $padding: $blocklist-item-padding
-) {
- position: relative;
-
- @if hasvalue($border) {
- border-bottom: $border;
- &:first-child {
- border-top: $border;
- }
- }
-
- // Inner elements share the same basic styles
- > a, > span, > label {
- display: block;
- padding: $padding;
- padding-left: get-side($padding, left);
- color: $color;
- line-height: 1;
- }
- > span {
- cursor: default;
- }
- > a, > label {
- cursor: pointer;
-
- &:hover {
- color: $color-hover;
- }
- }
- > a, > label, select {
- &:hover {
- background: $background-hover;
- }
- }
-
- // Coloring classes
- &.caution > a {
- &, &:hover { color: $alert-color; }
- }
- &.disabled > a {
- cursor: default;
- &, &:hover { color: $color-disabled; }
- &:hover { background: transparent; }
- }
-}
-
-/*
- Adds label styles to the class you include this mixin in.
-
- $color - color of the label.
- $left-class - extra class to flip the orientation of the label.
- $left-padding - left padding to use for left-hand labels.
-*/
-@mixin block-list-label(
- $color: $blocklist-item-label-color,
- $left-class: 'left',
- $left-padding: get-side($blocklist-item-padding, top)
-) {
- display: inline-block;
- float: right;
- padding: 0;
- color: $color;
- pointer-events: none;
-
- &.#{$left-class} {
- margin-left: $left-padding;
- float: none;
- }
-}
-
-/*
- Adds support for chevrons, which appear on the right-hand side of the item.
-
- $color - color of the chevron.
- $padding - include the global padding of block list items here.
-*/
-@mixin block-list-chevron(
- $color: $blocklist-header-color,
- $padding: $blocklist-item-padding,
- $label-class: 'block-list-label'
-) {
- // Chevrons are a pseudo-element
- &::after {
- content: '\203A';
- display: block;
- position: absolute;
- right: get-side($padding, right);
- top: 50%;
- transform: translateY(-50%);
- font-weight: bold;
- color: $color;
- font-size: 2em;
- }
-
- // Labels next to links move over to make room for the chevron
- // TODO: this selector needs to be customiable, but adding a setting just for it might be weird
- .#{$label-class} {
- padding-right: get-side($padding, right) * 1.5;
- }
-}
-
-/*
- Adds icon styles. Call this mixin on a block list container.
-
- $size - size of the icon as a percentage (decimal) of the list item's height.
- $item-selector - overrides the 'li' selector used for list items.
-*/
-@mixin block-list-icons(
- $size: $blocklist-item-icon-size,
- $item-selector: 'li'
-) {
- // PH - need a better solution
- $item-height:
- $blocklist-fontsize
- + get-side($blocklist-item-padding, top)
- + get-side($blocklist-item-padding, top);
-
- $icon-height: $item-height * $blocklist-item-icon-size;
- $icon-offset: ($item-height - $icon-height) * 0.5;
-
- #{$item-selector} {
- > a, > span, > label {
- padding-left: (get-side($blocklist-item-padding, left) * 2) + $blocklist-item-icon-size;
- }
- img, .iconic {
- position: absolute;
- top: $icon-offset;
- left: $icon-offset;
- width: $icon-height;
- height: $icon-height;
- border-radius: 8px;
- pointer-events: none;
- }
- }
-}
-
-/*
- Adds support for text fields, select menus, and checkbox/radio groups in block lists.
-
- $color - color of select menu arrow.
- $background-hover - color of select menu when hovered over.
- $padding - include the global padding of block list items here.
- $dropdown-class - class to use for list items that contain a dropdown.
- $switch-class - class to use for switches inside list items.
-*/
-@mixin block-list-inputs(
- $color: $blocklist-item-color,
- $background: $blocklist-background,
- $background-hover: $blocklist-item-background-hover,
- $padding: $blocklist-item-padding,
- $icons: $blocklist-check-icons,
- $dropdown-class: 'with-dropdown',
- $switch-class: 'switch'
-) {
- // Text fields
- #{$text-input-selectors} {
- margin: 0;
- border: 0;
- line-height: 1;
- height: auto;
- padding: $padding;
- color: inherit;
-
- &:hover, &:focus {
- border: 0;
- }
- }
-
- // Multiple select
- li > input[type="checkbox"], li > input[type="radio"] {
- position: absolute;
- left: -9999px;
-
- & + label {
- display: block;
- font-size: $blocklist-fontsize;
- margin: 0;
- }
-
- @if $icons == true {
- &:checked + label {
- &::before {
- @include image-checkmark($color);
- content: '';
- background-size: 100% 100%;
- width: 1.5em;
- height: 1.5em;
- color: $primary-color;
- float: right;
- pointer-events: none;
- margin-top: -0.25em;
- }
- }
- }
- }
-
- // Dropdowns
- .#{$dropdown-class} {
- color: inherit;
-
- select {
- // Reset pesky <select> styles
- -webkit-appearance: none;
- -moz-appearance: none;
- outline: 0;
- background: 0;
- border: 0;
- height: auto;
- padding: $padding;
- margin: 0;
- font-size: 1em; // Same size as its parent
- line-height: 1;
- color: inherit;
- background-color: transparent;
- }
- }
-
- // Switches
- .#{$switch-class} {
- position: absolute;
- top: 50%;
- right: get-side($padding, right);
- transform: translateY(-50%);
- }
-}
-
-@include exports(block-list) {
- .block-list {
- @include block-list-container;
- @include block-list-inputs;
-
- &.with-icons { @include block-list-icons; }
- header { @include block-list-header; }
-
- li {
- @include block-list-item;
-
- &.with-chevron { @include block-list-chevron; }
- .block-list-label { @include block-list-label; }
- }
- }
-}
diff --git a/frontend/src/global_styles/vendor/foundation-apps/scss/components/_button-group.scss b/frontend/src/global_styles/vendor/foundation-apps/scss/components/_button-group.scss
deleted file mode 100644
index 6670c91aa8f..00000000000
--- a/frontend/src/global_styles/vendor/foundation-apps/scss/components/_button-group.scss
+++ /dev/null
@@ -1,197 +0,0 @@
-/// @Foundation.settings
-// Button Group
-$btngroup-background: $primary-color !default;
-$btngroup-color: #fff !default;
-$btngroup-radius: $button-radius !default;
-///
-
-$child-selectors: '> a, > label, > button';
-
-%button-group {
- margin: 0;
- margin-bottom: 1rem;
- list-style-type: none;
- display: inline-flex;
- border-radius: $btngroup-radius;
- overflow: hidden;
- font-size: $button-font-size;
-
- > li {
- flex: 0 0 auto;
-
- // Links become buttons
- #{$child-selectors} {
- @extend %button;
- border-radius: 0;
- font-size: inherit;
- display: block;
- margin: 0;
- }
- > input + label {
- margin-left: 0;
- }
- // Add borders between items
- &:not(:last-child) {
- #{$child-selectors} {
- border-right: 1px solid scale-color($btngroup-background, $lightness: -25%);
- }
- }
- }
-
- @if using(iconic) {
- .iconic {
- width: 1em;
- height: 1em;
- vertical-align: middle;
- margin-right: 0.25em;
- margin-top: -2px; // The icons are oddly misaligned
- }
- }
-}
-
-%button-group-segmented {
- border: 1px solid $primary-color;
- transition-property: background color;
-
- > li {
- // Hide the radio button
- > input[type="radio"] {
- position: absolute;
- left: -9999px;
- }
- // This is the button
- #{$child-selectors} {
- margin-right: 0;
- background: transparent;
- }
- }
-}
-
-@mixin button-group-size($size: medium, $expand: false) {
- $size: $button-font-size * map-get($button-sizes, $size);
- font-size: $size;
-
- @if $expand {
- @include button-group-expand;
- }
-}
-@mixin button-group-expand($stretch: true) {
- display: if($stretch, flex, inline-flex);
-
- > li {
- flex: if($stretch, 1, 0 0 auto);
-
- #{$child-selectors} {
- @if $stretch { @include button-expand; }
- }
- }
-}
-@mixin button-group-style(
- $segmented: false,
- $background: $primary-color,
- $color: auto
-) {
-
- @if not($segmented) {
- > li {
- #{$child-selectors} {
- @include button-style($background, auto, $color);
- border-color: scale-color($background, $lightness: -15%);
- }
- &.is-active {
- #{$child-selectors} {
- background: scale-color($background, $lightness: -15%);
- }
- }
- }
- }
- @else {
- @extend %button-group-segmented;
- $hover-color: rgba($background, 0.25);
- border-color: $background;
-
- > li {
- // This is the button
- #{$child-selectors} {
- border-color: $background;
- color: $background;
-
- // This is the button being hovered on
- &:hover {
- background: $hover-color;
- color: $background;
- }
-
- @if using(iconic) {
- .iconic { @include color-icon($background); }
- }
- }
-
- // This is the button when it's active
- &.is-active > a,
- > input:checked + label {
- &, &:hover {
- background: $background;
- color: isitlight($background);
- }
-
- @if using(iconic) {
- .iconic { @include color-icon(isitlight($background)); }
- }
- }
- }
- }
-}
-
-@mixin button-group(
- $segmented: false,
- $expand: false,
- $background: $primary-color,
- $color: #fff
-) {
- @extend %button-group;
- @include button-group-expand($expand);
- @include button-group-style($segmented, $background, $color);
- border-radius: $btngroup-radius;
-}
-
-@include exports(button-group) {
- .button-group {
- @include button-group;
-
- // Colors
- &.secondary { @include button-group-style(false, $secondary-color); }
- &.success { @include button-group-style(false, $success-color); }
- &.warning { @include button-group-style(false, $warning-color); }
- &.alert { @include button-group-style(false, $alert-color); }
-
- // Individual colors
- > li {
- &.secondary { #{$child-selectors} { @include button-style($secondary-color, auto, $btngroup: true); } }
- &.success { #{$child-selectors} { @include button-style($success-color, auto, $btngroup: true); } }
- &.warning { #{$child-selectors} { @include button-style($warning-color, auto, $btngroup: true); } }
- &.alert { #{$child-selectors} { @include button-style($alert-color, auto, $btngroup: true); } }
- }
-
- // Segmented
- &.segmented { @include button-group-style(true);
- &.secondary { @include button-group-style(true, $secondary-color); }
- &.success { @include button-group-style(true, $success-color); }
- &.warning { @include button-group-style(true, $warning-color); }
- &.alert { @include button-group-style(true, $alert-color); }
- }
-
- // Sizing
- &.tiny { @include button-group-size(tiny); }
- &.small { @include button-group-size(small); }
- &.large { @include button-group-size(large); }
- &.expand { @include button-group-expand; }
-
- // Disabled
- li.disabled {
- #{$child-selectors} {
- @include button-disabled;
- }
- }
- }
-}
diff --git a/frontend/src/global_styles/vendor/foundation-apps/scss/components/_card.scss b/frontend/src/global_styles/vendor/foundation-apps/scss/components/_card.scss
deleted file mode 100644
index e085373e81f..00000000000
--- a/frontend/src/global_styles/vendor/foundation-apps/scss/components/_card.scss
+++ /dev/null
@@ -1,93 +0,0 @@
-/*
- Cards
-
- Structure:
-
- titles
- lists
-*/
-
-/// @Foundation.settings
-// Card
-$card-background: #fff !default;
-$card-color: isitlight($card-background) !default;
-$card-border: 1px solid smartscale($card-background, 7%) !default;
-$card-radius: $global-radius !default;
-$card-shadow: 0 1px 2px rgba(#000, 0.2) !default;
-$card-padding: $global-padding !default;
-$card-margin: 0.5rem !default;
-
-$card-divider-background: smartscale($card-background, 7%) !default;
-///
-
-@mixin card-container(
- $background: $card-background,
- $color: $card-color,
- $border: $card-border,
- $radius: $card-radius,
- $shadow: $card-shadow,
- $padding: $card-padding,
- $margin: $card-margin
-) {
- border: $border;
- margin-bottom: $margin;
- background: $background;
- color: $color;
- border-radius: $radius;
- box-shadow: $shadow;
- overflow: hidden;
-
- h1, h2, h3, h4, h5, h6 {
- color: inherit;
- }
-
- ul {
- margin-bottom: 0;
- }
-
- img {
- width: 100%;
- }
-}
-
-@mixin card-divider(
- $background: $card-divider-background,
- $padding: $card-padding
-) {
- background: $background;
- padding: $padding;
-}
-
-@mixin card-section(
- $padding: $card-padding
-) {
- padding: $padding;
-}
-
-@include exports(card) {
- .card {
- @include card-container;
-
- @each $color in map-keys($foundation-colors) {
- &.#{$color} {
- $color-value: map-get($foundation-colors, $color);
- @include card-container(
- $background: $color-value,
- $color: isitlight($color-value),
- $border: 0
- );
- .card-divider {
- @include card-divider(
- $background: smartscale($color-value, 7%)
- );
- }
- }
- }
- }
- .card-divider {
- @include card-divider;
- }
- .card-section {
- @include card-section;
- }
-}
diff --git a/frontend/src/global_styles/vendor/foundation-apps/scss/components/_menu-bar.scss b/frontend/src/global_styles/vendor/foundation-apps/scss/components/_menu-bar.scss
deleted file mode 100644
index 7e2f99dbb2c..00000000000
--- a/frontend/src/global_styles/vendor/foundation-apps/scss/components/_menu-bar.scss
+++ /dev/null
@@ -1,363 +0,0 @@
-/*
- MENU BAR
- --------
-
- A generic, flexible menu component.
-
- Features:
- - Orient horizontally and vertically
- - Change orientation at certain breakpoints
- - Items with icons above, below, or to the left or right
- - Text labels for vertical menus and badges for horizontal menus
-*/
-
-/// @Foundation.settings
-// Menu Bar
-$menubar-fontsize: 1rem !default;
-$menubar-background: #fff !default;
-$menubar-background-hover: smartscale($menubar-background, 7%) !default;
-$menubar-background-active: $menubar-background-hover;
-$menubar-color: isitlight($menubar-background) !default;
-$menubar-color-hover: $menubar-color !default;
-$menubar-color-active: $menubar-color-hover;
-
-$menubar-item-padding: $global-padding !default;
-$menubar-icon-size: 25px !default;
-$menubar-icon-spacing: $menubar-item-padding !default;
-///
-
-// Menu bar container
-%menu-bar {
- display: flex;
- align-items: stretch;
- margin: 0;
- list-style-type: none;
-
- // Menu item
- > li {
- // This flex setting makes each item an equal width
- flex: 1 0 auto;
- align-items: center;
-
- // Link inside menu item
- > a {
- display: flex;
- flex-flow: column nowrap;
- align-items: center;
- padding: $menubar-item-padding;
- font-size: $menubar-fontsize;
- line-height: 1;
- }
- }
-}
-
-@mixin menu-bar-layout (
- $orientation: horizontal,
- $stretch: true
-) {
- /*
- Orientation
- */
- @if $orientation == horizontal {
- overflow-x: hidden;
- flex-flow: row nowrap;
- > li > a {
- flex-flow: column nowrap;
- }
- }
- @else {
- flex-flow: column nowrap;
- > li > a {
- flex-flow: row nowrap;
- }
- }
-
- /*
- Stretch
- */
- > li {
- @if $stretch == false {
- flex: 0 0 auto;
- }
- }
-}
-
-@mixin menu-bar-style(
- $background: $menubar-background,
- $background-hover: $menubar-background-hover,
- $background-active: $menubar-background-active,
- $color: $menubar-color,
- $color-hover: $menubar-color-hover,
- $color-active: $menubar-color-active,
- $autocolor: false
-) {
- // Autocoloring
- @if ($autocolor) {
- $background-hover: smartscale($background, 7%);
- $background-active: $background-hover;
-
- $color: isitlight($background);
- $color-hover: $color;
- $color-active: $color;
- }
-
- // Container
- background: $background;
-
- // Items
- > li > a {
- color: $color;
-
- &:hover {
- background: $background-hover;
- color: $color-hover;
- }
- }
- .is-active > a {
- background: $background-active;
- color: $color-active
- }
-
- // Iconic
- @if using(iconic) {
- .iconic { @include color-icon($color); }
- }
-}
-
-@mixin menu-bar-icons(
- $position: left,
- $size: $menubar-icon-size
-) {
- > li {
- // Sizing
- > img, > .iconic {
- margin: 0;
- @if $menubar-icon-size != false {
- width: $menubar-icon-size;
- height: $menubar-icon-size;
- }
- }
-
- // Position
- @if $position == left {
- > a {
- flex-flow: row nowrap;
- align-items: center;
- > img, > .iconic { margin: 0 $menubar-icon-spacing 0 0; }
- }
- }
- @if $position == top {
- > a {
- flex-flow: column nowrap;
- > img, > .iconic { margin: 0 0 $menubar-icon-spacing 0; }
- }
- }
- @if $position == right {
- > a {
- flex-flow: row-reverse nowrap;
- > img, > .iconic { margin: 0 0 0 $menubar-icon-spacing; }
- }
- }
- @if $position == bottom {
- > a {
- flex-flow: column-reverse nowrap;
- > img, > .iconic { margin: $menubar-icon-spacing 0 0 0; }
- }
- }
- }
-}
-
-@mixin menu-bar-labels(
- $x: right,
- $y: center,
- $offset: $menubar-item-padding,
- $size: 1.2rem,
- $background: red,
- $color: auto,
- $selector: '.menu-bar-label'
-) {
- > li {
- position: relative;
-
- > a {
- @if $x == left or $x == right {
- padding-#{$x}: $size + $offset * 2;
- }
- }
- }
-
- #{$selector} {
- display: block;
- font-size: $size * 0.75;
- width: $size;
- height: $size;
- line-height: $size;
- text-align: center;
- border-radius: 1000px;
- background: $background;
- color: if($color == auto, isitlight($background), $color);
- position: absolute;
- pointer-events: none;
-
- @if $x == left or $x == right {
- #{$x}: $offset;
- }
-
- @if $y == top or $y == bottom {
- #{$y}: $offset;
- }
- @else {
- top: 50%;
- transform: translateY(-50%);
- }
- }
-}
-
-/*
- Set the alignment of menu items (li) within a menu-bar
-
- left: Items align to the left.
- right: Items align to the right.
- center: Items align to the center.
- justify: Items are spaced equally apart so they occupy the space of the entire grid.
- spaced: Items are given equal space to their left and right.
-
- @group menu-bar
-
- @param {string} $align - Alignment to use.
-
- @output An appropriate justify-content value.
-*/
-@mixin menu-bar-align($align: left) {
- $options: (
- left: flex-start,
- right: flex-end,
- center: center,
- justify: space-between,
- spaced: space-around,
- );
- justify-content: map-get($options, $align);
-}
-
-/*
- CSS output
-*/
-@include exports(menu-bar) {
- .menu-bar {
- @extend %menu-bar;
- @include menu-bar-style;
-
- // Positioning
- &, &.horizontal { @include menu-bar-layout(horizontal); }
- &.vertical { @include menu-bar-layout(vertical); }
-
- // Condensed bar
- &.condense {
- > li { flex: 0 0 auto; }
- }
-
- // Align Menu Items
- &.align-right { @include menu-bar-align(right); }
- &.align-center { @include menu-bar-align(center); }
- &.align-justify { @include menu-bar-align(justify); }
- &.align-spaced { @include menu-bar-align(spaced); }
-
- @each $size in $breakpoint-classes {
- @include breakpoint($size) {
- &.#{$size}-condense { li { flex: 0 0 auto; } }
- &.#{$size}-expand { li { flex: 1 0 auto; } }
-
- // Responsive Alignment
- &.#{$size}-align-left { @include menu-bar-align(left); }
- &.#{$size}-align-right { @include menu-bar-align(right); }
- &.#{$size}-align-center { @include menu-bar-align(center); }
- &.#{$size}-align-justify { @include menu-bar-align(justify); }
- &.#{$size}-align-spaced { @include menu-bar-align(spaced); }
- }
- }
-
- // Responsive positioning
- @each $size in $breakpoint-classes {
- @include breakpoint($size) {
- &.#{$size}-horizontal {
- @include menu-bar-layout(horizontal);
- }
- &.#{$size}-vertical {
- @include menu-bar-layout(vertical);
- }
- }
- }
-
- // Icon positioning
- &, &.icon-top { @include menu-bar-icons(top); }
- &.icon-right { @include menu-bar-icons(right); }
- &.icon-bottom { @include menu-bar-icons(bottom); }
- &.icon-left { @include menu-bar-icons(left); }
- @each $size in $breakpoint-classes {
- @each $pos in (top, right, bottom, left) {
- @include breakpoint($size) {
- &.#{$size}-icon-#{$pos} { @include menu-bar-icons($pos); }
- }
- }
- }
-
- // Labels
- &.label-side { @include menu-bar-labels(right, center); }
- &.label-corner { @include menu-bar-labels(right, top); }
-
- // Coloring
- &.primary {
- @include menu-bar-style($primary-color, $autocolor: true);
- }
- &.dark {
- @include menu-bar-style($dark-color, $autocolor: true);
- }
-
- // Title
- > li.title {
- padding: $menubar-item-padding;
- cursor: default;
- font-weight: bold;
- }
- }
-
- // Menu groups
- .menu-group {
- display: flex;
- align-items: center;
- justify-content: space-between;
- flex-wrap: wrap;
-
- @include breakpoint(medium) {
- flex-wrap: nowrap;
- }
-
- > .menu-group-left, > .menu-group-right {
- flex: 1 1 100%;
-
- @include breakpoint(medium) {
- flex: 0 0 auto;
- }
- }
-
- // Menu bar is condensed
- .menu-bar {
- > li { flex: 0 0 auto; }
- margin: 0;
- }
-
- // Coloring class cascades down to the menu bar
- &.primary {
- background-color: $primary-color;
- .menu-bar {
- @include menu-bar-style($primary-color, $autocolor: true);
- }
- }
- &.dark {
- background-color: $dark-color;
- .menu-bar {
- @include menu-bar-style($dark-color, $autocolor: true);
- }
- }
- }
-}
\ No newline at end of file
diff --git a/frontend/src/global_styles/vendor/foundation-apps/scss/components/_off-canvas.scss b/frontend/src/global_styles/vendor/foundation-apps/scss/components/_off-canvas.scss
deleted file mode 100644
index 60ab0a315fa..00000000000
--- a/frontend/src/global_styles/vendor/foundation-apps/scss/components/_off-canvas.scss
+++ /dev/null
@@ -1,169 +0,0 @@
-/*
- Off-canvas menu
- ---------------
-
- A generic container that stays fixed to the left, top, right, or bottom of the screen, and is summoned when needed. When an off-canvas panel is open, the app frame shifts over to reveal the menu.
-*/
-
-/// @Foundation.settings
-// Off-canvas
-$offcanvas-size-horizontal: 250px !default;
-$offcanvas-size-vertical: 250px !default;
-
-$offcanvas-background: #fff !default;
-$offcanvas-color: isitlight($offcanvas-background) !default;
-$offcanvas-padding: 0 !default;
-$offcanvas-shadow: 3px 0 10px rgba(black, 0.25) !default;
-$offcanvas-animation-speed: 0.25s !default;
-
-$offcanvas-frame-selector: '.grid-frame' !default;
-///
-
-%off-canvas {
- position: fixed;
- overflow: auto;
- -webkit-overflow-scrolling: touch;
- transition: transform $offcanvas-animation-speed ease-out;
- z-index: 2;
-
- // Active state
- &.is-active {
- transform: translate(0,0) !important;
- }
-
- // Frame styles
- & ~ #{$offcanvas-frame-selector} {
- transform: translate(0,0,0);
- transition: transform 0.25s ease-out;
- backface-visibility: hidden;
- background: white;
- }
-}
-@mixin off-canvas-detached {
- z-index: 0;
- box-shadow: none;
-
- &, &.is-active {
- transform: none;
- }
-
- & ~ #{$offcanvas-frame-selector} {
- z-index: 1;
- box-shadow: 0 0 15px rgba(0,0,0,0.5);
- }
-}
-
-@mixin off-canvas-layout(
- $position: left,
- $size: default,
- $shadow: $offcanvas-shadow
-) {
- /*
- Get shadow values for later use
- */
- $shadow-length: '';
- $shadow-size: '';
- $shadow-color: '';
- @if hasvalue($shadow) {
- $shadow-length: get-shadow-value($shadow, x);
- $shadow-size: get-shadow-value($shadow, size);
- $shadow-color: get-shadow-value($shadow, color);
- }
-
- /*
- Sizing
- */
- @if $position == left or $position == right {
- @if $size == default {
- $size: $offcanvas-size-horizontal;
- }
- width: $size;
- height: 100%;
- }
- @else {
- @if $size == default {
- $size: $offcanvas-size-vertical;
- }
- height: $size;
- width: 100%;
- }
-
- /*
- Positioning
- */
- @if $position == left {
- top: 0;
- left: 0;
- @if hasvalue($shadow) { box-shadow: inset (-$shadow-length) 0 $shadow-size $shadow-color; }
- transform: translateX(-100%);
- &.is-active {
- & ~ #{$offcanvas-frame-selector} { transform: translateX($size) !important; }
- }
- }
- @else if $position == right {
- left: auto;
- top: 0;
- right: 0;
- @if hasvalue($shadow) { box-shadow: inset $shadow-length 0 $shadow-size $shadow-color; }
- transform: translateX(100%);
- &.is-active {
- & ~ #{$offcanvas-frame-selector} { transform: translateX(-$size) !important; }
- }
- }
- @else if $position == top {
- top: 0;
- left: 0;
- transform: translateY(-100%);
- @if hasvalue($shadow) { box-shadow: inset 0 (-$shadow-length) $shadow-size $shadow-color; }
- &.is-active {
- & ~ #{$offcanvas-frame-selector} { transform: translateY($size) !important; }
- }
- }
- @else if $position == bottom {
- top: auto;
- bottom: 0;
- left: 0;
- transform: translateY(100%);
- @if hasvalue($shadow) { box-shadow: inset 0 $shadow-length $shadow-size $shadow-color; }
- &.is-active {
- & ~ #{$offcanvas-frame-selector} { transform: translateY(-$size) !important; }
- }
- }
-}
-
-@mixin off-canvas-style(
- $background: $offcanvas-background,
- $color: $offcanvas-color,
- $padding: $offcanvas-padding
-) {
- background: $background;
-
- @if $color == auto {
- color: isitlight($background, #000, #fff);
- }
- @else {
- color: $color;
- }
-
- @if hasvalue($padding) {
- padding: $padding;
- }
-}
-
-@include exports(off-canvas) {
- .off-canvas {
- @extend %off-canvas;
- @include off-canvas-layout;
- @include off-canvas-style;
-
- &.top { @include off-canvas-layout(top); }
- &.right { @include off-canvas-layout(right); }
- &.bottom { @include off-canvas-layout(bottom); }
- &.left { @include off-canvas-layout(left); }
-
- &.detached { @include off-canvas-detached; }
-
- &.primary { @include off-canvas-style($primary-color, auto); }
- &.dark { @include off-canvas-style($dark-color, auto); }
- }
-}
diff --git a/frontend/src/global_styles/vendor/foundation-apps/scss/components/_popup.scss b/frontend/src/global_styles/vendor/foundation-apps/scss/components/_popup.scss
deleted file mode 100644
index db13df73930..00000000000
--- a/frontend/src/global_styles/vendor/foundation-apps/scss/components/_popup.scss
+++ /dev/null
@@ -1,68 +0,0 @@
-/*
- POPUP
- -----
-
- A floating container that can anchor to any other on-screen element, and contain any content, including grid blocks or panels.
-*/
-
-/// @Foundation.settings
-// Popup
-$popup-width: rem-calc(300) !default;
-$popup-background: #fff !default;
-$popup-border: 0 !default;
-$popup-radius: 0 !default;
-$popup-shadow: 0 0 10px rgba(#000, 0.25) !default;
-///
-
-%popup {
- position: absolute;
- z-index: 1000;
- opacity: 0;
- overflow: hidden;
- transition: opacity 0.25s ease-out;
- pointer-events: none;
-
- &.tether-enabled {
- opacity: 1;
- pointer-events: auto;
- }
-}
-
-@mixin popup-layout(
- $width: $popup-width
-) {
- width: $popup-width;
-}
-@mixin popup-style(
- $background: $popup-background,
- $color: #000,
- $radius: $popup-radius,
- $shadow: $popup-shadow,
- $border: $popup-border
-) {
- background: $background;
- border-radius: $radius;
- box-shadow: $shadow;
- border: $border;
-}
-
-@mixin popup(
- $width: $popup-width,
- $background: $popup-background,
- $radius: $popup-radius,
- $shadow: $popup-shadow,
- $border: $popup-border
-) {
- @extend %popup;
- @include popup-layout($width);
- @include popup-style($background, isitlight($background), $radius, $shadow, $border);
-}
-
-@include exports(popup) {
- .popup {
- @include popup;
-
- &.dark { @include popup-style($dark-color, #fff); }
- &.primary { @include popup-style($primary-color, isitlight($primary-color)); }
- }
-}
diff --git a/frontend/src/global_styles/vendor/foundation-apps/scss/components/_switch.scss b/frontend/src/global_styles/vendor/foundation-apps/scss/components/_switch.scss
deleted file mode 100644
index 599d21406d2..00000000000
--- a/frontend/src/global_styles/vendor/foundation-apps/scss/components/_switch.scss
+++ /dev/null
@@ -1,130 +0,0 @@
-/*
- SWITCH
- ------
-*/
-
-/// @Foundation.settings
-// Switch
-$switch-width: rem-calc(50) !default;
-$switch-height: rem-calc(32) !default;
-$switch-background: #ccc !default;
-$switch-background-active: $primary-color !default;
-$switch-border: 0 !default;
-$switch-radius: 9999px !default;
-$switch-animation-speed: 0.15s !default;
-
-$switch-paddle-color: white !default;
-$switch-paddle-offset: 4px !default;
-///
-
-%switch {
- position: relative;
- overflow: hidden;
- display: inline-block;
-
- > input {
- position: absolute;
- left: -9999px;
- outline: none;
- }
-
- > label {
- -ms-touch-action: manipulation;
- touch-action: manipulation;
- display: block;
- width: 100%;
- height: 100%;
- cursor: pointer;
- margin: 0;
-
- // Paddle
- &::after {
- content: '';
- display: block;
- position: absolute;
- top: 0;
- left: 0;
- }
- }
-}
-
-/*
- Defines the dimensions of the switch.
-
- $width - width of the switch.
- $height - height of the switch.
-*/
-@mixin switch-layout(
- $width: $switch-width,
- $height: $switch-height
-) {
- width: $width;
- height: $height;
-
- > label {
- &::after {
- width: $height;
- height: $height;
- }
- }
- input:checked + label {
- &::after {
- left: $width - $height;
- }
- }
-}
-
-@mixin switch-style(
- $background: $switch-background,
- $background-active: $switch-background-active,
- $border: $switch-border,
- $radius: $switch-radius,
- $paddle-color: $switch-paddle-color,
- $paddle-offset: $switch-paddle-offset,
- $animation-speed: $switch-animation-speed
-) {
- @if hasvalue($border) {
- border: $border;
- }
- border-radius: $radius;
-
- > label {
- background: $background;
-
- &::after {
- background: $paddle-color;
- border-radius: $radius;
- transition: left $animation-speed ease-out;
-
- @if hasvalue($paddle-offset) {
- border: $paddle-offset solid $background
- }
- }
- }
-
- input:checked + label {
- background: $background-active;
- margin: 0;
-
- &::after {
- @if hasvalue($paddle-offset) {
- border-color: $background-active;
- }
- }
- }
-}
-
-@mixin switch() {
- @extend %switch;
- @include switch-layout;
- @include switch-style;
-}
-
-@include exports(switch) {
- .switch {
- @include switch;
-
- &.small { @include switch-layout(rem-calc(40), rem-calc(26)); }
- &.large { @include switch-layout(rem-calc(60), rem-calc(38)); }
- }
-}
diff --git a/frontend/src/global_styles/vendor/foundation-apps/scss/components/_title-bar.scss b/frontend/src/global_styles/vendor/foundation-apps/scss/components/_title-bar.scss
deleted file mode 100644
index 8d412400c55..00000000000
--- a/frontend/src/global_styles/vendor/foundation-apps/scss/components/_title-bar.scss
+++ /dev/null
@@ -1,135 +0,0 @@
-/*
- TITLE BAR
- ---------
-
- A navigational component which can display the current screen the user is on, along with additional controls or menu items.
-
- The title bar includes classes to create center, left, and right sections, which can be used in any combination. However, in the markup, the sections must come in this order:
- - Center
- - Left
- - Right
-*/
-
-/// @Foundation.settings
-// Title Bar
-$titlebar-center-width: 50% !default;
-$titlebar-side-width: (100% - $titlebar-center-width) * 0.5 !default;
-$titlebar-background: #eee !default;
-$titlebar-color: #000 !default;
-$titlebar-border: 1px solid #ccc !default;
-$titlebar-padding: $global-padding !default;
-$titlebar-item-classes: (
- center: 'center',
- left: 'left',
- right: 'right',
- title: 'title',
-) !default;
-///
-
-%title-bar {
- $center: map-get($titlebar-item-classes, center);
- $left: map-get($titlebar-item-classes, left);
- $right: map-get($titlebar-item-classes, right);
- $title: map-get($titlebar-item-classes, title);
-
- display: flex;
- flex: 0 0 auto;
- align-items: center;
- justify-content: flex-start;
- overflow: visible;
-
- // Denotes the title of the bar
- .#{$title} {
- font-weight: bold;
- }
-
- // Denotes left, right, and center sections of the bar
- .#{$left}, .#{$center}, .#{$right} {
- display: block;
- white-space: nowrap;
- overflow: visible;
-
- // If only one section is in use, stretch it all the way out
- &:first-child:last-child {
- flex: 1;
- margin: 0;
- }
- }
-
- // Left always comes first, then center, then right
- // The left and right sections have the same width
- .#{$left} {
- order: 1;
- flex: 0 0 $titlebar-side-width;
- }
- .#{$center} {
- order: 2;
- flex: 0 0 $titlebar-center-width;
- text-align: center;
- }
- .#{$right} {
- order: 3;
- flex: 0 0 $titlebar-side-width;
- text-align: right;
- }
-
- // If only left and right are in use, stretch them both out equally
- .#{$left}:first-child {
- flex: 1 1 auto;
- }
- .#{$left}:first-child + .#{$right}:last-child {
- flex: 1 1 auto;
- }
-
- // If only center and right are in use, shift the center section into the right position
- .#{$center}:first-child:not(:last-child) {
- margin-left: $titlebar-side-width;
- }
- // If only center and left are in use, override the above style
- .#{$center} + .#{$left} {
- margin-right: -($titlebar-side-width);
- }
-}
-
-@mixin title-bar-style(
- $background: $titlebar-background,
- $color: $titlebar-color,
- $border: $titlebar-border,
- $padding: $titlebar-padding
-) {
- background: $background;
- color: $color;
- padding: $padding;
- border-bottom: $border;
-}
-
-@mixin title-bar(
- $background: $titlebar-background,
- $color: $titlebar-color,
- $border: $titlebar-border,
- $padding: $titlebar-padding
-) {
- @extend %title-bar;
- @include title-bar-style($background, $color, $border, $padding);
-}
-
-@include exports(title-bar) {
- .title-bar {
- @include title-bar;
-
- &.primary {
- @include title-bar-style($primary-color, isitlight($primary-color));
- a, a:hover { color: isitlight($primary-color); }
- @if using(iconic) { .iconic { @include color-icon(isitlight($primary-color)); } }
- }
- &.dark {
- @include title-bar-style($dark-color, #fff);
- a, a:hover { color: #fff; }
- @if using(iconic) { .iconic { @include color-icon(#fff); } }
- }
- }
- .title-bar-bottom {
- border-bottom: 0;
- border-top: $titlebar-border;
- }
-}
diff --git a/frontend/src/global_styles/vendor/foundation-apps/scss/foundation.scss b/frontend/src/global_styles/vendor/foundation-apps/scss/foundation.scss
index 2c99ef9f735..743e401d4a1 100755
--- a/frontend/src/global_styles/vendor/foundation-apps/scss/foundation.scss
+++ b/frontend/src/global_styles/vendor/foundation-apps/scss/foundation.scss
@@ -21,25 +21,15 @@ $foundation-version: '1.1.0';
@import "global";
// Components
-@import "components/action-sheet",
-"components/block-list",
-"components/button",
-"components/button-group",
-"components/card",
+@import "components/button",
"components/extras",
"components/forms",
"components/grid",
-"components/title-bar",
"components/label",
"components/list",
-"components/menu-bar",
"components/modal",
"components/motion",
"components/toast",
-"components/off-canvas",
-"components/popup",
-"components/switch",
"components/tabs",
-"components/accordion",
"components/typography",
"components/utilities";