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

Fix more variables

Oliver Günther04558a888119
diff --git a/frontend/angular.json b/frontend/angular.json
index dd6f31afe55..14c8d6615a5 100644
--- a/frontend/angular.json
+++ b/frontend/angular.json
@@ -19,7 +19,9 @@
"main": "src/main.ts",
"tsConfig": "src/tsconfig.app.json",
"polyfills": "src/polyfills.ts",
- "assets": [],
+ "assets": [
+ "src/assets"
+ ],
"styles": [
"src/styles.scss",
"node_modules/codemirror/lib/codemirror.css",
diff --git a/frontend/src/global_styles/content/_accounts.sass b/frontend/src/global_styles/content/_accounts.sass
index 8542c348501..e52cd7ec7ae 100644
--- a/frontend/src/global_styles/content/_accounts.sass
+++ b/frontend/src/global_styles/content/_accounts.sass
@@ -103,7 +103,7 @@
background-position: 5px center
background-color: light-grey
font-weight: normal
- color: $body-font-color
+ color: var(--body-font-color)
&:hover
text-decoration: none
diff --git a/frontend/src/global_styles/content/_autocomplete.sass b/frontend/src/global_styles/content/_autocomplete.sass
index 0945a9db0e3..0501342e623 100644
--- a/frontend/src/global_styles/content/_autocomplete.sass
+++ b/frontend/src/global_styles/content/_autocomplete.sass
@@ -71,10 +71,10 @@ div.autocomplete
z-index: 10000
.ui-menu-item
- border-bottom: 1px solid $content-default-border-color
+ border-bottom: 1px solid var(--content-default-border-color)
a
- color: $body-font-color
+ color: var(--body-font-color)
padding-left: 5px
.ui-menu-item-wrapper
diff --git a/frontend/src/global_styles/content/_collapsible_section.sass b/frontend/src/global_styles/content/_collapsible_section.sass
index 82e61071ede..ea46caad68b 100644
--- a/frontend/src/global_styles/content/_collapsible_section.sass
+++ b/frontend/src/global_styles/content/_collapsible_section.sass
@@ -15,7 +15,7 @@
@include without-link-styling
display: block
cursor: pointer
- color: $body-font-color
+ color: var(--body-font-color)
font-size: 1rem
font-weight: bold
line-height: 1.8
@@ -23,5 +23,5 @@
border-bottom: 1px solid $gray
&:hover, &:focus
- color: $body-font-color
+ color: var(--body-font-color)
text-decoration: none
diff --git a/frontend/src/global_styles/content/_forms.sass b/frontend/src/global_styles/content/_forms.sass
index 5480efae3a0..ba71eadae08 100644
--- a/frontend/src/global_styles/content/_forms.sass
+++ b/frontend/src/global_styles/content/_forms.sass
@@ -643,7 +643,7 @@ input[readonly].-clickable
&:focus,
&.-focus
text-decoration: none
- color: $body-font-color
+ color: var(--body-font-color)
border-color: var(--inplace-edit--border-color)
.form--selected-value--remover
@@ -651,7 +651,7 @@ input[readonly].-clickable
a.form--selected-value--remover
text-decoration: none
- color: $body-font-color
+ color: var(--body-font-color)
.form--selected-value--remover
position: absolute
@@ -661,7 +661,7 @@ input[readonly].-clickable
width: 32px
background: #F8F8F8
border-left: 1px solid #ddd
- color: $body-font-color
+ color: var(--body-font-color)
visibility: hidden
line-height: 2rem
diff --git a/frontend/src/global_styles/content/_journal.sass b/frontend/src/global_styles/content/_journal.sass
index 6897082a8f4..c85b8f7d3bd 100644
--- a/frontend/src/global_styles/content/_journal.sass
+++ b/frontend/src/global_styles/content/_journal.sass
@@ -86,7 +86,7 @@
.journal-attributes
color: #333333
- font-size: $journal-attribute-font-size
+ font-size: var(--journal-attribute-font-size)
ul.journal-attributes
list-style-type: disc
diff --git a/frontend/src/global_styles/content/_modal.sass b/frontend/src/global_styles/content/_modal.sass
index cfdb062ee20..292945ca6d3 100644
--- a/frontend/src/global_styles/content/_modal.sass
+++ b/frontend/src/global_styles/content/_modal.sass
@@ -27,12 +27,7 @@
//++
$ng-modal-padding: 3em
-$ng-modal-background: $body-background
-$ng-modal-close-color: $light-gray
$ng-modal-image-height: 135px
-$ng-modal-image-width: $ng-modal-image-height
-$modal-header-height: var(--header-height)
-$modal-footer-height: $modal-header-height
// The portal element of a modal element
// ( = the outer element should span the entire view )
@@ -59,7 +54,7 @@ $modal-footer-height: $modal-header-height
// This is placed within --portal
.op-modal--modal-container
transition: opacity 0.25s ease
- background: $ng-modal-background
+ background: var(--body-background)
position: relative
padding: 5px $ng-modal-padding / 2
min-width: 200px
@@ -79,14 +74,14 @@ $modal-footer-height: $modal-header-height
.op-modal--modal-header
display: flex
align-items: center
- height: $modal-header-height
+ height: var(--header-height)
padding: 0 45px 0 0
margin-bottom: 15px
- border-bottom: 1px solid $light-gray
+ border-bottom: 1px solid var(--light-gray)
*
- height: $modal-header-height
- line-height: $modal-header-height
+ height: var(--header-height)
+ line-height: var(--header-height)
h2, h3
border: none
@@ -96,7 +91,7 @@ $modal-footer-height: $modal-header-height
.op-modal--modal-body
margin: 1em 0
padding: 0 1.5rem
- max-height: calc(100vh - #{$modal-header-height} - #{$modal-footer-height})
+ max-height: calc(100vh - var(--header-height) - var(--header-height))
overflow: auto
@include styled-scroll-bar
@@ -178,13 +173,13 @@ ul.export-options
a
cursor: pointer
text-decoration: none
- color: $body-font-color
+ color: var(--body-font-color)
font-weight: normal
overflow-wrap: break-word
word-wrap: break-word
&:hover, &:active
text-decoration: none
- color: $body-font-color
+ color: var(--body-font-color)
span.export-label
display: block
padding: 10px 0 0 0
diff --git a/frontend/src/global_styles/content/_pagination.sass b/frontend/src/global_styles/content/_pagination.sass
index fd747ab5efc..6b8dad8e152 100644
--- a/frontend/src/global_styles/content/_pagination.sass
+++ b/frontend/src/global_styles/content/_pagination.sass
@@ -81,7 +81,7 @@ $pagination--font-size: 0.8125rem
background: #f8f8f8
border-radius: 2px
border: 1px solid #cccccc
- color: $body-font-color
+ color: var(--body-font-color)
font-weight: normal
cursor: pointer
text-decoration: none
diff --git a/frontend/src/global_styles/content/_project_status.sass b/frontend/src/global_styles/content/_project_status.sass
index 0b965f443f6..19f76f189a1 100644
--- a/frontend/src/global_styles/content/_project_status.sass
+++ b/frontend/src/global_styles/content/_project_status.sass
@@ -27,17 +27,19 @@
margin-right: 7px
vertical-align: middle
&.-not-set
- border-color: $project-status-gray
- background-color: adjust-color($project-status-gray, $alpha: -0.7)
+ // Have to use uppercase functions to make sass ignore them :-/
+ // https://github.com/sass/node-sass/issues/2251
+ border-color: RGB(var(--project-status-gray))
+ background-color: RGBA(var(--project-status-gray), 0.3)
&.-off-track
- border-color: $project-status-red
- background-color: adjust-color($project-status-red, $alpha: -0.7)
+ border-color: var(--project-status-red)
+ background-color: RGBA(var(--project-status-gray), 0.3)
&.-at-risk
- border-color: $project-status-orange
- background-color: adjust-color($project-status-orange, $alpha: -0.7)
+ border-color: var(--project-status-orange)
+ background-color: RGBA(var(--project-status-gray), 0.3)
&.-on-track
- border-color: $project-status-green
- background-color: adjust-color($project-status-green, $alpha: -0.7)
+ border-color: var(--project-status-green)
+ background-color: RGBA(var(--project-status-gray), 0.3)
&.-inline
height: 24px
@@ -59,13 +61,13 @@
text-transform: uppercase
font-weight: bold
&.-not-set
- color: $project-status-gray
+ color: var(--project-status-gray)
&.-off-track
- color: $project-status-red
+ color: var(--project-status-red)
&.-at-risk
- color: $project-status-orange
+ color: var(--project-status-orange)
&.-on-track
- color: $project-status-green
+ color: var(--project-status-green)
.project-status--pulldown-icon
font-size: 10px
diff --git a/frontend/src/global_styles/content/_table.sass b/frontend/src/global_styles/content/_table.sass
index 193b7a8cb00..10ec8220d3a 100644
--- a/frontend/src/global_styles/content/_table.sass
+++ b/frontend/src/global_styles/content/_table.sass
@@ -43,7 +43,7 @@ $input-elements: input, 'input.form--text-field', select, 'select.form--select',
y: hidden
&.-with-footer
- padding-bottom: $generic-table--footer-height
+ padding-bottom: var(--generic-table--footer-height)
.generic-table--results-container
height: 100%
@@ -69,7 +69,7 @@ table.generic-table
border-collapse: collapse
width: 100%
margin: 0
- font-size: $generic-table--font-size
+ font-size: var(--generic-table--font-size)
col
&:hover,
@@ -77,13 +77,13 @@ table.generic-table
background: #f8f8f8
thead
- height: $generic-table--header-height
+ height: var(--generic-table--header-height)
tr
&:hover
background: none
th
- font-size: $generic-table--header-font-size
+ font-size: var(--generic-table--header-font-size)
text-transform: uppercase
text-align: left
line-height: 34px
@@ -97,15 +97,15 @@ table.generic-table
a
text-decoration: none
- color: $body-font-color
+ color: var(--body-font-color)
&:hover, &:active
text-decoration: none
- color: $body-font-color
+ color: var(--body-font-color)
.-required:after
@include default-transition
content: '*'
- color: $primary-color-dark
+ color: var(--primary-color-dark)
padding: 0 0.2rem
.sort
@@ -139,7 +139,7 @@ table.generic-table
tbody
tr:not(.-no-highlighting)
- border-bottom: 1px solid $table-row-border-color
+ border-bottom: 1px solid var(--table-row-border-color)
td:not(.-no-ellipsis)
@include text-shortener
@@ -189,7 +189,7 @@ table.generic-table
&.info
a
text-decoration: none
- color: $body-font-color
+ color: var(--body-font-color)
&.buttons
text-align: right
@@ -212,17 +212,17 @@ thead.-sticky th
.generic-table--footer-outer
padding: 0 6px
- line-height: $generic-table--footer-height
+ line-height: var(--generic-table--footer-height)
width: 100%
- height: $generic-table--footer-height
+ height: var(--generic-table--footer-height)
.generic-table--header-outer,
.generic-table--sort-header-outer
padding: 0 12px 0 6px
- line-height: $generic-table--header-height
- height: $generic-table--header-height
+ line-height: var(--generic-table--header-height)
+ height: var(--generic-table--header-height)
z-index: 1
- border-bottom: 1px solid $table-row-border-color
+ border-bottom: 1px solid var(--table-row-border-color)
&:hover,
&.hover
@@ -230,9 +230,9 @@ thead.-sticky th
.generic-table--empty-header
padding: 0 6px
- height: $generic-table--header-height
- line-height: $generic-table--header-height
- border-bottom: 1px solid $table-row-border-color
+ height: var(--generic-table--header-height)
+ line-height: var(--generic-table--header-height)
+ border-bottom: 1px solid var(--table-row-border-color)
z-index: 1
// In case the table header contains invisible content for screen readers
@@ -262,7 +262,7 @@ thead.-sticky th
width: 100%
font-weight: bold
&.-inactive
- color: $button--active-font-color
+ color: var(--button--active-font-color)
& > op-icon
flex: 0 0 0
diff --git a/frontend/src/global_styles/content/_tables.sass b/frontend/src/global_styles/content/_tables.sass
index 6b43ede8014..c547cba76d3 100644
--- a/frontend/src/global_styles/content/_tables.sass
+++ b/frontend/src/global_styles/content/_tables.sass
@@ -48,7 +48,7 @@ table
&#time-report
tbody tr
font-style: italic
- color: $body-font-color
+ color: var(--body-font-color)
&.last-level
font-style: normal
&.total
@@ -153,16 +153,16 @@ th.hidden
tr.context-menu-selection,
tr.-checked
- background-color: $table-row-highlighting-color !important
+ background-color: var(--table-row-highlighting-color) !important
&[class*=__hl_background]
- outline: $table-row-highlighting-outline-color solid 2px
+ outline: var(--table-row-highlighting-outline-color) solid 2px
td
- border-top: 1px solid $table-row-highlighting-color !important
- border-bottom: 1px solid $table-row-highlighting-color !important
- color: $body-font-color !important
+ border-top: 1px solid var(--table-row-highlighting-color) !important
+ border-bottom: 1px solid var(--table-row-highlighting-color) !important
+ color: var(--body-font-color) !important
a
- color: $body-font-color !important
+ color: var(--body-font-color) !important
#custom-options-table
.custom-option-value
diff --git a/frontend/src/global_styles/content/_tooltips.sass b/frontend/src/global_styles/content/_tooltips.sass
index bfc12570d2f..7a00547241a 100644
--- a/frontend/src/global_styles/content/_tooltips.sass
+++ b/frontend/src/global_styles/content/_tooltips.sass
@@ -33,7 +33,6 @@
$tooltip--background-color: #e3f5ff
$tooltip--border: none
$tooltip--height: 22px
-$tooltip--font-color: $body-font-color
$tooltip--arrow-size: 6px
$advanced-tooltip--border: 1px solid #a7cbe1
@@ -64,14 +63,14 @@ $advanced-tooltip--border: 1px solid #a7cbe1
transform: translateY(50%)
margin-bottom: 0
-@mixin tooltip--colorize($color: $tooltip--background-color, $textColor:$tooltip--font-color)
+@mixin tooltip--colorize($color: $tooltip--background-color, $textColor:var(--tooltip--font-color))
@each $position in top, right, bottom, left
&.tooltip--#{$position}
&:before
border-#{$position}-color: $color
&:after
background-color: $tooltip--background-color
- color: $tooltip--font-color
+ color: var(--tooltip--font-color)
[data-tooltip]
position: relative
diff --git a/frontend/src/global_styles/content/_types_form_configuration.sass b/frontend/src/global_styles/content/_types_form_configuration.sass
index e3e43e9d35d..2fcdeaa4be0 100644
--- a/frontend/src/global_styles/content/_types_form_configuration.sass
+++ b/frontend/src/global_styles/content/_types_form_configuration.sass
@@ -70,10 +70,10 @@
.attribute-handle
cursor: -webkit-grab
cursor: grab
- color: $body-font-color
+ color: var(--body-font-color)
font-size: 12px
.delete-attribute:before
- color: $body-font-color
+ color: var(--body-font-color)
.attribute-cf-label
font-size: 0.8rem
diff --git a/frontend/src/global_styles/content/_widget_box.sass b/frontend/src/global_styles/content/_widget_box.sass
index bf91694d5ac..07825c84da3 100644
--- a/frontend/src/global_styles/content/_widget_box.sass
+++ b/frontend/src/global_styles/content/_widget_box.sass
@@ -97,7 +97,7 @@ $widget-box--enumeration-width: 20px
@extend .icon-yes
display: inline-block
font-size: 0.6rem
- color: $alternative-color
+ color: var(--alternative-color)
color: var(--alternative-color)
width: $widget-box--enumeration-width
diff --git a/frontend/src/global_styles/content/_wiki.sass b/frontend/src/global_styles/content/_wiki.sass
index b2f32dd97e0..8c3c4b96cf1 100644
--- a/frontend/src/global_styles/content/_wiki.sass
+++ b/frontend/src/global_styles/content/_wiki.sass
@@ -29,19 +29,18 @@
div.wiki
// ------------------- FONT -------------------
- font-size: $wiki-default-font-size
- $wiki-max-heading-font-size: $wiki-default-font-size * 1.75
+ font-size: var(--wiki-default-font-size)
h1
- font-size: $wiki-max-heading-font-size
+ font-size: calc(var(--wiki-default-font-size) * 1.75)
h2
- font-size: $wiki-max-heading-font-size * 0.8
+ font-size: calc(var(--wiki-default-font-size) * 1.75 * 0.8)
h3
- font-size: $wiki-max-heading-font-size * 0.7
+ font-size: calc(var(--wiki-default-font-size) * 1.75 * 0.7)
h4
- font-size: $wiki-max-heading-font-size * 0.6
+ font-size: calc(var(--wiki-default-font-size) * 1.75 * 0.6)
h5
- font-size: $wiki-max-heading-font-size * 0.5
+ font-size: calc(var(--wiki-default-font-size) * 1.75 * 0.5)
h1, h2, h3, h4, h5
margin: 1em 0
@@ -79,7 +78,7 @@ div.wiki
margin-right: 12px
margin-left: 0
display: table
- font-size: $wiki-toc-ul-font-size
+ font-size: var(--wiki-toc-ul-font-size)
.section-nav
margin-bottom: 0
@@ -113,7 +112,7 @@ div.wiki
fieldset.collapsible legend
font-weight: bold
- font-size: $wiki-toc-header-font-size
+ font-size: var(--wiki-toc-header-font-size)
img
vertical-align: middle
@@ -136,13 +135,13 @@ h1:hover, h2:hover, h3:hover
.wiki
p
margin-bottom: 1em
- font-size: $wiki_default-font-size
+ font-size: var(--wiki_default-font-size)
.quick_info .label
background: none
color: #000
font-weight: bold
- font-size: $wiki-default-font-size
+ font-size: var(--wiki-default-font-size)
.wiki-title
@include text-shortener
diff --git a/frontend/src/global_styles/content/work_packages/_table_content.sass b/frontend/src/global_styles/content/work_packages/_table_content.sass
index 16ac62242e1..5f03402e12f 100644
--- a/frontend/src/global_styles/content/work_packages/_table_content.sass
+++ b/frontend/src/global_styles/content/work_packages/_table_content.sass
@@ -40,7 +40,7 @@
.wp-table--row,
#empty-row-notification
- height: $table-timeline--row-height
+ height: var(--table-timeline--row-height)
// Hide collapsed rows (hierarchies, relations)
&.-collapsed
@@ -80,7 +80,7 @@
// Remove padding from grouping rows (exceeds allowed width of 41px)
.wp-table--group-header
- height: $table-timeline--row-height
+ height: var(--table-timeline--row-height)
td
padding: 0 !important
diff --git a/frontend/src/global_styles/content/work_packages/_table_drag_and_drop.sass b/frontend/src/global_styles/content/work_packages/_table_drag_and_drop.sass
index dd1bc2c0336..22e8a438200 100644
--- a/frontend/src/global_styles/content/work_packages/_table_drag_and_drop.sass
+++ b/frontend/src/global_styles/content/work_packages/_table_drag_and_drop.sass
@@ -2,7 +2,7 @@
// Drag & Drop styles for the table
//
.wp--row.gu-mirror
- border: 1px solid $table-row-border-color
+ border: 1px solid var(--table-row-border-color)
border-radius: 5px
background: white !important
@@ -22,8 +22,8 @@ html:not(.-browser-mobile)
// Hide from viewers, but allow to be focused
opacity: 0
display: inline-block
- height: calc(#{$table-timeline--row-height} - 1px)
- line-height: calc(#{$table-timeline--row-height} - 1px)
+ height: calc(var(--table-timeline--row-height) - 1px)
+ line-height: calc(var(--table-timeline--row-height) - 1px)
.issue:hover .wp-table-context-menu-icon,
diff --git a/frontend/src/global_styles/content/work_packages/_table_hierarchy.sass b/frontend/src/global_styles/content/work_packages/_table_hierarchy.sass
index abc889977fa..1672e82d148 100644
--- a/frontend/src/global_styles/content/work_packages/_table_hierarchy.sass
+++ b/frontend/src/global_styles/content/work_packages/_table_hierarchy.sass
@@ -65,7 +65,7 @@
body
.wp-table--hierarchy-aditional-row,
.wp-table--hierarchy-aditional-row .wp-table--hierarchy-indicator-icon
- color: $table-row-hierarchies-row-font-color
+ color: var(--table-row-hierarchies-row-font-color)
.hierarchy-header--icon
cursor: pointer
diff --git a/frontend/src/global_styles/content/work_packages/_table_relations.sass b/frontend/src/global_styles/content/work_packages/_table_relations.sass
index ba484e396a4..9d5857797ee 100644
--- a/frontend/src/global_styles/content/work_packages/_table_relations.sass
+++ b/frontend/src/global_styles/content/work_packages/_table_relations.sass
@@ -4,7 +4,7 @@ body
background: var(--table-row-relations-row-background-color)
.wp-table--relation-cell-td.-expanded
- border-bottom: 1px solid $table-row-relations-row-background-color
+ border-bottom: 1px solid var(--table-row-relations-row-background-color)
// Show the correct icon for the current expansion state
diff --git a/frontend/src/global_styles/content/work_packages/inplace_editing/_display_fields.sass b/frontend/src/global_styles/content/work_packages/inplace_editing/_display_fields.sass
index 1451521a4db..b51059052ff 100644
--- a/frontend/src/global_styles/content/work_packages/inplace_editing/_display_fields.sass
+++ b/frontend/src/global_styles/content/work_packages/inplace_editing/_display_fields.sass
@@ -131,7 +131,7 @@
cursor: not-allowed
&:focus, &:hover
- color: $inplace-edit--color--disabled
+ color: var(--inplace-edit--color--disabled)
background: var(--inplace-edit--bg-color--disabled)
editable-attribute-field
diff --git a/frontend/src/global_styles/content/work_packages/inplace_editing/_edit_fields.sass b/frontend/src/global_styles/content/work_packages/inplace_editing/_edit_fields.sass
index 73ec3d4a1f7..bfe5d2c38cd 100644
--- a/frontend/src/global_styles/content/work_packages/inplace_editing/_edit_fields.sass
+++ b/frontend/src/global_styles/content/work_packages/inplace_editing/_edit_fields.sass
@@ -7,7 +7,8 @@
border-color: var(--content-form-danger-zone-bg-color)
&:hover
- border-color: lighten(var(--content-form-danger-zone-bg-color), 10%)
+ // TODO WAS border-color: lighten(var(--content-form-danger-zone-bg-color), 10%)
+ border-color: #d56767
form
width: 100%
@@ -23,7 +24,7 @@
line-height: 24px
padding: 2px
font-size: 14px
- color: $body-font-color
+ color: var(--body-font-color)
border-radius: 2px
border-color: darkblue
diff --git a/frontend/src/global_styles/content/work_packages/inplace_editing/_textareas.sass b/frontend/src/global_styles/content/work_packages/inplace_editing/_textareas.sass
index c8f11589a1e..a29cdb803d5 100644
--- a/frontend/src/global_styles/content/work_packages/inplace_editing/_textareas.sass
+++ b/frontend/src/global_styles/content/work_packages/inplace_editing/_textareas.sass
@@ -49,8 +49,8 @@
.inplace-edit--controls
width: 80px
height: 40px
- background: $inplace-edit--dark-background
- border: 1px solid $inplace-edit--color--very-dark
+ background: var(--inplace-edit--dark-background)
+ border: 1px solid var(--inplace-edit--color--very-dark)
box-shadow: 2px 2px 4px var(--inplace-edit--border-color)
text-align: center
// Align controls via flex
@@ -61,7 +61,7 @@
.inplace-edit--control--save[disabled] a,
.inplace-edit--control--send[disabled] a
background-color: var(--inplace-edit--bg-color--disabled)
- color: $inplace-edit--color--disabled
+ color: var(--inplace-edit--color--disabled)
cursor: not-allowed
// A single save/cancel control
@@ -75,7 +75,7 @@
line-height: 27px
border: 1px solid transparent
display: inline-block
- color: $body-font-color
+ color: var(--body-font-color)
text-decoration: none
&:hover, &:active
diff --git a/frontend/src/global_styles/content/work_packages/resizer/resizer.sass b/frontend/src/global_styles/content/work_packages/resizer/resizer.sass
index de8cf1bc7d0..9851212c901 100644
--- a/frontend/src/global_styles/content/work_packages/resizer/resizer.sass
+++ b/frontend/src/global_styles/content/work_packages/resizer/resizer.sass
@@ -5,7 +5,7 @@
height: 100%
left: -12px
cursor: col-resize
- color: $light-gray
+ color: var(--light-gray)
font-size: 14px
&:before
diff --git a/frontend/src/global_styles/content/work_packages/single_view/_attachments.sass b/frontend/src/global_styles/content/work_packages/single_view/_attachments.sass
index c0f28552da6..5b8efc0274f 100644
--- a/frontend/src/global_styles/content/work_packages/single_view/_attachments.sass
+++ b/frontend/src/global_styles/content/work_packages/single_view/_attachments.sass
@@ -48,7 +48,7 @@
border-top: 1px solid #ddd
.work-package--attachments--drop-box
- border: 2px dashed $light-gray
+ border: 2px dashed var(--light-gray)
border-radius: 2px
text-align: center
padding: 20px
@@ -59,7 +59,7 @@
.work-package--attachments--label
- color: $light-gray
+ color: var(--light-gray)
text-align: center
i, label
@@ -67,7 +67,7 @@
vertical-align: middle
.icon-attachment:before
- color: $light-gray
+ color: var(--light-gray)
font-size: 3rem
label
diff --git a/frontend/src/global_styles/content/work_packages/single_view/_inplace_esque_fields.sass b/frontend/src/global_styles/content/work_packages/single_view/_inplace_esque_fields.sass
index 3a46e64f0b2..5c7972fad91 100644
--- a/frontend/src/global_styles/content/work_packages/single_view/_inplace_esque_fields.sass
+++ b/frontend/src/global_styles/content/work_packages/single_view/_inplace_esque_fields.sass
@@ -10,7 +10,7 @@ a.inplace-editing--trigger-link,
&:focus,
&.-focus
text-decoration: none
- color: $body-font-color
+ color: var(--body-font-color)
&.-active
border-color: transparent
@@ -40,7 +40,7 @@ a.inplace-editing--trigger-link,
// Styles the comment trigger link similar to attachment
// but without icon and actual link
a.inplace-editing--trigger-link
- color: $body-font-color
+ color: var(--body-font-color)
font-style: italic
// The trigger text left to the edit icon
@@ -60,7 +60,7 @@ a.inplace-editing--trigger-link,
width: 32px
background: $gray-light
border-left: 1px solid var(--inplace-edit--border-color)
- color: $body-font-color
+ color: var(--body-font-color)
visibility: hidden
i
diff --git a/frontend/src/global_styles/content/work_packages/timelines/_grid.sass b/frontend/src/global_styles/content/work_packages/timelines/_grid.sass
index 4ae7ab14bdb..5864148f4ba 100644
--- a/frontend/src/global_styles/content/work_packages/timelines/_grid.sass
+++ b/frontend/src/global_styles/content/work_packages/timelines/_grid.sass
@@ -3,10 +3,10 @@
top: 0
padding-top: 5px
height: 100%
- border-right: 1px solid $timeline--grid-color
+ border-right: 1px solid var(--timeline--grid-color)
&.-grid-highlight
- border-right: 1px solid $timeline--header-border-color
+ border-right: 1px solid var(--timeline--header-border-color)
&.grid-weekend
background-color: #f5f5f5
diff --git a/frontend/src/global_styles/content/work_packages/timelines/_timelines.sass b/frontend/src/global_styles/content/work_packages/timelines/_timelines.sass
index e65ecb0ea0d..c95440e2c01 100644
--- a/frontend/src/global_styles/content/work_packages/timelines/_timelines.sass
+++ b/frontend/src/global_styles/content/work_packages/timelines/_timelines.sass
@@ -15,7 +15,7 @@
position: absolute
right: 20px
background: white
- top: calc(#{$generic-table--header-height} + 10px)
+ top: calc(#{var(--generic-table--header-height)} + 10px)
border: 1px solid #D7D7D7
box-shadow: 0 5px 3px -4px rgba(0, 0, 0, 0.2)
z-index: 200
@@ -42,8 +42,8 @@
position: absolute
width: 100%
// Position 45px below header
- top: $generic-table--header-height
- height: calc(100% - #{$generic-table--header-height})
+ top: var(--generic-table--header-height)
+ height: calc(100% - var(--generic-table--header-height))
// Disable pointer-events to allow cells to handle them
pointer-events: none
@@ -53,18 +53,18 @@
// Add bottom border to timeline
.wp-table-timeline--body
- outline: 1px solid $table-row-border-color
+ outline: 1px solid var(--table-row-border-color)
.wp-timeline-cell
// Ensure the height of table and timeline rows
- height: $table-timeline--row-height
+ height: var(--table-timeline--row-height)
// Vertically center elements
display: flex
align-items: center
&:first-child
// The first table child is 1px larger
- height: calc(#{$table-timeline--row-height} + 1px)
+ height: calc(var(--table-timeline--row-height) + 1px)
// Need to disable flex behavior on children
> div
@@ -78,4 +78,4 @@
// Add margin to timeline when inline-create link is showing in table
.wp-table-timeline--body.-inline-create-mirror
- margin-bottom: $table-timeline--row-height
+ margin-bottom: var(--table-timeline--row-height)
diff --git a/frontend/src/global_styles/content/work_packages/timelines/_timelines_header.sass b/frontend/src/global_styles/content/work_packages/timelines/_timelines_header.sass
index 0783ea92e4f..261d49e037c 100644
--- a/frontend/src/global_styles/content/work_packages/timelines/_timelines_header.sass
+++ b/frontend/src/global_styles/content/work_packages/timelines/_timelines_header.sass
@@ -2,7 +2,7 @@
// That is why position: sticky in its children won't work
wp-timeline-header
display: block
- height: $generic-table--header-height
+ height: var(--generic-table--header-height)
width: 100%
position: sticky
top: 0
@@ -16,7 +16,7 @@ wp-timeline-header
top: 0
left: 0
line-height: normal
- border-right: 1px solid $timeline--header-border-color
+ border-right: 1px solid var(--timeline--header-border-color)
text-align: center
font-size: 8px
// Clip overflow text to avoid overlapping or line breaking
@@ -24,21 +24,21 @@ wp-timeline-header
white-space: nowrap
&.-top-border
- border-top: 1px solid $timeline--header-border-color
+ border-top: 1px solid var(--timeline--header-border-color)
.wp-timeline--header-day-element
height: 12px
padding-top: 1px
- border-bottom: 1px solid $timeline--header-border-color
+ border-bottom: 1px solid var(--timeline--header-border-color)
.wp-timeline--header-middle-element
- border-top: 1px solid $timeline--header-border-color
- border-bottom: 1px solid $timeline--header-border-color
+ border-top: 1px solid var(--timeline--header-border-color)
+ border-bottom: 1px solid var(--timeline--header-border-color)
padding-top: 5px
height: 20px
.wp-timeline--header-top-bold-element
- border-top: 1px solid $timeline--header-border-color
+ border-top: 1px solid var(--timeline--header-border-color)
font-weight: bold
font-size: 11px
height: 15px
diff --git a/frontend/src/global_styles/content/work_packages/timelines/_timelines_static_elements.sass b/frontend/src/global_styles/content/work_packages/timelines/_timelines_static_elements.sass
index 3e993e58fe2..03317d32a56 100644
--- a/frontend/src/global_styles/content/work_packages/timelines/_timelines_static_elements.sass
+++ b/frontend/src/global_styles/content/work_packages/timelines/_timelines_static_elements.sass
@@ -2,8 +2,8 @@
position: absolute
width: 100%
// Position 45px below header
- top: $generic-table--header-height
- height: calc(100% - #{$generic-table--header-height})
+ top: var(--generic-table--header-height)
+ height: calc(100% - var(--generic-table--header-height))
.wp-timeline--static-element
z-index: -1
diff --git a/frontend/src/global_styles/openproject/_variables.scss b/frontend/src/global_styles/openproject/_variables.scss
index 7d8dfc43730..54c0b3e5c74 100644
--- a/frontend/src/global_styles/openproject/_variables.scss
+++ b/frontend/src/global_styles/openproject/_variables.scss
@@ -202,7 +202,7 @@
--status-selector-bg-color: #F99601;
--status-selector-bg-hover-color: #E08600;
--card-font-size: 16px;
- --project-status-gray: #CCCCCC;
+ --project-status-gray: 204, 204, 204;
--project-status-red: #E73E3D;
--project-status-orange: #FFB030;
--project-status-green: #00D12D;
diff --git a/frontend/src/global_styles/vendor/foundation-apps/scss/_global.scss b/frontend/src/global_styles/vendor/foundation-apps/scss/_global.scss
index e4cffc6cf17..7a21f17feb1 100755
--- a/frontend/src/global_styles/vendor/foundation-apps/scss/_global.scss
+++ b/frontend/src/global_styles/vendor/foundation-apps/scss/_global.scss
@@ -87,7 +87,7 @@ $foundation-colors: (
// Default body styles
body {
background: $body-background;
- color: $body-font-color;
+ color: var(--body-font-color);
padding: 0;
margin: 0;
font-family: $body-font-family;
diff --git a/frontend/src/global_styles/vendor/foundation-apps/scss/components/_typography.scss b/frontend/src/global_styles/vendor/foundation-apps/scss/components/_typography.scss
index 18df76d3af5..c1a9f6165fb 100755
--- a/frontend/src/global_styles/vendor/foundation-apps/scss/components/_typography.scss
+++ b/frontend/src/global_styles/vendor/foundation-apps/scss/components/_typography.scss
@@ -1,347 +1,347 @@
-/*
- TYPOGRAPHY
- ----------
-
- Includes typographic resets for many common elements, and a few helper classes.
- - Headers
- - Subheaders
- - Lead paragraphs
- - Ordered/unordered lists
- - Code samples
- - Anchors
- - Dividers
- - Blockquotes
- - Acronyms
-*/
-
-/// @Foundation.settings
-// Typography
-// We use these to control header font styles
-$header-font-family: $body-font-family !default;
-$header-font-weight: $font-weight-normal !default;
-$header-font-style: $font-weight-normal !default;
-$header-font-color: #222 !default;
-$header-line-height: 1.4 !default;
-$header-top-margin: .2rem !default;
-$header-bottom-margin: .5rem !default;
-$header-text-rendering: optimizeLegibility !default;
-
-// We use these to control header font sizes
-$h1-font-size: rem-calc(44) !default;
-$h2-font-size: rem-calc(37) !default;
-$h3-font-size: rem-calc(27) !default;
-$h4-font-size: rem-calc(23) !default;
-$h5-font-size: rem-calc(18) !default;
-$h6-font-size: 1rem !default;
-
-// We use these to control header size reduction on small screens
-$h1-font-reduction: rem-calc(10) !default;
-$h2-font-reduction: rem-calc(10) !default;
-$h3-font-reduction: rem-calc(5) !default;
-$h4-font-reduction: rem-calc(5) !default;
-$h5-font-reduction: 0 !default;
-$h6-font-reduction: 0 !default;
-
-// These control how subheaders are styled.
-$subheader-line-height: 1.4 !default;
-$subheader-font-color: scale-color($header-font-color, $lightness: 35%) !default;
-$subheader-font-weight: $font-weight-normal !default;
-$subheader-top-margin: .2rem !default;
-$subheader-bottom-margin: .5rem !default;
-
-// A general <small> styling
-$small-font-size: 60% !default;
-$small-font-color: scale-color($header-font-color, $lightness: 35%) !default;
-
-// We use these to style paragraphs
-$paragraph-font-family: inherit !default;
-$paragraph-font-weight: $font-weight-normal !default;
-$paragraph-font-size: 1rem !default;
-$paragraph-line-height: 1.6 !default;
-$paragraph-margin-bottom: rem-calc(20) !default;
-$paragraph-aside-font-size: rem-calc(14) !default;
-$paragraph-aside-line-height: 1.35 !default;
-$paragraph-aside-font-style: italic !default;
-$paragraph-text-rendering: optimizeLegibility !default;
-
-// We use these to style <code> tags
-$code-color: grayscale($primary-color) !default;
-$code-font-family: Consolas, 'Liberation Mono', Courier, monospace !default;
-$code-font-weight: $font-weight-normal !default;
-$code-background-color: scale-color($secondary-color, $lightness: 70%) !default;
-$code-border-size: 1px !default;
-$code-border-style: solid !default;
-$code-border-color: scale-color($code-background-color, $lightness: -10%) !default;
-$code-padding: rem-calc(2) rem-calc(5) rem-calc(1) !default;
-$code-line-height: 1.75em !default;
-
-// We use these to style anchors
-$anchor-text-decoration: none !default;
-$anchor-text-decoration-hover: none !default;
-$anchor-font-color: $primary-color !default;
-$anchor-font-color-hover: scale-color($anchor-font-color, $lightness: -14%) !default;
-
-// We use these to style the <hr> element
-$hr-border-width: 1px !default;
-$hr-border-style: solid !default;
-$hr-border-color: #ddd !default;
-$hr-margin: rem-calc(20) !default;
-
-// We use these to style lists
-$list-font-family: $paragraph-font-family !default;
-$list-font-size: $paragraph-font-size !default;
-$list-line-height: $paragraph-line-height !default;
-$list-margin-bottom: $paragraph-margin-bottom !default;
-$list-style-position: outside !default;
-$list-side-margin: 1.1rem !default;
-$list-ordered-side-margin: 1.4rem !default;
-$list-side-margin-no-bullet: 0 !default;
-$list-nested-margin: rem-calc(20) !default;
-$definition-list-header-weight: $font-weight-bold !default;
-$definition-list-header-margin-bottom: .3rem !default;
-$definition-list-margin-bottom: rem-calc(12) !default;
-
-// We use these to style blockquotes
-$blockquote-font-color: scale-color($header-font-color, $lightness: 35%) !default;
-$blockquote-padding: rem-calc(9 20 0 19) !default;
-$blockquote-border: 1px solid #ddd !default;
-$blockquote-cite-font-size: rem-calc(13) !default;
-$blockquote-cite-font-color: scale-color($header-font-color, $lightness: 23%) !default;
-$blockquote-cite-link-color: $blockquote-cite-font-color !default;
-
-// Acronym styles
-$acronym-underline: 1px dotted #ddd !default;
-///
-
-@mixin lead {
- font-size: $paragraph-font-size + rem-calc(3.5);
- line-height: 1.6;
-}
-
-@mixin subheader {
- line-height: $subheader-line-height;
- color: $subheader-font-color;
- font-weight: $subheader-font-weight;
- margin-top: $subheader-top-margin;
- margin-bottom: $subheader-bottom-margin;
-}
-
-@include exports(typography) {
- /* Typography resets */
- div,
- dl,
- dt,
- dd,
- ul,
- ol,
- li,
- h1,
- h2,
- h3,
- h4,
- h5,
- h6,
- pre,
- form,
- p,
- blockquote,
- th,
- td {
- margin:0;
- padding:0;
- }
-
- /* Default Link Styles */
- a {
- color: $anchor-font-color;
- text-decoration: $anchor-text-decoration;
- line-height: inherit;
-
- &[ui-sref] {
- cursor: pointer;
- }
-
- &:hover,
- &:focus {
- color: $anchor-font-color-hover;
- @if $anchor-text-decoration-hover != $anchor-text-decoration {
- text-decoration: $anchor-text-decoration-hover;
- }
- }
-
- img { border:none; }
- }
-
- /* Default paragraph styles */
- p {
- font-family: $paragraph-font-family;
- font-weight: $paragraph-font-weight;
- font-size: $paragraph-font-size;
- line-height: $paragraph-line-height;
- margin-bottom: $paragraph-margin-bottom;
- text-rendering: $paragraph-text-rendering;
-
- &.lead { @include lead; }
-
- & aside {
- font-size: $paragraph-aside-font-size;
- line-height: $paragraph-aside-line-height;
- font-style: $paragraph-aside-font-style;
- }
- }
-
- /* Default header styles */
- h1, h2, h3, h4, h5, h6 {
- font-family: $header-font-family;
- font-weight: $header-font-weight;
- font-style: $header-font-style;
- color: $header-font-color;
- text-rendering: $header-text-rendering;
- margin-top: $header-top-margin;
- margin-bottom: $header-bottom-margin;
- line-height: $header-line-height;
-
- small {
- font-size: $small-font-size;
- color: $small-font-color;
- line-height: 0;
- }
- }
-
- h1 { font-size: $h1-font-size - $h1-font-reduction; }
- h2 { font-size: $h2-font-size - $h2-font-reduction; }
- h3 { font-size: $h3-font-size - $h3-font-reduction; }
- h4 { font-size: $h4-font-size - $h4-font-reduction; }
- h5 { font-size: $h5-font-size - $h5-font-reduction; }
- h6 { font-size: $h6-font-size - $h6-font-reduction; }
-
- .subheader { @include subheader; }
-
- hr {
- border: $hr-border-style $hr-border-color;
- border-width: $hr-border-width 0 0;
- clear: both;
- margin: $hr-margin 0 ($hr-margin - rem-calc($hr-border-width));
- height: 0;
- }
-
- /* Helpful Typography Defaults */
- em,
- i {
- font-style: italic;
- line-height: inherit;
- }
-
- strong,
- b {
- font-weight: $font-weight-bold;
- line-height: inherit;
- }
-
- small {
- font-size: $small-font-size;
- color: $small-font-color;
- line-height: inherit;
- }
-
- code {
- font-family: $code-font-family;
- font-weight: $code-font-weight;
- color: $code-color;
- background-color: $code-background-color;
- border-width: $code-border-size;
- border-style: $code-border-style;
- border-color: $code-border-color;
- padding: $code-padding;
- line-height: $code-line-height;
- }
-
- /* Lists */
- ul,
- ol,
- dl {
- font-size: $list-font-size;
- line-height: $list-line-height;
- margin-bottom: $list-margin-bottom;
- list-style-position: $list-style-position;
- font-family: $list-font-family;
- }
-
- /* Lists */
- ul, ol {
- margin-left: $list-side-margin;
- li {
- ul,
- ol {
- margin-left: $list-nested-margin;
- margin-bottom: 0;
- }
- }
- }
-
- /* Lists without bullets */
- ul.no-bullet {
- &, li ul, li ol {
- list-style-type: none;
- }
- margin-left: $list-side-margin-no-bullet;
- }
-
- /* Definition Lists */
- dl {
- dt {
- margin-bottom: $definition-list-header-margin-bottom;
- font-weight: $definition-list-header-weight;
- }
- dd { margin-bottom: $definition-list-margin-bottom; }
- }
-
- /* Abbreviations */
- abbr,
- acronym {
- text-transform: uppercase;
- font-size: 90%;
- color: $body-font-color;
- border-bottom: $acronym-underline;
- cursor: help;
- }
- abbr {
- text-transform: none;
- }
-
- /* Blockquotes */
- blockquote {
- margin: 0 0 $paragraph-margin-bottom;
- padding: $blockquote-padding;
- border-left: $blockquote-border;
-
- cite {
- display: block;
- font-size: $blockquote-cite-font-size;
- color: $blockquote-cite-font-color;
- &:before {
- content: "\2014 \0020";
- }
-
- a,
- a:visited {
- color: $blockquote-cite-link-color;
- }
- }
- }
- blockquote,
- blockquote p {
- line-height: $paragraph-line-height;
- color: $blockquote-font-color;
- }
-
- @include breakpoint(medium) {
- h1,h2,h3,h4,h5,h6 { line-height: $header-line-height; }
- h1 { font-size: $h1-font-size; }
- h2 { font-size: $h2-font-size; }
- h3 { font-size: $h3-font-size; }
- h4 { font-size: $h4-font-size; }
- h5 { font-size: $h5-font-size; }
- h6 { font-size: $h6-font-size; }
- }
-}
+/*
+ TYPOGRAPHY
+ ----------
+
+ Includes typographic resets for many common elements, and a few helper classes.
+ - Headers
+ - Subheaders
+ - Lead paragraphs
+ - Ordered/unordered lists
+ - Code samples
+ - Anchors
+ - Dividers
+ - Blockquotes
+ - Acronyms
+*/
+
+/// @Foundation.settings
+// Typography
+// We use these to control header font styles
+$header-font-family: $body-font-family !default;
+$header-font-weight: $font-weight-normal !default;
+$header-font-style: $font-weight-normal !default;
+$header-font-color: #222 !default;
+$header-line-height: 1.4 !default;
+$header-top-margin: .2rem !default;
+$header-bottom-margin: .5rem !default;
+$header-text-rendering: optimizeLegibility !default;
+
+// We use these to control header font sizes
+$h1-font-size: rem-calc(44) !default;
+$h2-font-size: rem-calc(37) !default;
+$h3-font-size: rem-calc(27) !default;
+$h4-font-size: rem-calc(23) !default;
+$h5-font-size: rem-calc(18) !default;
+$h6-font-size: 1rem !default;
+
+// We use these to control header size reduction on small screens
+$h1-font-reduction: rem-calc(10) !default;
+$h2-font-reduction: rem-calc(10) !default;
+$h3-font-reduction: rem-calc(5) !default;
+$h4-font-reduction: rem-calc(5) !default;
+$h5-font-reduction: 0 !default;
+$h6-font-reduction: 0 !default;
+
+// These control how subheaders are styled.
+$subheader-line-height: 1.4 !default;
+$subheader-font-color: scale-color($header-font-color, $lightness: 35%) !default;
+$subheader-font-weight: $font-weight-normal !default;
+$subheader-top-margin: .2rem !default;
+$subheader-bottom-margin: .5rem !default;
+
+// A general <small> styling
+$small-font-size: 60% !default;
+$small-font-color: scale-color($header-font-color, $lightness: 35%) !default;
+
+// We use these to style paragraphs
+$paragraph-font-family: inherit !default;
+$paragraph-font-weight: $font-weight-normal !default;
+$paragraph-font-size: 1rem !default;
+$paragraph-line-height: 1.6 !default;
+$paragraph-margin-bottom: rem-calc(20) !default;
+$paragraph-aside-font-size: rem-calc(14) !default;
+$paragraph-aside-line-height: 1.35 !default;
+$paragraph-aside-font-style: italic !default;
+$paragraph-text-rendering: optimizeLegibility !default;
+
+// We use these to style <code> tags
+$code-color: grayscale($primary-color) !default;
+$code-font-family: Consolas, 'Liberation Mono', Courier, monospace !default;
+$code-font-weight: $font-weight-normal !default;
+$code-background-color: scale-color($secondary-color, $lightness: 70%) !default;
+$code-border-size: 1px !default;
+$code-border-style: solid !default;
+$code-border-color: scale-color($code-background-color, $lightness: -10%) !default;
+$code-padding: rem-calc(2) rem-calc(5) rem-calc(1) !default;
+$code-line-height: 1.75em !default;
+
+// We use these to style anchors
+$anchor-text-decoration: none !default;
+$anchor-text-decoration-hover: none !default;
+$anchor-font-color: $primary-color !default;
+$anchor-font-color-hover: scale-color($anchor-font-color, $lightness: -14%) !default;
+
+// We use these to style the <hr> element
+$hr-border-width: 1px !default;
+$hr-border-style: solid !default;
+$hr-border-color: #ddd !default;
+$hr-margin: rem-calc(20) !default;
+
+// We use these to style lists
+$list-font-family: $paragraph-font-family !default;
+$list-font-size: $paragraph-font-size !default;
+$list-line-height: $paragraph-line-height !default;
+$list-margin-bottom: $paragraph-margin-bottom !default;
+$list-style-position: outside !default;
+$list-side-margin: 1.1rem !default;
+$list-ordered-side-margin: 1.4rem !default;
+$list-side-margin-no-bullet: 0 !default;
+$list-nested-margin: rem-calc(20) !default;
+$definition-list-header-weight: $font-weight-bold !default;
+$definition-list-header-margin-bottom: .3rem !default;
+$definition-list-margin-bottom: rem-calc(12) !default;
+
+// We use these to style blockquotes
+$blockquote-font-color: scale-color($header-font-color, $lightness: 35%) !default;
+$blockquote-padding: rem-calc(9 20 0 19) !default;
+$blockquote-border: 1px solid #ddd !default;
+$blockquote-cite-font-size: rem-calc(13) !default;
+$blockquote-cite-font-color: scale-color($header-font-color, $lightness: 23%) !default;
+$blockquote-cite-link-color: $blockquote-cite-font-color !default;
+
+// Acronym styles
+$acronym-underline: 1px dotted #ddd !default;
+///
+
+@mixin lead {
+ font-size: $paragraph-font-size + rem-calc(3.5);
+ line-height: 1.6;
+}
+
+@mixin subheader {
+ line-height: $subheader-line-height;
+ color: $subheader-font-color;
+ font-weight: $subheader-font-weight;
+ margin-top: $subheader-top-margin;
+ margin-bottom: $subheader-bottom-margin;
+}
+
+@include exports(typography) {
+ /* Typography resets */
+ div,
+ dl,
+ dt,
+ dd,
+ ul,
+ ol,
+ li,
+ h1,
+ h2,
+ h3,
+ h4,
+ h5,
+ h6,
+ pre,
+ form,
+ p,
+ blockquote,
+ th,
+ td {
+ margin:0;
+ padding:0;
+ }
+
+ /* Default Link Styles */
+ a {
+ color: $anchor-font-color;
+ text-decoration: $anchor-text-decoration;
+ line-height: inherit;
+
+ &[ui-sref] {
+ cursor: pointer;
+ }
+
+ &:hover,
+ &:focus {
+ color: $anchor-font-color-hover;
+ @if $anchor-text-decoration-hover != $anchor-text-decoration {
+ text-decoration: $anchor-text-decoration-hover;
+ }
+ }
+
+ img { border:none; }
+ }
+
+ /* Default paragraph styles */
+ p {
+ font-family: $paragraph-font-family;
+ font-weight: $paragraph-font-weight;
+ font-size: $paragraph-font-size;
+ line-height: $paragraph-line-height;
+ margin-bottom: $paragraph-margin-bottom;
+ text-rendering: $paragraph-text-rendering;
+
+ &.lead { @include lead; }
+
+ & aside {
+ font-size: $paragraph-aside-font-size;
+ line-height: $paragraph-aside-line-height;
+ font-style: $paragraph-aside-font-style;
+ }
+ }
+
+ /* Default header styles */
+ h1, h2, h3, h4, h5, h6 {
+ font-family: $header-font-family;
+ font-weight: $header-font-weight;
+ font-style: $header-font-style;
+ color: $header-font-color;
+ text-rendering: $header-text-rendering;
+ margin-top: $header-top-margin;
+ margin-bottom: $header-bottom-margin;
+ line-height: $header-line-height;
+
+ small {
+ font-size: $small-font-size;
+ color: $small-font-color;
+ line-height: 0;
+ }
+ }
+
+ h1 { font-size: $h1-font-size - $h1-font-reduction; }
+ h2 { font-size: $h2-font-size - $h2-font-reduction; }
+ h3 { font-size: $h3-font-size - $h3-font-reduction; }
+ h4 { font-size: $h4-font-size - $h4-font-reduction; }
+ h5 { font-size: $h5-font-size - $h5-font-reduction; }
+ h6 { font-size: $h6-font-size - $h6-font-reduction; }
+
+ .subheader { @include subheader; }
+
+ hr {
+ border: $hr-border-style $hr-border-color;
+ border-width: $hr-border-width 0 0;
+ clear: both;
+ margin: $hr-margin 0 ($hr-margin - rem-calc($hr-border-width));
+ height: 0;
+ }
+
+ /* Helpful Typography Defaults */
+ em,
+ i {
+ font-style: italic;
+ line-height: inherit;
+ }
+
+ strong,
+ b {
+ font-weight: $font-weight-bold;
+ line-height: inherit;
+ }
+
+ small {
+ font-size: $small-font-size;
+ color: $small-font-color;
+ line-height: inherit;
+ }
+
+ code {
+ font-family: $code-font-family;
+ font-weight: $code-font-weight;
+ color: $code-color;
+ background-color: $code-background-color;
+ border-width: $code-border-size;
+ border-style: $code-border-style;
+ border-color: $code-border-color;
+ padding: $code-padding;
+ line-height: $code-line-height;
+ }
+
+ /* Lists */
+ ul,
+ ol,
+ dl {
+ font-size: $list-font-size;
+ line-height: $list-line-height;
+ margin-bottom: $list-margin-bottom;
+ list-style-position: $list-style-position;
+ font-family: $list-font-family;
+ }
+
+ /* Lists */
+ ul, ol {
+ margin-left: $list-side-margin;
+ li {
+ ul,
+ ol {
+ margin-left: $list-nested-margin;
+ margin-bottom: 0;
+ }
+ }
+ }
+
+ /* Lists without bullets */
+ ul.no-bullet {
+ &, li ul, li ol {
+ list-style-type: none;
+ }
+ margin-left: $list-side-margin-no-bullet;
+ }
+
+ /* Definition Lists */
+ dl {
+ dt {
+ margin-bottom: $definition-list-header-margin-bottom;
+ font-weight: $definition-list-header-weight;
+ }
+ dd { margin-bottom: $definition-list-margin-bottom; }
+ }
+
+ /* Abbreviations */
+ abbr,
+ acronym {
+ text-transform: uppercase;
+ font-size: 90%;
+ color: var(--body-font-color);
+ border-bottom: $acronym-underline;
+ cursor: help;
+ }
+ abbr {
+ text-transform: none;
+ }
+
+ /* Blockquotes */
+ blockquote {
+ margin: 0 0 $paragraph-margin-bottom;
+ padding: $blockquote-padding;
+ border-left: $blockquote-border;
+
+ cite {
+ display: block;
+ font-size: $blockquote-cite-font-size;
+ color: $blockquote-cite-font-color;
+ &:before {
+ content: "\2014 \0020";
+ }
+
+ a,
+ a:visited {
+ color: $blockquote-cite-link-color;
+ }
+ }
+ }
+ blockquote,
+ blockquote p {
+ line-height: $paragraph-line-height;
+ color: $blockquote-font-color;
+ }
+
+ @include breakpoint(medium) {
+ h1,h2,h3,h4,h5,h6 { line-height: $header-line-height; }
+ h1 { font-size: $h1-font-size; }
+ h2 { font-size: $h2-font-size; }
+ h3 { font-size: $h3-font-size; }
+ h4 { font-size: $h4-font-size; }
+ h5 { font-size: $h5-font-size; }
+ h6 { font-size: $h6-font-size; }
+ }
+}