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 the last remains of Foundation for Apps including Breakpoints. The Breakpoints are now used from Primer

Henriette Dargeeb8b5f421ae6
diff --git a/frontend/src/app/core/browser/device.service.ts b/frontend/src/app/core/browser/device.service.ts
index f89c9167aa4..d78da25383b 100644
--- a/frontend/src/app/core/browser/device.service.ts
+++ b/frontend/src/app/core/browser/device.service.ts
@@ -2,7 +2,7 @@ import { Injectable } from '@angular/core';
@Injectable({ providedIn: 'root' })
export class DeviceService {
- public mobileWidthTreshold = 680;
+ public mobileWidthTreshold = 544;
public get isMobile():boolean {
return (window.innerWidth < this.mobileWidthTreshold);
diff --git a/frontend/src/app/core/global_search/input/global-search-input-mobile.component.sass b/frontend/src/app/core/global_search/input/global-search-input-mobile.component.sass
index 23096d1367d..cd405c37c52 100644
--- a/frontend/src/app/core/global_search/input/global-search-input-mobile.component.sass
+++ b/frontend/src/app/core/global_search/input/global-search-input-mobile.component.sass
@@ -2,7 +2,7 @@
$search-input-height-mobile: 36px
-@media only screen and (max-width: 679px)
+@media screen and (max-width: $breakpoint-sm)
.top-menu-search
&--input
display: none
diff --git a/frontend/src/app/core/global_search/input/global-search-input.component.sass b/frontend/src/app/core/global_search/input/global-search-input.component.sass
index 1ba65890bdb..24430784037 100644
--- a/frontend/src/app/core/global_search/input/global-search-input.component.sass
+++ b/frontend/src/app/core/global_search/input/global-search-input.component.sass
@@ -13,7 +13,7 @@ $search-input-height: 30px
line-height: var(--header-height)
margin: 0 15px
- @media screen and (max-width: 679px)
+ @media screen and (max-width: $breakpoint-sm)
margin: 0
&--back-button
@@ -29,10 +29,7 @@ $search-input-height: 30px
&:hover
text-decoration: none
- // TODO: This should be using @include breakpoint(680px down)
- // Which is hard to do since we don't have access here and it'll
- // probably require a larger sass import refactoring
- @media screen and (max-width: 679px)
+ @media screen and (max-width: $breakpoint-sm)
position: relative
padding: 0 8px
@@ -73,7 +70,7 @@ $search-input-height: 30px
text-align: center
.ng-input
- @media screen and (max-width: 679px)
+ @media screen and (max-width: $breakpoint-sm)
// TODO: We need to do this because the default ng-select theme uses a specificity of 5(!) classes
// We should probably remove the default theme altogether at some point
top: 0 !important
@@ -145,4 +142,4 @@ $search-input-height: 30px
// Fix position of the spinner
.ng-spinner-loader
position: relative
- right: 14px
\ No newline at end of file
+ right: 14px
diff --git a/frontend/src/app/core/global_search/input/global-search.component.sass b/frontend/src/app/core/global_search/input/global-search.component.sass
index ef0e80fa23f..d0a1b797dd6 100644
--- a/frontend/src/app/core/global_search/input/global-search.component.sass
+++ b/frontend/src/app/core/global_search/input/global-search.component.sass
@@ -3,7 +3,7 @@
.global-search
flex-grow: 1
- @media screen and (max-width: 679px)
+ @media screen and (max-width: $breakpoint-sm)
display: none
&--input[type="text"]
diff --git a/frontend/src/app/features/bim/ifc_models/bcf/list/bcf-list.component.sass b/frontend/src/app/features/bim/ifc_models/bcf/list/bcf-list.component.sass
index 6fe87f9e130..1ef1768c2d4 100644
--- a/frontend/src/app/features/bim/ifc_models/bcf/list/bcf-list.component.sass
+++ b/frontend/src/app/features/bim/ifc_models/bcf/list/bcf-list.component.sass
@@ -16,7 +16,7 @@
&._with-resizer
padding-left: 10px
- @media screen and (max-width: 679px)
+ @media screen and (max-width: $breakpoint-sm)
// Ensure the WP cards span the complete width on mobile
// --> Move scrollbar out of visible area
min-width: calc(100vw + 10px)
@@ -30,7 +30,7 @@
&._with-resizer
padding-left: 10px
- @media screen and (max-width: 679px)
+ @media screen and (max-width: $breakpoint-sm)
// Ensure the WP cards span the complete width on mobile
// --> Move scrollbar out of visible area
- min-width: calc(100vw + 10px)
\ No newline at end of file
+ min-width: calc(100vw + 10px)
diff --git a/frontend/src/app/features/bim/ifc_models/ifc-viewer/ifc-viewer.component.sass b/frontend/src/app/features/bim/ifc_models/ifc-viewer/ifc-viewer.component.sass
index 52fff7ebbca..ba16686f0cc 100644
--- a/frontend/src/app/features/bim/ifc_models/ifc-viewer/ifc-viewer.component.sass
+++ b/frontend/src/app/features/bim/ifc_models/ifc-viewer/ifc-viewer.component.sass
@@ -48,7 +48,7 @@
border-left: 2px solid #eee
border-top: 2px solid #eee
- @media only screen and (max-width: 679px)
+ @media only screen and (max-width: $breakpoint-sm)
width: 300px
border-bottom: 2px solid #eee
@@ -66,5 +66,5 @@
&--nav-cube-canvas,
&--focus-warning
- @media only screen and (max-width: 679px)
+ @media only screen and (max-width: $breakpoint-sm)
display: none
diff --git a/frontend/src/app/features/bim/ifc_models/pages/viewer/styles/generic.sass b/frontend/src/app/features/bim/ifc_models/pages/viewer/styles/generic.sass
index dca529f186e..7e639730003 100644
--- a/frontend/src/app/features/bim/ifc_models/pages/viewer/styles/generic.sass
+++ b/frontend/src/app/features/bim/ifc_models/pages/viewer/styles/generic.sass
@@ -22,7 +22,7 @@
height: 100%
// Override default behavior to let the viewer span the whole height
- @media only screen and (max-width: 679px)
+ @media only screen and (max-width: $breakpoint-sm)
@include extended-content--right
@include extended-content--left
#content-wrapper
diff --git a/frontend/src/app/features/bim/ifc_models/pages/viewer/styles/toolbar.sass b/frontend/src/app/features/bim/ifc_models/pages/viewer/styles/toolbar.sass
index 0fe507a9d4f..63b72d3e1bd 100644
--- a/frontend/src/app/features/bim/ifc_models/pages/viewer/styles/toolbar.sass
+++ b/frontend/src/app/features/bim/ifc_models/pages/viewer/styles/toolbar.sass
@@ -84,7 +84,7 @@
// -------------------------- MOBILE specific --------------------------
-@media only screen and (max-width: 679px)
+@media only screen and (max-width: $breakpoint-sm)
.op-ifc-viewer--toolbar
padding-right: 15px
@@ -99,4 +99,3 @@
.fa-male,
.fa-cut
display: none
-
diff --git a/frontend/src/app/features/calendar/te-calendar/te-calendar.component.sass b/frontend/src/app/features/calendar/te-calendar/te-calendar.component.sass
index fb49f0e7adf..fee07b2af01 100644
--- a/frontend/src/app/features/calendar/te-calendar/te-calendar.component.sass
+++ b/frontend/src/app/features/calendar/te-calendar/te-calendar.component.sass
@@ -1,10 +1,11 @@
@import '../../app/spot/styles/sass/variables'
+@import '../../global_styles/openproject/variables'
op-time-entries-calendar
// The two media queries below make sure the "Log time" button does not overlap
// with the dates on mobile. Instead, it will be shown above the full calendar toolbar.
// The media queries are the normal mobile/tablet breakpoints.
- @media screen and (max-width: 679px)
+ @media screen and (max-width: $breakpoint-sm)
.fc-toolbar-chunk:empty
display: none
diff --git a/frontend/src/app/features/job-status/job-status-modal/job-status.modal.sass b/frontend/src/app/features/job-status/job-status-modal/job-status.modal.sass
index d03347dc6ce..a284b9aa786 100644
--- a/frontend/src/app/features/job-status/job-status-modal/job-status.modal.sass
+++ b/frontend/src/app/features/job-status/job-status-modal/job-status.modal.sass
@@ -1,9 +1,11 @@
+@import '../../global_styles/openproject/variables'
+
.job-status--modal
min-height: 350px
min-width: 450px
overflow-y: scroll
- @media screen and (max-width: 679px)
+ @media screen and (max-width: $breakpoint-sm)
min-width: 200px
.loading-indicator--location
@@ -21,4 +23,4 @@
justify-content: center
.job-status--modal-additional-errors
- margin-top: 2rem
\ No newline at end of file
+ margin-top: 2rem
diff --git a/frontend/src/app/features/reporting/reporting-page/styles/reporting.sass b/frontend/src/app/features/reporting/reporting-page/styles/reporting.sass
index 78f2ec720d1..c416fe0445f 100644
--- a/frontend/src/app/features/reporting/reporting-page/styles/reporting.sass
+++ b/frontend/src/app/features/reporting/reporting-page/styles/reporting.sass
@@ -1,4 +1,5 @@
@import "../../../../../global_styles/fonts/openproject_icon_definitions"
+@import "../../../../../global_styles/openproject/variables"
@import reporting_group_by
@import reporting_table
@import reporting_table_print
@@ -26,19 +27,19 @@
@include sort-icons
@include icon-mixin-sort-ascending
-.cost_types
+.cost_types
padding-bottom: 3px
-.cost_types a.active
+.cost_types a.active
color: #000
font-weight: bold
/* Details view*/
-.detail-report td
+.detail-report td
text-align: left
vertical-align: top
-#query_form fieldset.header_collapsible.collapsible
+#query_form fieldset.header_collapsible.collapsible
padding-bottom: 10px
@@ -64,55 +65,55 @@ div.button_form
width: 400px
// -------------------------- Filter --------------------------
-.filter
+.filter
-webkit-border-radius: 5px
-moz-border-radius: 5px
border-radius: 5px
-.inactive-filter
+.inactive-filter
background-color: #FCE29A !important
-.advanced-filters--filter-value
+.advanced-filters--filter-value
white-space: nowrap
.advanced-filters--filter-value2
margin-left: 0.5rem
-.filter_radio_option
+.filter_radio_option
padding-left: 5px
padding-right: 5px
-#add_filter_block
+#add_filter_block
margin-top: 6px
-#add_filter_select
+#add_filter_select
margin-bottom: 10px
-.advanced-filters--filter-value.-binary
+.advanced-filters--filter-value.-binary
display: flex
// -------------------------- Mobile --------------------------
-@media only screen and (max-width: 679px)
+@media only screen and (max-width: $breakpoint-sm)
.group-by--control
margin-top: 10px
#group-by--rows .group-by--caption,
- #group-by--columns .group-by--caption
+ #group-by--columns .group-by--caption
padding: 0 7px
-
- .group-by--selected-element
+
+ .group-by--selected-element
display: inline-block
padding-left: 7px
-
+
.group-by--selected-element:before,
- .group-by--selected-element:after
+ .group-by--selected-element:after
border-width: 18px 0px 18px 14px
margin-top: -18px
-
- .group-by--selected-element:first-of-type
+
+ .group-by--selected-element:first-of-type
margin: 0
-
- .group-by--selected-element:first-of-type:before
+
+ .group-by--selected-element:first-of-type:before
border: none
left: 0
diff --git a/frontend/src/app/features/work-packages/components/back-routing/back-button.component.sass b/frontend/src/app/features/work-packages/components/back-routing/back-button.component.sass
index a962294fb51..ef1c39bc0a0 100644
--- a/frontend/src/app/features/work-packages/components/back-routing/back-button.component.sass
+++ b/frontend/src/app/features/work-packages/components/back-routing/back-button.component.sass
@@ -1,3 +1,5 @@
+@import "../../global_styles/openproject/variables"
+
.op-back-button
padding: 0
line-height: 32px
@@ -10,5 +12,5 @@
line-height: 22px
&_mobile-limited-width
- @media only screen and (max-width: 679px)
+ @media only screen and (max-width: $breakpoint-sm)
width: 64px
diff --git a/frontend/src/app/features/work-packages/components/wp-breadcrumb/wp-breadcrumb.sass b/frontend/src/app/features/work-packages/components/wp-breadcrumb/wp-breadcrumb.sass
index 31db03844c6..0e401ce51ca 100644
--- a/frontend/src/app/features/work-packages/components/wp-breadcrumb/wp-breadcrumb.sass
+++ b/frontend/src/app/features/work-packages/components/wp-breadcrumb/wp-breadcrumb.sass
@@ -11,7 +11,7 @@
&--active-parent-select
width: 500px
- @media screen and (max-width: 1248px)
+ @media screen and (max-width: $breakpoint-xl)
margin-top: 0
ul.op-breadcrumb li wp-breadcrumb-parent
@@ -19,4 +19,3 @@
.ng-placeholder
@include text-shortener
-
diff --git a/frontend/src/app/features/work-packages/components/wp-card-view/styles/wp-card-view-horizontal.sass b/frontend/src/app/features/work-packages/components/wp-card-view/styles/wp-card-view-horizontal.sass
index 83c177cb366..400107c7a22 100644
--- a/frontend/src/app/features/work-packages/components/wp-card-view/styles/wp-card-view-horizontal.sass
+++ b/frontend/src/app/features/work-packages/components/wp-card-view/styles/wp-card-view-horizontal.sass
@@ -1,3 +1,5 @@
+@import "../../global_styles/openproject/variables"
+
.wp-cards-container.-horizontal
display: grid
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr))
@@ -5,7 +7,7 @@
grid-row-gap: 10px
margin-right: 5px
- @media only screen and (max-width: 679px)
+ @media only screen and (max-width: $breakpoint-sm)
&.-shrink
grid-template-columns: 1fr
grid-row-gap: 0
diff --git a/frontend/src/app/features/work-packages/components/wp-card-view/wp-single-card/wp-single-card.component.sass b/frontend/src/app/features/work-packages/components/wp-card-view/wp-single-card/wp-single-card.component.sass
index 0c99fc20164..a6a029318a3 100644
--- a/frontend/src/app/features/work-packages/components/wp-card-view/wp-single-card/wp-single-card.component.sass
+++ b/frontend/src/app/features/work-packages/components/wp-card-view/wp-single-card/wp-single-card.component.sass
@@ -122,7 +122,7 @@
grid-area: image
max-height: 350px
- @media screen and (max-width: 679px)
+ @media screen and (max-width: $breakpoint-sm)
max-height: 250px
&-dates
@@ -184,7 +184,7 @@
&--inline-cancel-button
color: var(--warn)
- @media only screen and (max-width: 679px)
+ @media only screen and (max-width: $breakpoint-sm)
&_shrink
border: none
box-shadow: none
diff --git a/frontend/src/app/features/work-packages/routing/partitioned-query-space-page/partitioned-query-space-page.component.sass b/frontend/src/app/features/work-packages/routing/partitioned-query-space-page/partitioned-query-space-page.component.sass
index 04f81ac00e4..8f80a17b544 100644
--- a/frontend/src/app/features/work-packages/routing/partitioned-query-space-page/partitioned-query-space-page.component.sass
+++ b/frontend/src/app/features/work-packages/routing/partitioned-query-space-page/partitioned-query-space-page.component.sass
@@ -46,7 +46,7 @@
.title-container_editable
margin-left: -7px
- @media only screen and (max-width: 679px)
+ @media only screen and (max-width: $breakpoint-sm)
.work-packages-partitioned-page--content-left,
.work-packages-partitioned-page--content-right
min-width: initial
diff --git a/frontend/src/app/features/work-packages/routing/wp-list-view/wp-list-view.component.sass b/frontend/src/app/features/work-packages/routing/wp-list-view/wp-list-view.component.sass
index 3046686aa08..c1503e59589 100644
--- a/frontend/src/app/features/work-packages/routing/wp-list-view/wp-list-view.component.sass
+++ b/frontend/src/app/features/work-packages/routing/wp-list-view/wp-list-view.component.sass
@@ -16,7 +16,7 @@
&.-with-resizer
padding-left: 10px
- @media screen and (max-width: 679px)
+ @media screen and (max-width: $breakpoint-sm)
// Ensure the WP cards span the complete width on mobile
// --> Move scrollbar out of visible area
min-width: calc(100vw + 10px)
@@ -30,7 +30,7 @@
&.-with-resizer
padding-left: 10px
- @media screen and (max-width: 679px)
+ @media screen and (max-width: $breakpoint-sm)
// Ensure the WP cards span the complete width on mobile
// --> Move scrollbar out of visible area
min-width: calc(100vw + 10px)
diff --git a/frontend/src/app/shared/components/datepicker/modal-single-date-picker/modal-single-date-picker.component.sass b/frontend/src/app/shared/components/datepicker/modal-single-date-picker/modal-single-date-picker.component.sass
index c835262de44..3444cc96197 100644
--- a/frontend/src/app/shared/components/datepicker/modal-single-date-picker/modal-single-date-picker.component.sass
+++ b/frontend/src/app/shared/components/datepicker/modal-single-date-picker/modal-single-date-picker.component.sass
@@ -1,3 +1,4 @@
-@media screen and (max-width: 679px)
+@import '../../global_styles/openproject/variables'
+@media screen and (max-width: $breakpoint-sm)
.spot-drop-modal--body
- height: auto !important
\ No newline at end of file
+ height: auto !important
diff --git a/frontend/src/app/shared/components/datepicker/styles/datepicker.modal.sass b/frontend/src/app/shared/components/datepicker/styles/datepicker.modal.sass
index 3e94f5e8e71..a87dcd706e2 100644
--- a/frontend/src/app/shared/components/datepicker/styles/datepicker.modal.sass
+++ b/frontend/src/app/shared/components/datepicker/styles/datepicker.modal.sass
@@ -1,4 +1,5 @@
@import '../../app/spot/styles/sass/variables'
+@import '../../global_styles/openproject/variables'
.op-datepicker-modal
display: flex
@@ -64,7 +65,7 @@
&.spot-container
margin-top: $spot-spacing-0_5
-@media screen and (max-width: 679px)
+@media screen and (max-width: $breakpoint-sm)
.op-datepicker-modal
// Use same width as spot-modal mobile
width: calc(100vw - 2rem)
diff --git a/frontend/src/app/shared/components/grids/grid/page/grid-page.component.sass b/frontend/src/app/shared/components/grids/grid/page/grid-page.component.sass
index 9dd58c36de6..c9a867a68b6 100644
--- a/frontend/src/app/shared/components/grids/grid/page/grid-page.component.sass
+++ b/frontend/src/app/shared/components/grids/grid/page/grid-page.component.sass
@@ -1,3 +1,5 @@
+@import "../../global_styles/openproject/variables"
+
.op-grid-page
&--title-container
margin-left: 20px
@@ -11,7 +13,7 @@
&--toolbar-items
padding-right: 20px
-@media only screen and (max-width: 679px)
+@media only screen and (max-width: $breakpoint-sm)
.op-grid-page--title-container
margin-left: 0
margin-bottom: 0
diff --git a/frontend/src/app/shared/components/modal/modal-banner/modal-banner.component.sass b/frontend/src/app/shared/components/modal/modal-banner/modal-banner.component.sass
index 6e0e7e906b7..37d36ed51f9 100644
--- a/frontend/src/app/shared/components/modal/modal-banner/modal-banner.component.sass
+++ b/frontend/src/app/shared/components/modal/modal-banner/modal-banner.component.sass
@@ -7,7 +7,7 @@
align-items: center
padding: $spot-spacing-0-75
- @media only screen and (max-width: 679px)
+ @media only screen and (max-width: $breakpoint-sm)
grid-template-columns: auto max-content
&:first-child
diff --git a/frontend/src/app/shared/components/op-non-working-days-list/op-non-working-days-list.component.sass b/frontend/src/app/shared/components/op-non-working-days-list/op-non-working-days-list.component.sass
index 2e7fd1773a6..d44146cffe3 100644
--- a/frontend/src/app/shared/components/op-non-working-days-list/op-non-working-days-list.component.sass
+++ b/frontend/src/app/shared/components/op-non-working-days-list/op-non-working-days-list.component.sass
@@ -1,9 +1,10 @@
@import '../../app/spot/styles/sass/variables'
+@import '../../global_styles/openproject/variables'
.op-non-working-days-list
.fc-list-event-graphic
display: none
-
+
&--delete-icon
opacity: 0
@@ -21,7 +22,7 @@
.fc-list-empty-cushion
margin: auto !important
-
+
.fc-list-day-cushion
a
cursor: default
@@ -31,12 +32,12 @@
.fc-list-event-title a
cursor: text
- .fc-toolbar h2
+ .fc-toolbar h2
display: inline
margin: $spot-spacing-0_25 $spot-spacing-0_5
padding-top: 1px
position: absolute
- @media screen and (max-width: 679px)
+ @media screen and (max-width: $breakpoint-sm)
.op-non-working-days-list--delete-icon
opacity: 1
diff --git a/frontend/src/global_styles/common/header/app-header.sass b/frontend/src/global_styles/common/header/app-header.sass
index 1656ec5d6c7..6aaa612c9df 100644
--- a/frontend/src/global_styles/common/header/app-header.sass
+++ b/frontend/src/global_styles/common/header/app-header.sass
@@ -14,7 +14,7 @@
width: 100vw
padding: 0 $spot-spacing-0_25
- @media screen and (max-width: 679px)
+ @media screen and (max-width: $breakpoint-sm)
grid-template-columns: minmax(0, auto) auto 1fr
position: fixed
top: 0
@@ -47,13 +47,13 @@
._header-scrolled &
- @media screen and (max-width: 679px)
+ @media screen and (max-width: $breakpoint-sm)
// Slide header in and out on scroll (see also: _base_mobile.sass)
margin-top: calc(0px - #{var(--header-height)})
transition: margin-top .4s
&_search-open
- @media screen and (max-width: 679px)
+ @media screen and (max-width: $breakpoint-sm)
display: flex
.op-app-header--start,
diff --git a/frontend/src/global_styles/common/header/app-menu.sass b/frontend/src/global_styles/common/header/app-menu.sass
index d8bc2c003d5..7a8e4865237 100644
--- a/frontend/src/global_styles/common/header/app-menu.sass
+++ b/frontend/src/global_styles/common/header/app-menu.sass
@@ -36,7 +36,7 @@
min-width: 0px
padding: 0 15px
- @include breakpoint(680px down)
+ @media screen and (max-width: $breakpoint-sm)
padding: 0 8px
.op-app-menu--item_dropdown-open &,
@@ -80,7 +80,7 @@
left: 0
right: auto
- @include breakpoint(680px down)
+ @media screen and (max-width: $breakpoint-sm)
position: fixed
top: var(--header-height)
left: 0
diff --git a/frontend/src/global_styles/common/header/app-search.sass b/frontend/src/global_styles/common/header/app-search.sass
index 012169e1e84..77423823baa 100644
--- a/frontend/src/global_styles/common/header/app-search.sass
+++ b/frontend/src/global_styles/common/header/app-search.sass
@@ -1,3 +1,3 @@
.op-app-search
- @media screen and (max-width: 679px)
+ @media screen and (max-width: $breakpoint-sm)
flex-grow: 0
diff --git a/frontend/src/global_styles/common/header/logo.sass b/frontend/src/global_styles/common/header/logo.sass
index f1b7c1cc8fc..87cf667327f 100644
--- a/frontend/src/global_styles/common/header/logo.sass
+++ b/frontend/src/global_styles/common/header/logo.sass
@@ -13,6 +13,5 @@
background-size: contain
background-repeat: no-repeat
- @include breakpoint(850px down)
+ @media screen and (max-width: 850px)
display: none
-
diff --git a/frontend/src/global_styles/content/_accounts_mobile.sass b/frontend/src/global_styles/content/_accounts_mobile.sass
index b7ff7b5d1ba..6a4fe46a04c 100644
--- a/frontend/src/global_styles/content/_accounts_mobile.sass
+++ b/frontend/src/global_styles/content/_accounts_mobile.sass
@@ -26,7 +26,7 @@
// See COPYRIGHT and LICENSE files for more details.
//++
-@include breakpoint(680px down)
+@media screen and (max-width: $breakpoint-sm)
#login-form,
#content .login-auth-providers,
#nav-login-content .login-auth-providers
diff --git a/frontend/src/global_styles/content/_advanced_filters.sass b/frontend/src/global_styles/content/_advanced_filters.sass
index 677b377a69f..afb0b2c8603 100644
--- a/frontend/src/global_styles/content/_advanced_filters.sass
+++ b/frontend/src/global_styles/content/_advanced_filters.sass
@@ -140,7 +140,7 @@ $advanced-filters--grid-gap: 10px
.work-packages-embedded-view--container .advanced-filters--container
margin: 0 0 1rem 0
-@include breakpoint(680px down)
+@media screen and (max-width: $breakpoint-sm)
.advanced-filters--filters
.advanced-filters--filter
grid-gap: 0 10px
diff --git a/frontend/src/global_styles/content/_datepicker.sass b/frontend/src/global_styles/content/_datepicker.sass
index 122883df6fc..0dd370b1972 100644
--- a/frontend/src/global_styles/content/_datepicker.sass
+++ b/frontend/src/global_styles/content/_datepicker.sass
@@ -26,6 +26,7 @@
// See COPYRIGHT and LICENSE files for more details.
//++
+@import '../../global_styles/openproject/variables'
$datepicker--selected-border-radius: 5px
@mixin disabled-day
@@ -60,7 +61,7 @@ $datepicker--selected-border-radius: 5px
svg:hover
fill: var(--primary-color) !important
-.flatpickr-prev-month, .flatpickr-next-month
+.flatpickr-prev-month, .flatpickr-next-month
svg
fill: $spot-color-basic-gray-1 !important
@@ -125,7 +126,7 @@ $datepicker--selected-border-radius: 5px
grid-template-columns: repeat(7, 1fr)
justify-items: center
- @media screen and (max-width: 679px)
+ @media screen and (max-width: $breakpoint-sm)
min-width: 267px
max-width: 267px
@@ -194,18 +195,18 @@ $datepicker--selected-border-radius: 5px
&.flatpickr-non-working-day
background: $spot-color-basic-gray-6
border-color: $spot-color-basic-gray-6
-
+
&.flatpickr-disabled
@include disabled-day
&.flatpickr-non-working-day
background: $spot-color-basic-gray-6
color: $spot-color-basic-gray-3
-
+
&.flatpickr-non-working-day_enabled
background: $spot-color-basic-gray-6
color: $spot-color-basic-gray-3
-
+
&.inRange
color: $spot-color-basic-gray-3
background: $spot-color-basic-gray-6
@@ -240,7 +241,7 @@ $datepicker--selected-border-radius: 5px
&.flatpickr-non-working-day
background: $spot-color-basic-gray-6 !important
color: $spot-color-basic-gray-3 !important
-
+
&.flatpickr-non-working-day_enabled
background: $spot-color-basic-gray-6 !important
color: $spot-color-basic-gray-1 !important
@@ -259,7 +260,7 @@ $datepicker--selected-border-radius: 5px
color: $spot-color-basic-gray-1 !important
background: $spot-color-indication-current-date !important
border-color: $spot-color-indication-current-date !important
-
+
&.today
background: $spot-color-indication-current-date !important
border-color: $spot-color-indication-current-date !important
@@ -275,4 +276,3 @@ $datepicker--selected-border-radius: 5px
.flatpickr-next-month, .flatpickr-prev-month
position: static !important
-
diff --git a/frontend/src/global_styles/content/_enterprise.sass b/frontend/src/global_styles/content/_enterprise.sass
index 7d2a55fea7a..b7af5f1caee 100644
--- a/frontend/src/global_styles/content/_enterprise.sass
+++ b/frontend/src/global_styles/content/_enterprise.sass
@@ -66,7 +66,7 @@
display: block
visibility: hidden
-@media screen and (max-width: 679px)
+@media screen and (max-width: $breakpoint-sm)
.upsale-notification
max-width: none
diff --git a/frontend/src/global_styles/content/_forms.sass b/frontend/src/global_styles/content/_forms.sass
index 1c227d07bc2..893e5c54dca 100644
--- a/frontend/src/global_styles/content/_forms.sass
+++ b/frontend/src/global_styles/content/_forms.sass
@@ -443,7 +443,7 @@ fieldset.form--fieldset
&.-horizontal
flex-direction: column
- @include breakpoint(1080px up)
+ @include breakpoint(lg)
flex-direction: row
flex-wrap: wrap
@@ -926,10 +926,10 @@ input[readonly].-clickable
margin: 0
@include grid-layout(3)
- @include breakpoint(large)
+ @media screen and (max-width: $breakpoint-lg)
@include grid-layout(4)
- @include breakpoint(xlarge)
+ @media screen and (max-width: $breakpoint-xl)
@include grid-layout(6)
li, div
diff --git a/frontend/src/global_styles/content/_forms_mobile.sass b/frontend/src/global_styles/content/_forms_mobile.sass
index 232c007aebc..2f0903d3f85 100644
--- a/frontend/src/global_styles/content/_forms_mobile.sass
+++ b/frontend/src/global_styles/content/_forms_mobile.sass
@@ -26,7 +26,7 @@
// See COPYRIGHT and LICENSE files for more details.
//++
-@include breakpoint(680px down)
+@media screen and (max-width: $breakpoint-sm)
form
.grid-block
display: block
diff --git a/frontend/src/global_styles/content/_grid_mobile.sass b/frontend/src/global_styles/content/_grid_mobile.sass
index 296627a89dd..c2059b1c13d 100644
--- a/frontend/src/global_styles/content/_grid_mobile.sass
+++ b/frontend/src/global_styles/content/_grid_mobile.sass
@@ -1,4 +1,4 @@
-@include breakpoint(680px down)
+@media screen and (max-width: $breakpoint-sm)
.grid--container
grid-template-columns: auto !important
grid-template-rows: auto !important
diff --git a/frontend/src/global_styles/content/_members.sass b/frontend/src/global_styles/content/_members.sass
index 3c3512fa805..034522b3c75 100644
--- a/frontend/src/global_styles/content/_members.sass
+++ b/frontend/src/global_styles/content/_members.sass
@@ -50,7 +50,7 @@
// Necessary so that button and select box have the same height
line-height: 0.6rem
-@include breakpoint(680px down)
+@media screen and (max-width: $breakpoint-sm)
#members_add_form .-flex
align-items: flex-start
@@ -65,7 +65,7 @@
.form--field
margin-bottom: 1rem
-@media screen and (max-width: 87rem) and (min-width: 681px)
+@media screen and (max-width: $breakpoint-xl) and (min-width: $breakpoint-sm)
#members_add_form .-flex.-with-button
.form--field
max-width: 60%
diff --git a/frontend/src/global_styles/content/_my_page.sass b/frontend/src/global_styles/content/_my_page.sass
index 22c6c8f9cd6..c1bd0ef2e70 100644
--- a/frontend/src/global_styles/content/_my_page.sass
+++ b/frontend/src/global_styles/content/_my_page.sass
@@ -42,7 +42,7 @@
&:last-child
margin-bottom: 10px
-@include breakpoint(680px down)
+@media screen and (max-width: $breakpoint-sm)
.my-page--container .grid-block.widget-boxes
flex-wrap: wrap
diff --git a/frontend/src/global_styles/content/_news.sass b/frontend/src/global_styles/content/_news.sass
index 084e7401c8b..5e2ae7d77e6 100644
--- a/frontend/src/global_styles/content/_news.sass
+++ b/frontend/src/global_styles/content/_news.sass
@@ -48,6 +48,6 @@
.op-avatar
margin-right: 10px
-@media screen and (max-width: 679px)
+@media screen and (max-width: $breakpoint-sm)
.news-author
padding-left: 0
diff --git a/frontend/src/global_styles/content/_principal.sass b/frontend/src/global_styles/content/_principal.sass
index 5b5c7b2fb88..68833466ef4 100644
--- a/frontend/src/global_styles/content/_principal.sass
+++ b/frontend/src/global_styles/content/_principal.sass
@@ -22,7 +22,7 @@
margin-bottom: 2px
&_hide-name-on-mobile &
- @media screen and (max-width: 680px)
+ @media screen and (max-width: $breakpoint-sm)
&--name
display: none
diff --git a/frontend/src/global_styles/content/_project_overview.sass b/frontend/src/global_styles/content/_project_overview.sass
index 7730a77cd88..b8378b924ed 100644
--- a/frontend/src/global_styles/content/_project_overview.sass
+++ b/frontend/src/global_styles/content/_project_overview.sass
@@ -55,7 +55,7 @@
&:last-child
margin-bottom: 10px
-@include breakpoint(680px down)
+@media screen and (max-width: $breakpoint-sm)
#visible-grid .grid-block,
#invisible-grid .grid-block
flex-wrap: wrap
diff --git a/frontend/src/global_styles/content/_simple_filters.sass b/frontend/src/global_styles/content/_simple_filters.sass
index a7a4d5ecbe2..ab64c43a1e7 100644
--- a/frontend/src/global_styles/content/_simple_filters.sass
+++ b/frontend/src/global_styles/content/_simple_filters.sass
@@ -95,7 +95,7 @@ $filters--border-color: var(--gray) !default
@include text-shortener
margin: auto 0
-@include breakpoint(680px down)
+@media screen and (max-width: $breakpoint-sm)
.simple-filters--filter:not(.-with-radio-buttons)
.simple-filters--filter-value
grid-column: 1 / -1
diff --git a/frontend/src/global_styles/content/_table.sass b/frontend/src/global_styles/content/_table.sass
index 2bf4a3862e9..188f4751542 100644
--- a/frontend/src/global_styles/content/_table.sass
+++ b/frontend/src/global_styles/content/_table.sass
@@ -43,7 +43,7 @@ $toolbar-height--mobile: 100px
// Calculate table size by subtracting the space above
max-height: calc(100vh - #{var(--header-height)} - #{$toolbar-height})
- @media screen and (max-width: 679px)
+ @media screen and (max-width: $breakpoint-sm)
max-height: calc(100vh - #{var(--header-height)} - #{$toolbar-height--mobile})
.generic-table--results-container
diff --git a/frontend/src/global_styles/content/_toast_mobile.sass b/frontend/src/global_styles/content/_toast_mobile.sass
index f715eb827eb..deccf25d5d9 100644
--- a/frontend/src/global_styles/content/_toast_mobile.sass
+++ b/frontend/src/global_styles/content/_toast_mobile.sass
@@ -26,7 +26,7 @@
// See COPYRIGHT and LICENSE files for more details.
//++
-@include breakpoint(680px down)
+@media screen and (max-width: $breakpoint-sm)
.op-toast--wrapper,
.flash,
#errorExplanation
diff --git a/frontend/src/global_styles/content/_version.sass b/frontend/src/global_styles/content/_version.sass
index 8781745f85b..d51f1d08cd9 100644
--- a/frontend/src/global_styles/content/_version.sass
+++ b/frontend/src/global_styles/content/_version.sass
@@ -33,6 +33,6 @@
grid-template-rows: repeat(auto-fit, minmax(250px, 1fr))
- @media only screen and (max-width: 679px)
+ @media only screen and (max-width: $breakpoint-sm)
.-grid
grid-template-columns: repeat(auto-fit, minmax(100%, 1fr))
diff --git a/frontend/src/global_styles/content/_widget_box.sass b/frontend/src/global_styles/content/_widget_box.sass
index 6ddb62dddc9..1a244cc28ff 100644
--- a/frontend/src/global_styles/content/_widget_box.sass
+++ b/frontend/src/global_styles/content/_widget_box.sass
@@ -178,7 +178,7 @@ $widget-box--enumeration-width: 20px
font-style: italic
margin-bottom: 0.5rem
-@include breakpoint(680px down)
+@media screen and (max-width: $breakpoint-sm)
.widget-boxes
&.-flex
.widget-box
diff --git a/frontend/src/global_styles/content/menus/_menu_blocks.sass b/frontend/src/global_styles/content/menus/_menu_blocks.sass
index dd5a238126c..d7332114c84 100644
--- a/frontend/src/global_styles/content/menus/_menu_blocks.sass
+++ b/frontend/src/global_styles/content/menus/_menu_blocks.sass
@@ -25,7 +25,7 @@
&:before
padding-left: 10px
-@include breakpoint(680px down)
+@media screen and (max-width: $breakpoint-sm)
.menu-blocks--container
grid-template: unset
grid-gap: 15px
diff --git a/frontend/src/global_styles/content/modules/_bim.sass b/frontend/src/global_styles/content/modules/_bim.sass
index a61cc3f3d19..0bb3407240a 100644
--- a/frontend/src/global_styles/content/modules/_bim.sass
+++ b/frontend/src/global_styles/content/modules/_bim.sass
@@ -22,6 +22,6 @@ table.attributes-table
padding: 5px
text-align: center
-@media only screen and (max-width: 679px)
+@media only screen and (max-width: $breakpoint-sm)
.router--bim .work-packages--details
- min-width: 0
\ No newline at end of file
+ min-width: 0
diff --git a/frontend/src/global_styles/content/modules/_team_planner.sass b/frontend/src/global_styles/content/modules/_team_planner.sass
index 05cd04af6e6..ae597d8fbac 100644
--- a/frontend/src/global_styles/content/modules/_team_planner.sass
+++ b/frontend/src/global_styles/content/modules/_team_planner.sass
@@ -76,7 +76,7 @@ $view-select-dropdown-width: 8rem
svg
height: 80px
- @media screen and (max-width: 679px)
+ @media screen and (max-width: $breakpoint-sm)
.fc-header-toolbar
padding-left: 0
.fc-today-button + .fc-button-group
diff --git a/frontend/src/global_styles/content/work_packages/tabs/_activities.sass b/frontend/src/global_styles/content/work_packages/tabs/_activities.sass
index 06a59baf9f5..052c6db16f3 100644
--- a/frontend/src/global_styles/content/work_packages/tabs/_activities.sass
+++ b/frontend/src/global_styles/content/work_packages/tabs/_activities.sass
@@ -105,14 +105,6 @@ h4.comment
resize: none
margin-bottom: 0
- .avatar
- float: left
- margin: -2px 10px 0 0
-
- .avatar-mini
- float: left
- margin: -3px 7px 0 0
-
.comments-icons
a:hover
text-decoration: none
diff --git a/frontend/src/global_styles/layout/_base_mobile.sass b/frontend/src/global_styles/layout/_base_mobile.sass
index 3aeadc90861..f8f0390034c 100644
--- a/frontend/src/global_styles/layout/_base_mobile.sass
+++ b/frontend/src/global_styles/layout/_base_mobile.sass
@@ -26,7 +26,7 @@
// See COPYRIGHT and LICENSE files for more details.
//++
-@include breakpoint(680px down)
+@media screen and (max-width: $breakpoint-sm)
body, html
position: relative
-webkit-overflow-scrolling: touch
@@ -76,6 +76,6 @@
h2
font-size: 1.4rem
-@include breakpoint(680px up)
+@include breakpoint(sm)
.hidden-for-desktop
display: none !important
diff --git a/frontend/src/global_styles/layout/_drop_down_mobile.sass b/frontend/src/global_styles/layout/_drop_down_mobile.sass
index 4707dd49fd7..7ab47f5b374 100644
--- a/frontend/src/global_styles/layout/_drop_down_mobile.sass
+++ b/frontend/src/global_styles/layout/_drop_down_mobile.sass
@@ -30,6 +30,6 @@
// https://github.com/plapier/jquery-dropdown
// (dual MIT/GPL-Licensed)
-@include breakpoint(680px down)
+@media screen and (max-width: $breakpoint-sm)
.dropdown .dropdown-menu
min-width: 0
diff --git a/frontend/src/global_styles/layout/_grid.sass b/frontend/src/global_styles/layout/_grid.sass
index dbb0131d9fc..444146c60c2 100644
--- a/frontend/src/global_styles/layout/_grid.sass
+++ b/frontend/src/global_styles/layout/_grid.sass
@@ -67,10 +67,10 @@ $block-grid-max-size: 6 !default
max-width: $pct
@else if ($size == shrink)
- flex: 0 0 auto
+ flex: 0 0 auto
@else if ($size == expand)
- flex: 1 1 auto
+ flex: 1 1 auto
/*
@@ -222,12 +222,6 @@ $block-grid-max-size: 6 !default
// Change the direction children flow
&.vertical
@include grid-orient(vertical)
- @each $size in $breakpoint-classes
- @include breakpoint($size)
- &.#{$size}-vertical
- @include grid-orient(vertical)
- &.#{$size}-horizontal
- @include grid-orient(horizontal)
// Align the children of a grid block
&.align-right
@@ -303,31 +297,24 @@ $block-grid-max-size: 6 !default
.order-#{$i}
@include grid-order($i)
+// 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 xlarge) !default
+
+// Since the above breakpoints are coming from Foundation we hve to map it to Primer
+$breakpoint-map: (small: sm, medium: md, large: lg, xlarge: xl)
+
@each $size in $breakpoint-classes
@for $i from 1 through $total-columns
- @include breakpoint($size)
+ $primer_breakpoint: map-get($breakpoint-map, $size)
+ @include breakpoint($primer_breakpoint)
// Block sizing
.#{$size}-#{$i}
@include grid-size($i)
- // Source ordering
- .#{$size}-order-#{$i}
- @include grid-order($i)
-
- // Offsets
- .#{$size}-offset-#{$i}
- @include grid-offset($i)
-
- // Parent sizing (block grids)
- .#{$size}-up-#{$i}
- @include grid-layout($i)
-
.grid-content .modal .grid-block
flex-wrap: nowrap
-
-
// ----------------------------------------------------------------------------------------------------------
// Cancel Foundation overflow defaults (overflow: auto, overflow-y: auto)
diff --git a/frontend/src/global_styles/layout/_main_menu_mobile.sass b/frontend/src/global_styles/layout/_main_menu_mobile.sass
index 0aee0143b1a..d368da41689 100644
--- a/frontend/src/global_styles/layout/_main_menu_mobile.sass
+++ b/frontend/src/global_styles/layout/_main_menu_mobile.sass
@@ -26,9 +26,10 @@
// See COPYRIGHT and LICENSE files for more details.
//++
-@include breakpoint(680px down)
+@media screen and (max-width: $breakpoint-sm)
.main-menu
@include spot-z-index("main-menu")
+ width: var(--breakpoint-sm)
position: fixed
border-bottom: 1px solid var(--main-menu-border-color)
border: none
diff --git a/frontend/src/global_styles/layout/_toolbar.sass b/frontend/src/global_styles/layout/_toolbar.sass
index 85b8b67f113..8da773179a4 100644
--- a/frontend/src/global_styles/layout/_toolbar.sass
+++ b/frontend/src/global_styles/layout/_toolbar.sass
@@ -224,7 +224,7 @@ $nm-color-success-background: #d8fdd1
color: var(--toolbar-title-color)
line-height: 34px
height: 34px
- @include breakpoint(medium down)
+ @media screen and (max-width: $breakpoint-md)
font-size: var(--h2-font-size)
&:focus, &:hover
diff --git a/frontend/src/global_styles/layout/_toolbar_mobile.sass b/frontend/src/global_styles/layout/_toolbar_mobile.sass
index 3a514982152..1bf625273e0 100644
--- a/frontend/src/global_styles/layout/_toolbar_mobile.sass
+++ b/frontend/src/global_styles/layout/_toolbar_mobile.sass
@@ -26,7 +26,7 @@
// See COPYRIGHT and LICENSE files for more details.
//++
-@include breakpoint (680px down)
+@media screen and (max-width: $breakpoint-sm)
#content
.toolbar-container
margin-top: 5px
diff --git a/frontend/src/global_styles/layout/_zen_mode.sass b/frontend/src/global_styles/layout/_zen_mode.sass
index d72b3b2670a..aebb385bb16 100644
--- a/frontend/src/global_styles/layout/_zen_mode.sass
+++ b/frontend/src/global_styles/layout/_zen_mode.sass
@@ -10,12 +10,12 @@ body.zen-mode
top: 0px
height: 100%
grid-template-columns: auto
-
+
&.controller-wiki #content
margin: 0 auto
- @media only screen and (max-width: 1280px)
+ @media only screen and (max-width: $breakpoint-xl)
max-width: 90vw
- @media only screen and (min-width: 1281px)
+ @include breakpoint(xl)
max-width: 60vw
diff --git a/frontend/src/global_styles/layout/work_packages/_details_view.sass b/frontend/src/global_styles/layout/work_packages/_details_view.sass
index 78bea9419a2..2ff8cc21c87 100644
--- a/frontend/src/global_styles/layout/work_packages/_details_view.sass
+++ b/frontend/src/global_styles/layout/work_packages/_details_view.sass
@@ -48,7 +48,7 @@ body.router--work-packages-partitioned-split-view-new
// Min-width is actually 530px but the border already needs 2px
min-width: 528px
- @media only screen and (max-width: 1280px)
+ @media only screen and (max-width: $breakpoint-xl)
@at-root
.detailsViewMenuItem
display: none
diff --git a/frontend/src/global_styles/layout/work_packages/_full_view.sass b/frontend/src/global_styles/layout/work_packages/_full_view.sass
index 049e707ded4..0a026c88f28 100644
--- a/frontend/src/global_styles/layout/work_packages/_full_view.sass
+++ b/frontend/src/global_styles/layout/work_packages/_full_view.sass
@@ -139,13 +139,13 @@
&.inline-edit
width: 75%
-@media only screen and (max-width: 1280px)
+@media only screen and (max-width: $breakpoint-xl)
.work-packages--details
@at-root
.detailsViewMenuItem
display: block
-@media only screen and (max-width: 78rem)
+@media only screen and (max-width: $breakpoint-lg)
.work-packages--show-view
// Important for Safari
height: initial
@@ -153,7 +153,7 @@
overflow: visible
flex-basis: initial !important
-@media only screen and (max-width: 679px)
+@media only screen and (max-width: $breakpoint-sm)
#toolbar
#toolbar-items
margin-left: 0
@@ -171,9 +171,9 @@
.work-packages--show-view
.wp-show--header-container
- @media only screen and (max-width: 679px)
+ @media only screen and (max-width: $breakpoint-sm)
width: 100%
- @media only screen and (min-width: 679px)
+ @include breakpoint(sm)
flex: 1 1 auto
.subject-header
diff --git a/frontend/src/global_styles/layout/work_packages/_mobile.sass b/frontend/src/global_styles/layout/work_packages/_mobile.sass
index 8b70e8dc5b1..a5b40113b62 100644
--- a/frontend/src/global_styles/layout/work_packages/_mobile.sass
+++ b/frontend/src/global_styles/layout/work_packages/_mobile.sass
@@ -25,7 +25,7 @@
//
// See COPYRIGHT and LICENSE files for more details.
//++
-@media screen and (max-width: 1248px), print
+@media screen and (max-width: $breakpoint-xl), print
.router--work-packages-base
// ------------- FULL SCREEN -------------------
@@ -70,7 +70,7 @@
.work-packages-full-view--resizer
display: none
-@include breakpoint(1248px down)
+@media screen and (max-width: $breakpoint-xl)
.router--work-packages-base
// --------------- ALL WP VIEWS ---------------
.toolbar-container
@@ -103,7 +103,7 @@
font-size: 1rem
-@include breakpoint(680px down)
+@media screen and (max-width: $breakpoint-sm)
.router--work-packages-full-view
#content
position: relative
diff --git a/frontend/src/global_styles/openproject/_functions.sass b/frontend/src/global_styles/openproject/_functions.sass
index 21c96d3a42c..cf2ac2dfffe 100644
--- a/frontend/src/global_styles/openproject/_functions.sass
+++ b/frontend/src/global_styles/openproject/_functions.sass
@@ -26,8 +26,6 @@
// See COPYRIGHT and LICENSE files for more details.
//++
-@import "../vendor/foundation-apps/scss/helpers/functions"
-
@function rem-concat-list($list-of-pixels)
$result: ''
@each $pixel-val in $list-of-pixels
diff --git a/frontend/src/global_styles/openproject/_homescreen.sass b/frontend/src/global_styles/openproject/_homescreen.sass
index 87e711929be..46b8d0394e8 100644
--- a/frontend/src/global_styles/openproject/_homescreen.sass
+++ b/frontend/src/global_styles/openproject/_homescreen.sass
@@ -27,6 +27,7 @@
//++
@import mixins
+@import 'variables'
.controller-homescreen #content-wrapper
.widget-box
@@ -71,7 +72,7 @@
color: var(--content-link-color)
-@include breakpoint(680px down)
+@media screen and (max-width: $breakpoint-sm)
.homescreen--links
padding: 20px
flex-wrap: wrap
diff --git a/frontend/src/global_styles/openproject/_settings.scss b/frontend/src/global_styles/openproject/_settings.scss
deleted file mode 100644
index 5b28d7c6fb5..00000000000
--- a/frontend/src/global_styles/openproject/_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 "../vendor/foundation-apps/scss/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: false,
- action-sheet: false,
- block-list: false,
- button: false,
- button-group: false,
- card: true,
- coloring: false,
- extras: false,
- forms: false,
- grid: true,
- iconic: false,
- label: true,
- badge: false,
- list: false,
- menu-bar: false,
- modal: true,
- motion: false,
- notification: true,
- off-canvas: false,
- panel: false,
- popup: false,
- switch: false,
- tabs: false,
- title-bar: false,
- 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;
-
-// 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: (
- tiny: rem-calc(0),
- small: rem-calc(480),
- medium: rem-calc(640),
- large: rem-calc(1200),
- xlarge: rem-calc(1440),
- xxlarge: rem-calc(1920),
- xxxlarge: rem-calc(2048),
-);
-
-// 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: (tiny small medium large xlarge xxlarge xxxlarge);
-
-// 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.375rem 0.5rem;
-// $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: 2px;
-// $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: is-light($accordion-title-background);
-// $accordion-title-color-active: is-light($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: is-light($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: is-light($card-background);
-$card-border: 1px solid;
-$card-radius: 0;
-$card-shadow: none;
-$card-padding: 10px;
-$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.375rem;
-
-// 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: #fff;
-$select-background-hover: smartscale($select-background, 0%);
-// $select-arrow: true;
-// $select-arrow-color: $select-color;
-
-// Labels
-// $form-label-fontsize: 0.9rem;
-// $form-label-margin: 0rem;
-// $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: 1em;
-$label-padding: 10px;
-$label-radius: 10px;
-$label-background: var(--gray);
-$label-color: var(--gray-dark);
-
-// $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: is-light($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: is-light($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: is-light($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/openproject/_variables.sass b/frontend/src/global_styles/openproject/_variables.sass
index 7d10085ce16..70fa820e693 100644
--- a/frontend/src/global_styles/openproject/_variables.sass
+++ b/frontend/src/global_styles/openproject/_variables.sass
@@ -6,3 +6,10 @@ $text-input-selectors: 'input[type="text"], input[type="password"], input[type="
// A global used variable for all labels
$form-label-fontsize: 0.9rem !default
+
+// These breakpoint widths ( -1) were taken from Primer
+// The substraction was needed since they have a "min-width" approach for their breakpoints and we have a "max-width"
+$breakpoint-sm: 543px
+$breakpoint-md: 767px
+$breakpoint-lg: 1011px
+$breakpoint-xl: 1279px
diff --git a/frontend/src/global_styles/vendor/foundation-apps/LICENSE b/frontend/src/global_styles/vendor/foundation-apps/LICENSE
deleted file mode 100644
index 3b15ebc232d..00000000000
--- a/frontend/src/global_styles/vendor/foundation-apps/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-Copyright (c) 2014 ZURB, inc.
-
-MIT License
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/frontend/src/global_styles/vendor/foundation-apps/scss/foundation.scss b/frontend/src/global_styles/vendor/foundation-apps/scss/foundation.scss
deleted file mode 100755
index 66060035992..00000000000
--- a/frontend/src/global_styles/vendor/foundation-apps/scss/foundation.scss
+++ /dev/null
@@ -1,14 +0,0 @@
-// Foundation for Apps
-// by ZURB
-// foundation.zurb.com
-// Licensed under MIT Open Source
-
-$foundation-version: '1.1.0';
-
-// Make sure the charset is set appropriately
-@charset "UTF-8";
-
-
-// Helpers
-@import "helpers/functions",
-"helpers/breakpoints";
diff --git a/frontend/src/global_styles/vendor/foundation-apps/scss/helpers/_breakpoints.scss b/frontend/src/global_styles/vendor/foundation-apps/scss/helpers/_breakpoints.scss
deleted file mode 100644
index cf92469f42d..00000000000
--- a/frontend/src/global_styles/vendor/foundation-apps/scss/helpers/_breakpoints.scss
+++ /dev/null
@@ -1,156 +0,0 @@
-// Foundation for Apps
-//
-// BREAKPOINTS
-// -----------
-// Foundation for Apps has three core breakpoints: small (> 0), medium (>= 640), and large (>= 1024).
-// There are two additional breakpoints, xlarge, and xxlarge, which (by default) do not output as sizing classes.
-// Access named breakpoints using the mixin breakpoint($size), where $size is a breakpoint value.
-// You can also pass an em, rem, or pixel value into this mixin to generate an em-based media query.
-// Create new named breakpoints using the $breakpoints map. Change which named breakpoints get their own classes by modifying the $breakpoint-classes map.
-// NOTE: If you change the $breakpoints map, know that all values must be ordered by width, smallest width first. So 0 is always your first value.
-
-// 1. Variables
-// - - - - - - - - - - - - - - -
-
-/// @Foundation.settings
-// Breakpoints
-// These are our named breakpoints. You can use them in our breakpoint function like this: @include breakpoint(medium) { // Medium and larger styles }
-@use "sass:math";
-
-$breakpoints: (
- small: rem-calc(0),
- medium: rem-calc(640),
- large: rem-calc(1200),
- xlarge: rem-calc(1440),
- xxlarge: rem-calc(1920),
-) !default;
-
-// 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) !default;
-///
-
-// 2. Mixins
-// - - - - - - - - - - - - - - -
-
-/// Wraps a media query around the content you put inside the mixin. This mixin accepts a number of values:
-/// - If a string is passed, the mixin will look for it in the $breakpoints map, and use a media query there.
-/// - If a pixel value is passed, it will be converted to an em value using $rem-base.
-/// - If a rem value is passed, the unit will be changed to em.
-/// - If an em value is passed, the value will be used as-is.
-///
-/// @param {mixed} $val - Breakpoint name or px/em/rem value to process.
-///
-/// @output If the breakpoint is "0px and larger", outputs the content. Otherwise, outputs the content wrapped in a media query.
-@mixin breakpoint($val: small) {
- // Size or keyword
- $bp: nth($val, 1);
- // Value for max-width media queries
- $bpMax: 0;
- // Direction of media query (up, down, or only)
- $dir: if(length($val) > 1, nth($val, 2), up);
- // Eventual output
- $str: 'only screen';
- // Is it a named media query?
- $named: false;
-
- // Orientation media queries have a unique syntax
- @if $bp == 'landscape' or $bp == 'portrait' {
- $str: $str + ' and (orientation: #{$bp})';
- }
-
- @else {
- // Try to pull a named breakpoint out of the $breakpoints map
- @if type-of($bp) == 'string' {
- @if map-has-key($breakpoints, $bp) {
- @if $dir == 'only' {
- $next-bp: map-next($breakpoints, $bp);
- @if $next-bp == null {
- $bpMax: null;
- }
- @else {
- $bpMax: $next-bp - math.div(1, 16);
- }
- }
- $bp: map-get($breakpoints, $bp);
- $named: true;
- }
- @else {
- $bp: 0;
- }
- }
-
- // Pixel and unitless values are converted to rems
- @if unit($bp) == 'px' or unit($bp) == '' {
- $bp: rem-calc($bp);
- }
- // Finally, the rem value is turned into an em value
- $bp: strip-unit($bp) * 1em;
-
- // Skip media query creation if the input is "0 up" or "0 down"
- @if $bp > 0 or $dir == 'only' {
- // And lo, a media query was born
- @if $dir == 'only' {
- @if $named == true {
- $str: $str + ' and (min-width: #{$bp})';
- @if $bpMax != null {
- $str: $str + ' and (max-width: #{$bpMax})';
- }
- }
- @else {
- @debug 'ERROR: Only named media queries can have an "only" range.';
- }
- }
- @else if $dir == 'down' {
- $max: $bp - math.div(1, 16);
- $str: $str + ' and (max-width: #{$max})';
- }
- @else {
- $str: $str + ' and (min-width: #{$bp})';
- }
- }
- }
-
- // Output
- @if $bp == 0em and $dir != 'only' {
- @content;
- }
- @else {
- @media #{$str} {
- @content;
- }
- }
-}
-
-/// Prefixes selector $class with breakpoint keywords, allowing you to create a batch of breakpoint classes with one chunk of code. If you want to skip a breakpoint (like small, because mobile first and all that), add values to the $omit parameter.
-///
-/// @param {string} $class - Class to prefix with the breakpoint name and a hyphen.
-/// @param {list} $omit - Named breakpoints to skip. No class will be added with breakpoints in this list.
-@mixin each-breakpoint($class, $omit: ()) {
- // Iterate through breakpoint classes
- @each $size in $breakpoint-classes {
- // Only do something if the breakpoint is not in $omit
- @if index($omit, $size) == null {
- $val: map-get($breakpoints, $size);
- // Prefix $class with $size and a hyphen
- .#{$size + '-' + $class} {
- @include breakpoint($size) {
- @content;
- }
- }
- }
- }
-}
-
-// 3. CSS Output
-// - - - - - - - - - - - - - - -
-
-// Meta styles are included in all builds, as they are a dependency of the Javascript.
-// Used to provide media query values for javascript components.
-// Forward slash placed around everything to convince PhantomJS to read the value.
-
-meta.foundation-version {
- font-family: "#{$foundation-version}";
-}
-meta.foundation-mq {
- font-family: "#{map-serialize($breakpoints)}";
-}
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.scss
deleted file mode 100755
index bc152d74e6d..00000000000
--- a/frontend/src/global_styles/vendor/foundation-apps/scss/helpers/_functions.scss
+++ /dev/null
@@ -1,275 +0,0 @@
-// Foundation for Apps ALPHA
-// by ZURB
-// foundation.zurb.com
-// Licensed under MIT Open Source
-
-@use "sass:math";
-
-$include-css: () !default;
-$modules: () !default;
-$rem-base: 16px !default;
-
-/// Checks if a module is in use.
-@function using($name) {
- // Import from global scope
- $include-css: $include-css !global;
- $module-key: map-get($include-css, $name);
-
- @if $module-key == true or $module-key == null {
- @return true;
- }
- @else {
- @return false;
- }
-}
-
-/// Checks if a module's CSS has already been exported.
-@function imported($name) {
- // Import from global scope
- $modules: $modules !global;
- // Check if the module is already on the imported list
- @if type-of(index($modules, $name)) == 'number' {
- @return true;
- }
- @else {
- @return false;
- }
-}
-
-/// Outputs the chunk of content passed if component $name hasn't yet been output.
-/// This prevents code duplication by keeping track of which components have already been output.
-///
-/// @param {string} $name - Name of component to output
-///
-/// @output The content passed, if the component has not yet been exported.
-@mixin exports($name) {
- // Check if the module has already been imported
- @if not(imported($name)) {
- // Check if the module should be used
- @if using($name) {
- $modules: append($modules, $name) !global;
- @content;
- }
- }
-}
-
-/// Map Serialize
-/// Converts a Sass map to a URL-encoded string, like this: `key1=value1&key2=value2`. We use this function to encode the media queries in the `$breakpoints` variable, so it can be transferred to our JavaScript for use there.
-///
-/// @param {map} $map - Map to convert.
-///
-/// @return A string with a map converted to a string.
-@function map-serialize($map) {
- $str: '';
- @each $key, $value in $map {
- $str: $str + $key + '=' + $value + '&';
- }
- $str: str-slice($str, 1, -2);
-
- @return $str;
-}
-
-/// Map Next
-/// Find the next key in a map.
-///
-/// @param {map} $map - Map to traverse.
-/// @param {mixed} $key - Key to use as a starting point.
-///
-/// @return The value for the key after `$key` if `$key` was found. If `$key` was not found, or `$key` was the last value in the map, returns null.
-@function map-next($map, $key) {
- // Store the values of the map as a list, so we can access them with nth
- $values: map-values($map);
-
- // Ghetto for loop
- $i: 1;
- $found: false;
- @each $val in map-keys($map) {
- @if $found == false {
- @if ($key == $val) {
- $found: true;
- }
- $i: $i + 1;
- }
- }
-
- // If the key doesn't exist, or it's the last key in the map, return null
- @if $i > length($map) {
- @return null;
- }
- // Otherwise return the value
- @else {
- @return nth($values, $i);
- }
-}
-
-
-/// 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`.
-///
-/// @param $val - Value to check.
-///
-/// @return True if `$val` is not 0, null, or none.
-@function hasvalue($val) {
- @if $val == null or $val == none {
- @return false;
- }
- @if type-of($val) == 'number' and strip-unit($val) == 0 {
- @return false;
- }
- @return true;
-}
-
-
-/// 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.
-///
-/// @param {list} $val - Border value to find a value in.
-/// @param {keyword} $elem - Border component to extract.
-///
-/// @param If the value exists, returns the value. If the value is not in the border definition, the function will return a 0px width, solid style, or black border.
- @function get-border-value($val, $elem) {
- // Find the width, style, or color and return it
- @each $v in $val {
- $type: type-of($v);
- @if $elem == width and $type == 'number' {
- @return $v;
- }
- @if $elem == style and $type == 'string' {
- @return $v;
- }
- @if $elem == color and $type == 'color' {
- @return $v;
- }
- }
-
- // Defaults
- $defaults: (
- width: 0,
- style: solid,
- color: black,
- );
- @return map-get($defaults, $elem);
- }
-
-/// Get Shadow Value
-/// Given shadow value $val, find a specific element of the shadow, which is $elem. The possible values for $elem are x, y, size, spread, color, and inset.
-///
-/// @param {list} $val - Shadow value to find a value in.
-/// @param {keyword} $elem - Shadow component to extract.
-///
-/// @return If the value exists, returns the value. If the value is not set, returns false. If `$elem` is "inset", returns true, otherwise false.
-@function get-shadow-value($val, $elem) {
- // Return "none" if there's no shadow
- @if $val == none {
- @return none;
- }
-
- // Inset and color are always at the beginning and end
- @if $elem == inset {
- @return nth($val, 1) == inset;
- }
- @if $elem == color {
- @if type-of(nth($val, -1)) == color {
- @return nth($val, -1);
- }
- @else {
- @return black;
- }
- }
-
- // The rest of the values are located perilously in the middle
- $values: ();
- @each $v in $val {
- @if type-of($v) == 'number' {
- $values: append($values, $v);
- }
- }
- @if $elem == x {
- @if length($values) >= 1 {
- @return nth($values, 1);
- }
- @else {
- @return 0;
- }
- }
- @else if $elem == y {
- @if length($values) >= 2 {
- @return nth($values, 2);
- }
- @else {
- @return 0;
- }
- }
- @else if $elem == size {
- @if length($values) >= 3 {
- @return nth($values, 3);
- }
- @else {
- @return 0;
- }
- }
- @else if $elem == spread {
- @if length($values) >= 4 {
- @return nth($values, 4);
- }
- @else {
- @return 0;
- }
- }
- @else {
- @return false;
- }
-}
-
-/// Strip Unit
-/// Removes the unit (e.g. px, em, rem) from a value, returning the number only.
-///
-/// @param {number} $num - Number to strip unit from.
-///
-/// @return The same number, sans unit.
-@function strip-unit($num) {
- @return math.div($num, $num * 0 + 1);
-}
-
-/// Turn to Degrees
-/// Converts a turn unit to the equivalent unit in degrees. 1turn is equal to 360 degrees. Not all browsers support turn, so this function allows us to use turns while outputting a value that all browsers understand.
-///
-/// @param {number} $value - Turn value to convert.
-///
-/// @return The same value, but in degrees.
-@function turn-to-deg($value) {
- @return strip-unit($value) * 360deg;
-}
-
-/// Convert to Rem
-/// Converts a pixel value to matching rem value. *Any* value passed, regardless of unit, is assumed to be a pixel value. By default, the base pixel value used to calculate the rem value is taken from the `$rem-base` variable.
-///
-/// @param {number} $value - Pixel value to convert.
-///
-/// @return A number in rems, calculated based on the given value and the base pixel value.
-@function convert-to-rem($value, $base-value: $rem-base) {
- $value: math.div(strip-unit($value), strip-unit($base-value)) * 1rem;
- @if ($value == 0rem) { $value: 0; } // Turn 0rem into 0
- @return $value;
-}
-
-/// Rem Calculator
-/// Converts one or more pixel values into matching rem values. This function works a lot like `convert-to-rem`, except it can convert more than one value at once, which is useful when setting multiple values on a `margin` or `padding` property.
-///
-/// @param {number|list} $values - One or more values to convert. Be sure to separate them with spaces and not commas. If you need to convert a comma-separated list, wrap the list in parentheses.
-///
-/// @return A list of converted values.
-@function rem-calc($values, $base-value: null) {
- @if $base-value == null {
- $base-value: $rem-base;
- }
- $max: length($values);
-
- @if $max == 1 { @return convert-to-rem(nth($values, 1), $base-value); }
-
- $remValues: ();
- @for $i from 1 through $max {
- $remValues: append($remValues, convert-to-rem(nth($values, $i), $base-value));
- }
- @return $remValues;
-}
diff --git a/frontend/src/styles.scss b/frontend/src/styles.scss
index c2cd7cf8be7..28af75e6432 100644
--- a/frontend/src/styles.scss
+++ b/frontend/src/styles.scss
@@ -5,11 +5,6 @@
// Variables
@import "global_styles/openproject/_variable_defaults.scss";
-// Foundation variables
-@import "global_styles/openproject/_settings.scss";
-
-// Dependencies
-@import "global_styles/vendor/foundation-apps/scss/foundation.scss";
// Core styles
@import "global_styles/openproject.sass";