diff options
Diffstat (limited to 'addons/web/static/src/scss')
| -rw-r--r-- | addons/web/static/src/scss/dropdown_menu.scss | 3 | ||||
| -rw-r--r-- | addons/web/static/src/scss/fields.scss | 26 | ||||
| -rw-r--r-- | addons/web/static/src/scss/fontawesome_overridden.scss | 41 | ||||
| -rw-r--r-- | addons/web/static/src/scss/kanban_view.scss | 6 | ||||
| -rw-r--r-- | addons/web/static/src/scss/list_view.scss | 5 | ||||
| -rw-r--r-- | addons/web/static/src/scss/pivot_view.scss | 10 | ||||
| -rw-r--r-- | addons/web/static/src/scss/search_view.scss | 6 | ||||
| -rw-r--r-- | addons/web/static/src/scss/web_calendar.scss | 10 |
8 files changed, 34 insertions, 73 deletions
diff --git a/addons/web/static/src/scss/dropdown_menu.scss b/addons/web/static/src/scss/dropdown_menu.scss index 6537b5b2569..7ce7412b6d0 100644 --- a/addons/web/static/src/scss/dropdown_menu.scss +++ b/addons/web/static/src/scss/dropdown_menu.scss @@ -36,11 +36,10 @@ font-weight: bold; &:before { - font-family: 'Font Awesome 5 Free'; + font-family: FontAwesome; position: absolute; left: 4px; content: "\f00c"; - font-weight: 900; } } .o_trash_button { diff --git a/addons/web/static/src/scss/fields.scss b/addons/web/static/src/scss/fields.scss index aa726c4c08f..05862d3746f 100644 --- a/addons/web/static/src/scss/fields.scss +++ b/addons/web/static/src/scss/fields.scss @@ -228,10 +228,10 @@ padding-left: 5px; } - &.far.fa-star { + &.fa-star-o { color: $o-main-color-muted; } - &.fas.fa-star { + &.fa-star { color: gold; } } @@ -239,18 +239,16 @@ // Favorite &.o_favorite { - i.fa, - i.far, - i.fas { + i.fa { font-size: 16px; } - i.far.fa-star { + i.fa-star-o { color: $o-main-color-muted; &:hover { color: gold; } } - i.fas.fa-star { + i.fa-star { color: gold; } } @@ -377,26 +375,22 @@ opacity: 0; transition: opacity ease 400ms; - > button.fa, - > button.far, - > button.fas { + > button.fa { border: none; background-color: transparent; } - > .fa, - > .far, - > .fas { + > .fa { padding: 4px; + margin: 5px; + cursor: pointer; } } @include media-breakpoint-down(xs, $o-extra-grid-breakpoints) { .o_form_image_controls{ position: initial; opacity: 1; - > .fa, - > .far, - > .fas{ + > .fa{ width: 50%; padding: 6px; margin: 0px; diff --git a/addons/web/static/src/scss/fontawesome_overridden.scss b/addons/web/static/src/scss/fontawesome_overridden.scss index 61e88be3fc3..a234dbc9f81 100644 --- a/addons/web/static/src/scss/fontawesome_overridden.scss +++ b/addons/web/static/src/scss/fontawesome_overridden.scss @@ -1,15 +1,15 @@ // This is rtl language specific fix // It will override the font awesome symbols and flip them 180 degree .o_rtl { - .fa, .far, .fas, .fab { + .fa { &.fa-align-right, &.fa-align-left, &.fa-chevron-right, &.fa-chevron-left, &.fa-arrow-right, &.fa-arrow-left, - &.fa-hand-point-right, - &.fa-hand-point-left, + &.fa-hand-o-right, + &.fa-hand-o-left, &.fa-arrow-circle-right, &.fa-arrow-circle-left, &.fa-caret-right, @@ -24,32 +24,15 @@ &.fa-quote-left, &.fa-chevron-circle-right, &.fa-chevron-circle-left, - &.fa-long-arrow-alt-right, - &.fa-long-arrow-alt-left, - &.fa-caret-square-right, - &.fa-caret-square-left, - &.fa-arrow-alt-circle-left, - &.fa-arrow-alt-circle-right { + &.fa-long-arrow-right, + &.fa-long-arrow-left, + &.fa-toggle-right, + &.fa-toggle-left, + &.fa-caret-square-o-right, + &.fa-arrow-circle-o-left, + &.fa-arrow-circle-o-right, + &.fa-caret-square-o-left { transform: rotate(180deg); } } -} - -.fa, .fas { - font-weight: 900 !important; -} - -.far { - font-weight: 400 !important; -} - -.fa-phone { - transform: rotate(90deg); -} - -.fa-clock { - transform: rotateY(180deg); - + * { - transform: rotate(0deg); - } -} +}
\ No newline at end of file diff --git a/addons/web/static/src/scss/kanban_view.scss b/addons/web/static/src/scss/kanban_view.scss index e04431eab6e..d65a8d4fa1c 100644 --- a/addons/web/static/src/scss/kanban_view.scss +++ b/addons/web/static/src/scss/kanban_view.scss @@ -97,10 +97,6 @@ } .o_kanban_record_bottom { - .fa, .far, .fas, .fab { - font-size: 15px; - } - .oe_kanban_bottom_left, .oe_kanban_bottom_right { display: flex; align-items: center; @@ -116,7 +112,7 @@ .o_priority_star { margin-top: 1px; - font-size: 15px; + font-size: 18px; } } .oe_kanban_bottom_right{ diff --git a/addons/web/static/src/scss/list_view.scss b/addons/web/static/src/scss/list_view.scss index 86e4eefc0b0..c9562df798b 100644 --- a/addons/web/static/src/scss/list_view.scss +++ b/addons/web/static/src/scss/list_view.scss @@ -65,9 +65,8 @@ user-select: none; // Prevent unwanted selection while sorting &::after { - font-family: 'Font Awesome 5 Free'; + font-family: FontAwesome; content: "\f0d7"; - font-weight: 900; opacity: 0; } &:not(:empty)::after { @@ -77,14 +76,12 @@ cursor: n-resize; &::after { content: "\f0d7"; - font-weight: 900; } } &.o-sort-down { cursor: s-resize; &::after { content: "\f0d8"; - font-weight: 900; } } &:hover::after { diff --git a/addons/web/static/src/scss/pivot_view.scss b/addons/web/static/src/scss/pivot_view.scss index 8ec49cb0455..d67607fe558 100644 --- a/addons/web/static/src/scss/pivot_view.scss +++ b/addons/web/static/src/scss/pivot_view.scss @@ -61,20 +61,18 @@ .o_pivot_header_cell_closed { @include o-pivot-header-cell; &::before { - font-family: 'Font Awesome 5 Free'; - content: "\f067"; + font-family: FontAwesome; + content: ""; margin-right: 8px; - font-weight: 900; } } .o_pivot_header_cell_opened { @include o-pivot-header-cell; &::before { - font-family: 'Font Awesome 5 Free'; - content: "\f068"; + font-family: FontAwesome; + content: ""; margin-right: 8px; - font-weight: 900; } } diff --git a/addons/web/static/src/scss/search_view.scss b/addons/web/static/src/scss/search_view.scss index 4aafbc74afb..3a4aaae28dc 100644 --- a/addons/web/static/src/scss/search_view.scss +++ b/addons/web/static/src/scss/search_view.scss @@ -8,10 +8,6 @@ position: relative; padding: 0 20px 1px 0; - .fa, .fas, .far { - font-size: 10px; - } - .o_searchview_more { font-size: 16px; cursor: pointer; @@ -206,7 +202,7 @@ } } .o-searchview-custom-public a:after { - font-family: 'Font Awesome 5 Free'; + font-family: FontAwesome; content: "\f0c0"; margin-left: 5px; font-weight: normal; diff --git a/addons/web/static/src/scss/web_calendar.scss b/addons/web/static/src/scss/web_calendar.scss index 3dfbea15df2..1a5bdf5c078 100644 --- a/addons/web/static/src/scss/web_calendar.scss +++ b/addons/web/static/src/scss/web_calendar.scss @@ -421,14 +421,12 @@ $o-cw-filter-avatar-size: 20px; color: transparent; &:before { - font: normal normal normal 13px/1 'Font Awesome 5 Free'; + font: normal normal normal 13px/1 FontAwesome; content: "\f053"; color: gray('400'); - font-weight: 900; } &.ui-icon-circle-triangle-e:before { - content: "\f054"; - font-weight: 900; + content: "\f054" } } @@ -489,7 +487,7 @@ $o-cw-filter-avatar-size: 20px; input:not(:checked) + label .o_cw_filter_input_bg { background: transparent!important; - i.fa, i.far, i.fas { + i.fa { visibility: hidden; } } @@ -499,7 +497,7 @@ $o-cw-filter-avatar-size: 20px; @include size($o-cw-filter-avatar-size); border-radius: 2px; - &.fa, &.far, &.fas { + &.fa { padding: 4px 3px; } } |
