From c7ee1e00d034e8105cfcbeb28d31eaefbfb02ee9 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 19 Sep 2023 13:37:20 +0000 Subject: [PATCH] Bug 34392: Run automated Stylelint fixes on staff CSS This patch corrects errors raised by the new stylelint configuration in staff-global.scss. Many of the fixes were made automatically by using the "--fix" option: npx stylelint koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss --fix Some examples of errors found: - Expected single space after ":" - Expected single space after "(" - Expected single space before ")" - Expected empty line before comment - Expected no more than 1 empty line - Expected a trailing semicolon Manual fixes include replacing named colors with hex codes, combining duplicate selectors, removing empty blocks, etc. Some warnings remain: "Unexpected !important" requires more than a quick fix, if we should choose to address them. To test, apply the patch and rebuild the staff interface CSS: https://wiki.koha-community.org/wiki/Working_with_SCSS_in_the_OPAC_and_staff_client The changes affect CSS all around the staff interface, but there should be no visible results of the patch. Everything should look correct. The stylelint check should return only warnings about "!important" npx stylelint koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss Signed-off-by: Sam Lau Signed-off-by: Martin Renvoize --- .../prog/css/src/staff-global.scss | 1014 +++++++++-------- 1 file changed, 513 insertions(+), 501 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss index 029ed50d4b..a4d736c3d9 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss +++ b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss @@ -43,21 +43,21 @@ a { } &.authlink { - background-color: #e3f1df; + background-color: #E3F1DF; border-radius: 5px; display: inline-block; padding: 2px 4px; } &.edit-patronimage { + background-color: #E6E6E6; + border-color: #ADADAD; color: #333; - background-color: #e6e6e6; - border-color: #adadad; - &:hover{ - text-decoration: none; + &:hover { + background-color: #DADADA; color: #333; - background-color: #dadada; + text-decoration: none; } } @@ -79,48 +79,53 @@ a { } } + .ctrl_link { + display: inline-block; + padding-right: 1rem; + } + &.settings { - i, img { - text-align: center; - color: $green-text-color; + i, + img { + align-items: center; + background-color: transparent; border: solid 3px $background-color-secondary; border-radius: 50%; - background-color: transparent; - width: 40px; + box-sizing: content-box; + color: $green-text-color; + display: flex; height: 40px; + justify-content: center; margin-bottom: 5px; margin-left: auto; margin-right: auto; padding: 5px; - align-items: center; - justify-content: center; - box-sizing: content-box; - display: flex; - + text-align: center; + width: 40px; } &:hover { color: $green-text-color; - text-decoration: none; font-weight: bold; + text-decoration: none; - i, img { - border-color: $background-color-primary; + i, + img { background-color: transparent; + border-color: $background-color-primary; color: $green-text-color; } - } img { - max-width: 30px; height: auto; + max-width: 30px; padding: 10px; } } &.csv { - background-image: url("../img/famfamfam/silk/page_white_excel.png"); + background-image: url( "../img/famfamfam/silk/page_white_excel.png" ); } &.dropdown-toggle { @@ -157,11 +162,12 @@ a { } &.pdf { - background-image: url("../img/famfamfam/silk/page_white_acrobat.png"); + background-image: url( "../img/famfamfam/silk/page_white_acrobat.png" ); } &.submit { @include default-button; + display: inline-block; &:active { @@ -178,24 +184,15 @@ a { } &.xml { - background-image: url("../img/famfamfam/silk/page_white_code.png"); + background-image: url( "../img/famfamfam/silk/page_white_code.png" ); } } - #resetZ3950Search { - font-size: 110%; color: $green-text-color; + font-size: 110%; } -a { - .ctrl_link { - display: inline-block; - padding-right: 1rem; - } -} - - aside { h5 { font-size: 100%; @@ -231,7 +228,7 @@ aside { input[type="text"], select { - height: calc(1.5em + .75rem + 2px); + height: calc( 1.5em + .75rem + 2px ); } label { @@ -294,16 +291,18 @@ aside { .flatpickr-input { margin-right: 3px; - width: calc(100% - 20px); + width: calc( 100% - 20px ); } - &+.action { + & + .action { background-color: #FFF; display: flex; margin-left: 0; padding: 1rem; - input, button, a { + input, + button, + a { display: block; flex-grow: 1; } @@ -312,17 +311,19 @@ aside { } } -#menu, #navmenulist, #serialmenu { - background-color: #e6e6e6; +#menu, +#navmenulist, +#serialmenu { + background-color: #E6E6E6; display: block; padding: 1em 0 1em 0; h5 { - padding-left: .5em; color: #666; - font-weight: bold; font-size: 1.3em; + font-weight: bold; margin-top: 0; + padding-left: .5em; } ul { @@ -340,21 +341,21 @@ aside { border-left: 5px solid #E6E6E6; color: #000; display: block; - text-decoration: none; padding: .7em .3em .7em 1.2em; + text-decoration: none; } &.active > a, a:hover, a.current { background-color: #F3F4F4; - text-decoration: none; - color: $green-text-color; border-left: solid 5px $background-color-primary; + color: $green-text-color; font-weight: bold; + text-decoration: none; } - a:hover:not(.current) { + a:hover:not( .current ) { border-left: solid 5px $background-color-secondary; font-weight: normal; } @@ -367,12 +368,10 @@ aside { } } -#admin_preferences #menu{ - +#admin_preferences #menu { ul { - ul { - background-color: #f3f4f4; + background-color: #F3F4F4; font-size: 85%; } } @@ -385,10 +384,9 @@ div { display: inline; } - &.koha-mainpage { - display: flex; align-items: center; + display: flex; justify-content: center; } @@ -399,11 +397,11 @@ div { float: right; li { + height: auto; list-style-type: none; margin-bottom: 0; - height: auto; - width: 150px; padding: 5px 10px; + width: 150px; a, a:visited, @@ -413,6 +411,199 @@ div { } } } + + &.action { + background-color: transparent; + border: 0; + clear: both; + float: none; + margin: .9em 0 0; + padding: .4em; + width: auto; + } + + .renew_formfield { + margin-bottom: 1em; + } + + .circmessage { + padding: .4em; + + .circmessage { + margin-bottom: .3em; + } + } + + &.first { + fieldset { + margin-right: 0; + } + } + + &.help { + margin: .9em 0 0; + } + + &.justify { + text-align: justify; + } + + &.note { + background-color: #CFE2FF; + margin: .5em 0; + padding: .5em; + + i { + &.fa-exclamation { + color: $warning-text-color; + font-style: italic; + padding: 0 .3em; + } + } + } + + // Tools > automatic_item_modification_by_age + &.rules { + display: block; + } + + &[class$="_table_controls"] { + padding: .7em 0; + } + + &.results { + padding: .7em 0; + } + + &.rule { + background-color: #F4F8F9; + border: 2px solid #BFD9B9; + border-radius: 5px; + margin: .3em; + padding: .3em; + } + + &.lastchecked { + background-color: #FFF; + border: 2px solid #BCDB89; + padding: .2em 1em; + } + + &.listgroup { + clear: left; + + h4 { + font-style: italic; + + a { + font-size: 80%; + } + } + } + + &.sysprefs { + h3 { + margin: .2em 0 .2em .4em; + } + + dl { + margin-left: 1.5em; + } + + &.hint { + float: right; + margin: .7em; + padding: .5em; + width: 25%; + } + } + + &.rows { + margin: 0; + padding: 0; + width: 100%; + + + div { + &.rows { + margin-top: .6em; + } + } + + li { + border-bottom: 1px solid #EEE; + list-style-type: none; + padding: .275em; + width: 100%; + } + + ol { + list-style-type: none; + padding: .5em 1em 0 0; + + li { + li { + border-bottom: 0; + } + } + } + + p { + margin-left: 10em; + } + + span { + &.label { + display: inline-block; + font-weight: bold; + margin-right: 1em; + padding-top: 0; + text-align: left; + vertical-align: top; + white-space: normal; + width: 9em; + } + } + } + + &.pages { + margin: .5em 0; + + a { + font-weight: bold; + padding: 1px 5px; + text-decoration: none; + + &:link, + &:visited { + background-color: #EEEEEE; + color: #3366CC; + } + + &:hover, + &:active { + background-color: #FFC; + } + } + + .current, + .currentPage { + background-color: #E6FCB7; + color: #666; + font-weight: bold; + padding: 1px 5px; + } + + .inactive { + background-color: #F3F3F3; + color: #BCBCBC; + font-weight: bold; + padding: 1px 5px; + } + } + + .browse { + margin: .5em 0; + } } button { @@ -447,12 +638,12 @@ main { } body { + background-color: #F3F4F4; font-family: $font-family-sans-serif; font-size: 13px; line-height: 1.22; padding: 0 0 4em; text-align: left; - background-color: #F3F4F4; &.nobackdrop { .modal-backdrop { @@ -490,7 +681,7 @@ form { } .notification_method, - #main_contact_method { + #main_contact_method { background-color: #FFE; border: 1px solid #CCC; border-radius: 5px; @@ -516,15 +707,15 @@ h1 { } h2 { + color: #696969; font-size: 150%; font-weight: bold; - color: #696969; } h3 { + color: #696969; font-size: 131%; font-weight: bold; - color: #696969; } h4 { @@ -595,12 +786,14 @@ textarea { input { &[type="submit"] { @include primary-button; + padding: .5em 1em; } &[type="reset"], &[type="button"] { @include default-button; + padding: .5em 1em; &:disabled { @@ -616,6 +809,7 @@ input { &.submit { @include primary-button; + padding: .5em 1em; &:disabled { @@ -678,7 +872,8 @@ label, margin-top: 1em; } -.main, main { +.main, +main { & > .row > div > aside { margin-left: -15px; } @@ -794,11 +989,11 @@ fieldset { } &.standard { - background-color:#F4F8F9 !important; + background-color: #F4F8F9 !important; } &.contrast { - background-color:#F3F3F3 !important; + background-color: #F3F3F3 !important; } &.action { @@ -877,7 +1072,6 @@ fieldset { } } - ol { li { list-style-type: none; @@ -887,14 +1081,14 @@ fieldset { div { &.help-block { + color: #737373; display: block; - margin-top: 5px; margin-bottom: 10px; - color: #737373; + margin-top: 5px; li { - list-style-type: unset; list-style-position: inside; + list-style-type: unset; } } } @@ -927,9 +1121,8 @@ details[open] { } } - #floating-save { - background-color: rgba(185, 216, 217, .6); + background-color: rgba( 185, 216, 217, .6 ); bottom: 3%; position: fixed; right: 1%; @@ -941,7 +1134,8 @@ details[open] { justify-content: space-between; } -#breadcrumbs, #shortcut { +#breadcrumbs, +#shortcut { background-color: transparent; clear: both; margin: 0; @@ -956,15 +1150,15 @@ details[open] { #breadcrumbs a[href="/cgi-bin/koha/mainpage.pl"] { color: $green-text-color; - visibility: hidden; font-size: 1px; letter-spacing: -1px; + visibility: hidden; &::before { content: "\f015"; font-family: "Font Awesome 6 Free"; - font-style: normal; font-size: 12px; + font-style: normal; padding-right: .3em; visibility: visible; } @@ -984,201 +1178,6 @@ details[open] { } } -div { - &.action { - background-color: transparent; - border: 0; - clear: both; - float: none; - margin: .9em 0 0; - padding: .4em; - width: auto; - } - - .renew_formfield { - margin-bottom: 1em; - } - - .circmessage { - padding: .4em; - - .circmessage { - margin-bottom: .3em; - } - } - - &.first { - fieldset { - margin-right: 0; - } - } - - &.help { - margin: .9em 0 0; - } - - &.justify { - text-align: justify; - } - - &.note { - background-color: #CFE2FF; - margin: .5em 0; - padding: .5em; - - i { - &.fa-exclamation { - color: $warning-text-color; - font-style: italic; - padding: 0 .3em; - } - } - } - - // Tools > automatic_item_modification_by_age - &.rules { - display: block; - } - - &[class$="_table_controls"] { - padding: .7em 0; - } - - &.results { - padding: .7em 0; - } - - &.rule { - background-color: #F4F8F9; - border: 2px solid #bfd9b9; - border-radius: 5px; - margin: .3em; - padding: .3em; - } - - &.lastchecked { - background-color: #FFF; - border: 2px solid #BCDB89; - padding: .2em 1em; - } - - &.listgroup { - clear: left; - - h4 { - font-style: italic; - - a { - font-size: 80%; - } - } - } - - &.sysprefs { - h3 { - margin: .2em 0 .2em .4em; - } - - dl { - margin-left: 1.5em; - } - - &.hint { - float: right; - margin: .7em; - padding: .5em; - width: 25%; - } - } - - &.rows { - margin: 0; - padding: 0; - width: 100%; - - + div { - &.rows { - margin-top: .6em; - } - } - - li { - border-bottom: 1px solid #EEE; - list-style-type: none; - padding: .275em; - width: 100%; - } - - ol { - list-style-type: none; - padding: .5em 1em 0 0; - - li { - li { - border-bottom: 0; - } - } - } - - p { - margin-left: 10em; - } - - span { - &.label { - display: inline-block; - font-weight: bold; - margin-right: 1em; - padding-top: 0; - text-align: left; - vertical-align: top; - width: 9em; - white-space: normal; - } - } - } - - &.pages { - margin: .5em 0; - - a { - font-weight: bold; - padding: 1px 5px; - text-decoration: none; - - &:link, - &:visited { - background-color: #EEEEEE; - color: #3366CC; - } - - &:hover, - &:active { - background-color: #FFC; - } - } - - .current, - .currentPage { - background-color: #E6FCB7; - color: #666; - font-weight: bold; - padding: 1px 5px; - } - - .inactive { - background-color: #F3F3F3; - color: #BCBCBC; - font-weight: bold; - padding: 1px 5px; - } - } - - .browse { - margin: .5em 0; - } -} - #sales { display: none; } @@ -1218,21 +1217,20 @@ dd { } } - .patroninfo { - margin-right: .5em; - padding-top: 1em; - background-color: #e6e6e6; + background-color: #E6E6E6; color: #000; left: -10px; - width: 100%; + margin-right: .5em; padding-bottom: 25px; + padding-top: 1em; + width: 100%; h5 { + color: #000; + font-weight: bold; margin-bottom: 0; padding: .5em .9em; - font-weight: bold; - color: #000; &:empty { border-right: 0; @@ -1256,7 +1254,6 @@ dd { li { list-style-type: none; margin: 0; - } } @@ -1270,9 +1267,9 @@ dd { } .patroninfo-heading { - padding: .5em; - margin-bottom: .3em; clear: both; + margin-bottom: .3em; + padding: .5em; h3 { display: inline-block; @@ -1303,8 +1300,8 @@ dd { .patronimage { border: 1px solid #EEE; display: block; - max-width: 160px; margin: auto; + max-width: 160px; opacity: 1; transition: .2s ease; @@ -1328,21 +1325,22 @@ dd { .patronimage-control { padding: 1em 2em; - } +} -#patronImageEdit input[type="file" ] { +#patronImageEdit input[type="file"] { display: inline-block; } -#addColumn, #delColumn{ - color: $green-text-color; - padding: .3em; - border: none; +#addColumn, +#delColumn { background-color: transparent; + border: none; box-shadow: none; + color: $green-text-color; font-size: 100%; + padding: .3em; - &:hover{ + &:hover { text-decoration: underline; } } @@ -1381,12 +1379,11 @@ dd { } } } - } .readonly, -input[type='text']:read-only { - background: #EEE url("../img/locked.png") center left no-repeat; +input[type="text"]:read-only { + background: #EEE url( "../img/locked.png" ) center left no-repeat; border-style: inset; border-width: 1px; cursor: default; @@ -1394,7 +1391,7 @@ input[type='text']:read-only { } .readonly:focus, -input[type='text']:read-only:focus { +input[type="text"]:read-only:focus { border-color: unset; border-radius: unset; } @@ -1409,7 +1406,7 @@ input[type='text']:read-only:focus { } .important_subfield_not_filled { - background-color : #FFFFCC; + background-color: #FFFFCC; } .content_hidden { @@ -1490,8 +1487,8 @@ i { } .circ-settings { - border-top: 2px solid #EEE; border-radius: 0; + border-top: 2px solid #EEE; display: none; margin-left: -1em; margin-right: -1em; @@ -1501,16 +1498,16 @@ i { #show-circ-settings { display: inline; + opacity: .5; position: relative; right: 25px; - opacity: .5; &:hover { opacity: 1; } a { - color: rgb(105, 105, 105); + color: rgb( 105, 105, 105 ); &:hover { text-decoration: none; @@ -1521,7 +1518,7 @@ i { .checkin-active-setting { background-color: #FFC; border-radius: 3px; - box-shadow: 1px 1px 2px 0 rgba(102, 102, 102, .5); + box-shadow: 1px 1px 2px 0 rgba( 102, 102, 102, .5 ); margin: .5em; padding: .5em; } @@ -1531,8 +1528,11 @@ i { } .form-group { + margin-bottom: 10px; + label { display: block; + font-weight: bold; margin-bottom: 5px; } @@ -1562,10 +1562,10 @@ i { .dialog { margin: 1em auto; + max-width: 600px; padding: .5em; text-align: center; width: 65%; - max-width: 600px; a { &.approve { @@ -1611,44 +1611,43 @@ i { &.approve { background-color: #FEC32C; - color: #000; - border: 0; background-image: none; + border: 0; + color: #000; margin-top: 5px; &:hover, &:active, &:focus { - background-color: #fec22c9f; + background-color: #FEC22C9F; } } &.deny { background-color: transparent; - color: #696969; + background-image: none; border: #696969 double 1px; - margin-top: 5px; - margin-left: 5px; - + border-radius: 4px; + color: #696969; + cursor: pointer; display: inline-block; - margin-bottom: 0; + font-size: 12px; font-weight: normal; + line-height: 1.4286; + margin-bottom: 0; + margin-left: 5px; + margin-top: 5px; + padding: 6px 12px; text-align: center; - white-space: nowrap; - vertical-align: middle; touch-action: manipulation; - cursor: pointer; - background-image: none; - padding: 6px 12px; - font-size: 12px; - line-height: 1.42857143; - border-radius: 4px; user-select: none; + vertical-align: middle; + white-space: nowrap; &:hover { - font-weight: bold; background-color: #F1F1F1; border: #696969 double 1px; + font-weight: bold; text-decoration: none; } } @@ -1665,7 +1664,8 @@ i { p { margin-top: 0; - &+p { + + & + p { margin-top: 5px; } } @@ -1721,10 +1721,10 @@ i { } } - .approve, .success { background-color: #FEC32C; + i { &.fa { color: $green-text-color; @@ -1752,7 +1752,7 @@ i { i { &.fa-exclamation-triangle { color: #FFD700; - text-shadow: 0 -1px 0 rgba( 0, 0, 0, .3); + text-shadow: 0 -1px 0 rgba( 0, 0, 0, .3 ); } } } @@ -1792,14 +1792,14 @@ i { } .barcode { + border-radius: 0; font-size: 100%; - vertical-align: middle; font-style: italic; - width: 250px; height: 30px; padding-left: 5px; padding-right: 30px; - border-radius: 0; + vertical-align: middle; + width: 250px; } li { @@ -1864,16 +1864,19 @@ li { } & + p { - border-top: 1px solid #eee; + border-top: 1px solid #EEE; margin-top: 1em; padding-top: 1em; } } -#catalogue_stats_wrapper, #tbl_cash_register_stats_wrapper, #resulttable_wrapper, #numberpatternst_wrapper { +#catalogue_stats_wrapper, +#tbl_cash_register_stats_wrapper, +#resulttable_wrapper, +#numberpatternst_wrapper { background-color: #FFFFFF; + box-shadow: 8px 8px 12px rgba( 170, 170, 170, .356 ); margin-top: 20px; - box-shadow: 8px 8px 12px rgba(170, 170, 170, .356); padding: 20px; } @@ -1881,27 +1884,27 @@ li { background-color: #FFFFFF; margin-top: 20px; min-width: 100%; - width: fit-content; padding: 20px; + width: fit-content; fieldset { box-shadow: none; } - h3{ - padding-bottom: .7em; - margin: 0; + h3 { color: #696969; + margin: 0; + padding-bottom: .7em; } td { ul { li { clear: left; + color: #000; font-size: 90%; - list-style: url("../img/item-bullet.svg"); + list-style: url( "../img/item-bullet.svg" ); padding: .2em 0; - color: #000; top: 100%; &.result_itype_image { @@ -1952,6 +1955,7 @@ li { ul { margin: 0; padding-left: 0; + li { clear: none; float: left; @@ -1972,31 +1976,31 @@ li { color: #000; &:hover { + background-color: #FFFFFF; background-image: none; color: #000; text-decoration: underline; - background-color: #FFFFFF; } } } } .searchheader { - background-color: #f3f4f4; - box-shadow: 0 0 2px 1px rgba(0,0,0,.2); + background-color: #F3F4F4; + box-shadow: 0 0 2px 1px rgba( 0, 0, 0, .2 ); + color: #696969; + display: block; font-size: 80%; - margin-top: .5em; margin-bottom: .5em; + margin-top: .5em; padding: 5px; width: 100%; - color: #696969; - display: block; &.floating { border-radius: 0; - box-shadow: 0 0 2px 1px rgba(0,0,0,.4); - margin-top: 0; + box-shadow: 0 0 2px 1px rgba( 0, 0, 0, .4 ); margin-bottom: 0; + margin-top: 0; z-index: 100; } @@ -2056,10 +2060,8 @@ li { width: 30px; } - - #search-facets { - background-color: #e6e6e6; + background-color: #E6E6E6; h4 { background-color: $background-color-primary; @@ -2105,15 +2107,15 @@ li { } #biblio-cover-slider { - border: 1px solid #bfd9b9; + border: 1px solid #BFD9B9; border-radius: 3px; margin: 5px; - padding: 10px 5px 5px 5px; min-height: 175px; + padding: 10px 5px 5px 5px; } .cover-slides { - background: #FFF url("../img/spinner-small.gif") center center no-repeat; + background: #FFF url( "../img/spinner-small.gif" ) center center no-repeat; .hint { font-size: 90%; @@ -2124,7 +2126,7 @@ li { &.nav-active { &:link, &:visited { - color: #85ca11; + color: #85CA11; } } } @@ -2134,8 +2136,9 @@ td { &.actions { white-space: nowrap; } + &.bookcoverimg { - background: #FFF url("../img/spinner-small.gif") center center no-repeat; + background: #FFF url( "../img/spinner-small.gif" ) center center no-repeat; min-width: 120px; text-align: center; } @@ -2160,20 +2163,18 @@ td { } .highlight_toggle { - color: $green-text-color; - padding: .3em; - border: 0; background-color: transparent; border: 0; box-shadow: none; + color: $green-text-color; font-size: 100%; + padding: .3em; &:hover { text-decoration: underline; } } - .cover-image { display: none; @@ -2206,9 +2207,9 @@ td { #CheckAll, #CheckNone, #CheckPending { + color: $green-text-color; font-weight: normal; margin: 0 .5em 0 0; - color: $green-text-color; } .lost, @@ -2218,10 +2219,6 @@ td { display: block; } -.bundled { - display: block; -} - td.bundle { background-color: #FFC !important; } @@ -2272,7 +2269,7 @@ td.bundle { tbody { tr { - &:nth-child(2n+1) { + &:nth-child( 2n+1 ) { td { background-color: #FFFFFF; } @@ -2344,8 +2341,8 @@ td.bundle { } #cartmenulink { - position: relative; left: 0; + position: relative; top: 0; } @@ -2398,7 +2395,7 @@ td.bundle { text-decoration: none; &:hover { - background-color: lighten( $background-color-secondary, 40 ) + background-color: lighten( $background-color-secondary, 40 ); } } } @@ -2565,7 +2562,7 @@ td.bundle { #acqui_order_supplierlist { .supplier { - &+.supplier { + & + .supplier { border-top: 1px solid #EEEEEE; margin-top: 1em; } @@ -2598,14 +2595,14 @@ td.bundle { // Override core jQueryUI widgets .ui-widget-content { background: #FFFFFF none; - border-radius: 4px; border: 1px solid $background-color-secondary; + border-radius: 4px; color: #222222; } // Override jQuery Autocomplete .ui-autocomplete { - box-shadow: 0 6px 12px rgba(0,0,0,0.175); + box-shadow: 0 6px 12px rgba( 0, 0, 0, .175 ); cursor: default; position: absolute; z-index: 2000; @@ -2619,11 +2616,12 @@ td.bundle { li { list-style-type: none; + &.ui-menu-item { padding: 5px 1em 5px .4em; &:hover { - background: #e3f1df none; + background: #E3F1DF none; color: #212121; font-weight: normal; } @@ -2639,7 +2637,7 @@ td.bundle { .ui-state-active, .ui-state-focus { - background: #e3f1df none; + background: #E3F1DF none; color: #212121; font-weight: normal; margin: 0; @@ -2650,7 +2648,7 @@ td.bundle { } .ui-autocomplete-loading { - background: #FFF url("../img/spinner-small.gif") right center no-repeat; + background: #FFF url( "../img/spinner-small.gif" ) right center no-repeat; } .toptabs { @@ -2691,7 +2689,6 @@ fieldset > .toptabs { font-style: italic; } - .contents { width: 75%; @@ -2701,8 +2698,8 @@ fieldset > .toptabs { } .t { - font-weight: bold; display: inline; + font-weight: bold; } .r { @@ -2710,7 +2707,6 @@ fieldset > .toptabs { } } - .contentblock { font-size: 95%; line-height: 135%; @@ -2739,8 +2735,8 @@ fieldset > .toptabs { &.jstree-clicked { background: transparent none; - box-shadow: none; border: 0; + box-shadow: none; } } } @@ -2761,7 +2757,7 @@ fieldset > .toptabs { } .pluginname { - background-color: #e3f1df; + background-color: #E3F1DF; cursor: move; margin: .3em; padding-bottom: 4px; @@ -2820,17 +2816,17 @@ nav { margin: 0; ol { + list-style: none; margin: 0; padding-left: 0; - list-style: none; li { + color: $green-text-color; display: inline; - color : $green-text-color; font-style: italic; - &+li::before { - background: transparent url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0iY3VycmVudENvbG9yIiBjbGFzcz0iYmkgYmktY2hldnJvbi1yaWdodCI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNNy4zNyAwbDUuMzUgNy4zYy4yLjIuMi41MSAwIC43bC01LjM4IDhoLTQuMmw1LjY0LTguMzVMMy4xMy4wMXoiLz48L3N2Zz4=") 50% 50% no-repeat; + & + li::before { + background: transparent url( "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0iY3VycmVudENvbG9yIiBjbGFzcz0iYmkgYmktY2hldnJvbi1yaWdodCI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNNy4zNyAwbDUuMzUgNy4zYy4yLjIuMi41MSAwIC43bC01LjM4IDhoLTQuMmw1LjY0LTguMzVMMy4xMy4wMXoiLz48L3N2Zz4=" ) 50% 50% no-repeat; background-size: 8px; content: ""; display: inline-block; @@ -2838,7 +2834,10 @@ nav { width: .8em; } - a:link, a:active, a:hover, a:focus { + a:link, + a:active, + a:hover, + a:focus { padding: .6em .3em; } } @@ -2868,6 +2867,7 @@ nav { a { background-color: transparent; } + &.active { a { &:link, @@ -2885,7 +2885,6 @@ nav { } } - .pagination { margin: .5em 0; } @@ -2912,9 +2911,9 @@ button, } &.btn-info { - color: #fff; background-color: #194EA3; border-color: #0B439D; + color: #FFF; } &.btn-success { @@ -2925,18 +2924,18 @@ button, &.btn-danger { background-color: #CC3333; border-color: #9B2323; - color: #fff; + color: #FFF; } &.btn-danger:hover { - color: #fff; - background-color: #c82333; - border-color: #a81c29; + background-color: #C82333; + border-color: #A81C29; + color: #FFF; } - &.btn-danger:not( :disabled ):not( .disabled ).active, - &.btn-danger:not( :disabled ):not( .disabled ):active { - box-shadow: inset 0 0 0 1px #a81c29; + &.btn-danger:not( :disabled, .disabled ).active, + &.btn-danger:not( :disabled, .disabled ):active { + box-shadow: inset 0 0 0 1px #A81C29; } } @@ -2964,10 +2963,10 @@ button, .panel-title { a { border-radius: 3px; - display: block; - padding: 10px 15px; border-bottom-left-radius: 0; border-bottom-right-radius: 0; + display: block; + padding: 10px 15px; &::before { content: "\f0d7"; @@ -2977,7 +2976,7 @@ button, } &:hover { - background: #e3f1df none; + background: #E3F1DF none; border-bottom-left-radius: 0; border-bottom-right-radius: 0; } @@ -2991,7 +2990,7 @@ button, } &:hover { - background: #e3f1df none; + background: #E3F1DF none; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; } @@ -3000,14 +2999,15 @@ button, } .panel-default { - border: 1px solid #bfd9b9; + border: 1px solid #BFD9B9; + > .panel-heading { background: transparent none; padding: 0; + .panel-collapse { > .panel-body { - border-top-color: #bfd9b9; + border-top-color: #BFD9B9; } } } @@ -3095,8 +3095,8 @@ button, .tooltip-inner { background-color: #FFFFFF; - border: 1px solid rgba(0, 0, 0, .2); - box-shadow: 0 5px 10px rgba(0, 0, 0, .2); + border: 1px solid rgba( 0, 0, 0, .2 ); + box-shadow: 0 5px 10px rgba( 0, 0, 0, .2 ); color: #000; font-size: 120%; padding: 1em; @@ -3105,7 +3105,7 @@ button, } .separator { - color: #bfbfbf; + color: #BFBFBF; padding: 0 .2em; } @@ -3129,7 +3129,6 @@ button, } } - label { .radio &, .checkbox & { @@ -3222,7 +3221,7 @@ label { font-size: 13px; } - > .btn:first-child:not( :last-child ):not( .dropdown-toggle ) { + > .btn:first-child:not( :last-child, .dropdown-toggle ) { border-right: 1px solid darken( saturate( $btn-primary, 15 ), 15 ); } } @@ -3263,7 +3262,7 @@ code { } .tab-content { - background-color: #fff; + background-color: #FFF; border: 0; border-radius: 0; padding: 1em; @@ -3271,15 +3270,12 @@ code { .tab-pane { &.active { - &::after, + @include clearfix; + &::before { content: " "; display: table; } - - &::after { - clear: both; - } } } @@ -3301,7 +3297,9 @@ code { margin-right: .4em; padding: .5em 1em; - &:hover, &:focus, &:active { + &:hover, + &:focus, + &:active { background-color: $background-color-primary; border: 2px solid $background-color-primary; border-bottom: 0; @@ -3341,12 +3339,12 @@ code { } #jobprogress { - background: url("../img/progress.png") -300px 0 no-repeat; + background: url( "../img/progress.png" ) -300px 0 no-repeat; border: 1px solid #666; display: inline-block; height: 10px; width: 200px; - } +} .progress_panel { border: 2px solid #EEE; @@ -3371,7 +3369,7 @@ progress { } span { - background-color: #ecffeb; + background-color: #ECFFEB; border-radius: 5px; display: inline-block; font-size: 75%; @@ -3380,7 +3378,7 @@ progress { white-space: nowrap; &.selected { - background-color: #d2fad0; + background-color: #D2FAD0; } } } @@ -3405,7 +3403,7 @@ progress { } .tag_editor { - background: transparent url("../img/edit-tag.png") top left no-repeat; + background: transparent url( "../img/edit-tag.png" ) top left no-repeat; display: block; float: left; height: 16px; @@ -3433,8 +3431,8 @@ progress { } #browse-return-to-results { - background-color: #e6e6e6; - border: 1px solid lighten($background-color-primary, 30%); + background-color: #E6E6E6; + border: 1px solid lighten( $background-color-primary, 30% ); border-bottom-width: 0; border-top-left-radius: 5px; border-top-right-radius: 5px; @@ -3445,7 +3443,7 @@ progress { .browse-button { background-color: transparent; - border: 1px solid lighten($background-color-primary, 30%); + border: 1px solid lighten( $background-color-primary, 30% ); display: block; overflow: hidden; padding: .4em .6em; @@ -3458,7 +3456,7 @@ a.browse-button { color: $green-text-color; &:hover { - background: #fff; + background: #FFF; } } @@ -3503,7 +3501,6 @@ span { } } - .result-biblio-itemtype { float: right; font-size: 85%; @@ -3523,8 +3520,8 @@ span { } #browse-next { - border-bottom-right-radius: 5px; border-bottom-left-radius: 5px; + border-bottom-right-radius: 5px; } #merge_invoices { @@ -3602,14 +3599,14 @@ input.renew { } .onsite-checkout-only { - background-color: rgba(255, 242, 206, .5); + background-color: rgba( 255, 242, 206, .5 ); border: 1px solid #FFF2CE; border-radius: 4px; } .branchgriditem { background-color: #FFFFFF; - border: 1px solid #bfd9b9; + border: 1px solid #BFD9B9; border-radius: 3px; display: table-cell; float: left; @@ -3636,14 +3633,13 @@ input.renew { #new_rule { background-color: #F4F8F9; - border: 2px solid #bfd9b9; + border: 2px solid #BFD9B9; border-radius: 5px; display: none; margin: .3em; padding: .3em; } - .blocks { margin-bottom: .3em; } @@ -3669,15 +3665,6 @@ input.renew { margin-top: 10px; } -.form-group { - margin-bottom: 10px; - - label { - font-weight: bold; - } -} - - .form-message { background-color: #FFF; border: 1px solid #A4BEDD; @@ -3697,7 +3684,7 @@ input.renew { } #fixedlengthbuilderaction { - border: 3px solid #e3f1df; + border: 3px solid #E3F1DF; left: 80%; padding: 5px; position: relative; @@ -3759,7 +3746,7 @@ input.renew { #search-summary { position: absolute; top: 50%; - transform: translateY(-50%); + transform: translateY( -50% ); } #generic_confirm_search_count { @@ -3768,14 +3755,15 @@ input.renew { #generic_confirm_search { display: block; - visibility: hidden; margin: 1em 0 1em 10em; + visibility: hidden; } #partnerSearch { .modal-dialog { width: 50vw; } + .modal-body { max-height: 70vh; } @@ -3806,7 +3794,8 @@ input.renew { width: 100% !important; } -.ar-title, .hq-title { +.ar-title, +.hq-title { .biblio-title { font-weight: bold; } @@ -3824,41 +3813,44 @@ input.renew { h3 { margin: 30px 0 10px 0; } + .dialog { h3 { margin: 10px 0; } + margin-bottom: 20px; } + .highlight_stage { font-weight: bold; } -} -#catalog_stockrotation .highlight_stage { - font-weight: bold; -} - -#stockrotation { #rota_form { textarea { - width: 300px; height: 100px; + width: 300px; } + #name { width: 300px; } + fieldset { width: auto; } } - #stage_form fieldset, #add_rota_item_form fieldset { + + #stage_form fieldset, + #add_rota_item_form fieldset { width: auto; } + .dialog.alert { ul { margin: 20px 0; } + li { list-style-type: none; } @@ -3866,24 +3858,31 @@ input.renew { } #catalog_stockrotation { + .highlight_stage { + font-weight: bold; + } + .item_select_rota { vertical-align: middle; } + h1 { margin-bottom: 20px; } } -#stockrotation td.actions, #catalog_stockrotation td.actions { +#stockrotation td.actions, +#catalog_stockrotation td.actions { vertical-align: middle; } -#stockrotation .stage, #catalog_stockrotation .stage { +#stockrotation .stage, +#catalog_stockrotation .stage { + background-color: rgba( 0, 0, 0, .1 ); + border-radius: 5px; display: inline-block; - padding: 5px 7px; margin: 3px 0 3px 0; - border-radius: 5px; - background-color: rgba(0, 0, 0, .1); + padding: 5px 7px; } #restriction_form { @@ -3894,6 +3893,7 @@ input.renew { #stage_list_headings { font-weight: bold; + span { padding: 3px; } @@ -3903,46 +3903,57 @@ input.renew { ul { padding-left: 0; } + li { list-style: none; margin-bottom: 5px; + span { padding: 6px 3px; } } + .stagename { - width: 15em; display: inline-block; + width: 15em; } + .stageduration { - width: 10em; display: inline-block; + width: 10em; } + .stageactions { display: inline-block; } - li:nth-child(odd) { + + li:nth-child( odd ) { background-color: #F3F3F3; } + .drag_handle { - margin-right: 6px; cursor: move; + margin-right: 6px; } + .drag_placeholder { + border: 1px dotted #AAA; height: 2em; - border: 1px dotted #aaa; } + h3 { display: inline-block; } + #ajax_status { - display: inline-block; - border: 1px solid #bcbcbc; + background: #F3F3F3; + border: 1px solid #BCBCBC; border-radius: 5px; - padding: 5px; + display: inline-block; margin-left: 10px; - background: #f3f3f3; + padding: 5px; } + #manage_stages_help { margin: 20px 0; } @@ -3961,7 +3972,7 @@ input.renew { .loggedin-menu-label { color: #FFFFFF; font-size: 12px; - line-height: 1.42857143; + line-height: 1.4286; padding: 4px 12px; white-space: nowrap; @@ -3979,9 +3990,10 @@ input.renew { /* ==== MODULE LINKS - Start ==== */ .buttons-list { + max-width: 260px; + /* List containing the module links */ padding: 0; - max-width: 260px; li { /* Standard attributes for the list elements */ @@ -3989,17 +4001,17 @@ input.renew { margin-bottom: 15px; a { - padding: 10px; - background-color: #e0e0e0; + background-color: #E0E0E0; border-radius: 6px; color: #101010; display: block; font-size: 110%; font-weight: bold; + padding: 10px; &:hover { background-color: $background-color-primary; - color: white; + color: #FFF; text-decoration: none; } } @@ -4007,24 +4019,24 @@ input.renew { } .about h2 { - border-bottom: 1px solid #bfd9b9; + border-bottom: 1px solid #BFD9B9; + margin: .5em 0; padding: .5em .2em; - margin: .5em 0; } .columns-2 { - columns: 2 auto; column-gap: 2.5em; + columns: 2 auto; } .columns-3 { - columns: 3 auto; column-gap: 2.5em; + columns: 3 auto; } .columns-4 { - columns: 4 auto; column-gap: 2em; + columns: 4 auto; } /* ==== MODULE LINKS - End ==== */ @@ -4034,7 +4046,6 @@ input.renew { padding-right: .3em; } - #catalog-search-dropdown { padding: 0; @@ -4117,12 +4128,11 @@ input.renew { border-bottom-width: 1px; } - &:nth-child(odd) { + &:nth-child( odd ) { background-color: #F8F8F8; } } - .superlibrarian-hint { color: #000; padding: .2em 0; @@ -4144,7 +4154,7 @@ input.renew { border-bottom-width: 1px; } - &:nth-child(odd) { + &:nth-child( odd ) { background-color: #EEE; } } @@ -4229,8 +4239,8 @@ div .suggestion_note { } .result_item_details { - display:inline-block; - white-space:nowrap; + display: inline-block; + white-space: nowrap; &::before { content: "\2022"; @@ -4242,7 +4252,8 @@ div .suggestion_note { } } -#camera, #output { +#camera, +#output { border: 8px solid #EDF4F6; padding: 1em; } @@ -4267,37 +4278,37 @@ div .suggestion_note { margin: .5em; } -.tab-pane { - &.active { - @include clearfix(); - } -} - #cookieConsentedJSItems { #cookieConsentedJSWarning { + font-size: 120%; + font-weight: 800; margin: 20px 0; text-align: center; - font-weight: 800; - font-size: 120%; } + .cookieConsentedJSItem { + border: 1px solid #CCC; margin-bottom: 30px; padding: 10px; - border: 1px solid #ccc; } + .consentRow { display: flex; margin-bottom: 20px; + .consentItem { margin-right: 40px; } + .consentItem:last-child { margin-right: 0; } } + .codeRow { display: block; } + .consentDelete { display: block; text-align: right; @@ -4306,23 +4317,27 @@ div .suggestion_note { /* Cookie consent bar */ #cookieConsentBar { + background: rgba( 0, 0, 0, .7 ); + bottom: 0; + color: rgba( 255, 255, 255, .9 ); display: none; + left: 0; padding: 20px; position: fixed; - bottom: 0; - left: 0; right: 0; - background: rgba(0,0,0,0.7); - color: rgba(255,255,255,0.9); z-index: 1; - a:link, a:visited { - color: #d7ebff; + + a:link, + a:visited { + color: #D7EBFF; } + #consentButtons { margin-top: 10px; text-align: right; } - button:not(:last-child) { + + button:not( :last-child ) { margin-right: 10px; } } @@ -4332,22 +4347,27 @@ div .suggestion_note { .modal-dialog { width: 700px; } + .consentModalItem { - display: flex; align-items: center; - border: 1px solid #ccc; - padding: 10px 20px; + border: 1px solid #CCC; border-radius: 5px; + display: flex; + padding: 10px 20px; } - .consentModalItem:not(:last-child) { + + .consentModalItem:not( :last-child ) { margin-bottom: 20px; } + .consentItemCheckbox { padding-right: 20px; } + .consentItemName { font-weight: bold; } + #cookieConsentPopupText { margin: 20px 0; } @@ -4357,11 +4377,7 @@ div .suggestion_note { @import "toolbar"; @import "forms"; -@media (min-width: 200px) { - -} - -@media (max-width: 767px) { +@media ( max-width: 767px ) { .header-menu-link { display: inline-block; } @@ -4388,7 +4404,7 @@ div .suggestion_note { .open { .dropdown-menu { background-color: #352C2E; - border: 1px solid #ccc; + border: 1px solid #CCC; position: absolute; } } @@ -4403,10 +4419,10 @@ div .suggestion_note { padding-left: 1.5em; &:hover { - text-decoration: underline; - color: #FFF; background-color: #352C2E; background-image: none; + color: #FFF; + text-decoration: underline; } } @@ -4445,7 +4461,7 @@ div .suggestion_note { #user-menu { .open { .dropdown-menu { - background-color: #352c35; + background-color: #352C35; position: absolute; } } @@ -4460,10 +4476,9 @@ div .suggestion_note { } } -@media (max-width: 768px) { +@media ( max-width: 768px ) { .navbar-nav { li { - a { padding: .4em .6em; } @@ -4489,10 +4504,7 @@ div .suggestion_note { } } -@media (min-width: 800px) { - - - +@media ( min-width: 800px ) { #helper { i { display: none; @@ -4540,10 +4552,10 @@ div .suggestion_note { } body.modalprinter .modal-dialog.focused { - position: absolute; - padding: 0; - margin: 0; left: 0; + margin: 0; + padding: 0; + position: absolute; top: 0; } -- 2.30.2