From 9f2b0f7c6be3cd294db45bd00239dd297c974f3a Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Fri, 4 Aug 2023 11:17:24 +0200 Subject: [PATCH] Fix some CSS coding styles --- .../src/overview/helpers/HighlightCard.scss | 2 +- .../src/short-urls/helpers/ShortUrlsRow.scss | 2 +- shlink-web-component/src/tags/helpers/Tag.scss | 2 +- shlink-web-component/src/utils/dates/DateInput.scss | 6 +++--- shlink-web-component/src/visits/helpers/MapModal.scss | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/shlink-web-component/src/overview/helpers/HighlightCard.scss b/shlink-web-component/src/overview/helpers/HighlightCard.scss index f025bf3b..7a3095a7 100644 --- a/shlink-web-component/src/overview/helpers/HighlightCard.scss +++ b/shlink-web-component/src/overview/helpers/HighlightCard.scss @@ -11,7 +11,7 @@ position: absolute; right: 5px; bottom: 5px; - opacity: 0.1; + opacity: .1; transform: rotate(-45deg); } diff --git a/shlink-web-component/src/short-urls/helpers/ShortUrlsRow.scss b/shlink-web-component/src/short-urls/helpers/ShortUrlsRow.scss index e1a6d4dc..d4a00752 100644 --- a/shlink-web-component/src/short-urls/helpers/ShortUrlsRow.scss +++ b/shlink-web-component/src/short-urls/helpers/ShortUrlsRow.scss @@ -33,7 +33,7 @@ .short-urls-row__copy-hint { @include vertical-align(translateX(10px)); - box-shadow: 0 3px 15px rgba(0, 0, 0, .25); + box-shadow: 0 3px 15px rgb(0 0 0 / .25); @media (max-width: $responsiveTableBreakpoint) { @include vertical-align(translateX(calc(-100% - 20px))); diff --git a/shlink-web-component/src/tags/helpers/Tag.scss b/shlink-web-component/src/tags/helpers/Tag.scss index 113f7f42..7db232f4 100644 --- a/shlink-web-component/src/tags/helpers/Tag.scss +++ b/shlink-web-component/src/tags/helpers/Tag.scss @@ -3,7 +3,7 @@ } .tag--light-bg { - color: #222 !important; + color: #222 !important; } .tag:not(:last-child) { diff --git a/shlink-web-component/src/utils/dates/DateInput.scss b/shlink-web-component/src/utils/dates/DateInput.scss index 0025d5e4..dee56199 100644 --- a/shlink-web-component/src/utils/dates/DateInput.scss +++ b/shlink-web-component/src/utils/dates/DateInput.scss @@ -71,7 +71,7 @@ .react-datepicker__time-list.react-datepicker__time-list { /* Forefox scrollbar */ - scrollbar-color: rgba(0, 0, 0, 0.5) var(--secondary-color); + scrollbar-color: rgb(0 0 0 / .5) var(--secondary-color); scrollbar-width: thin; /* Chrome webkit scrollbar */ @@ -81,8 +81,8 @@ } &::-webkit-scrollbar-thumb { - background-color: rgba(0, 0, 0, 0.5); - border-radius: 0.5rem; + background-color: rgb(0 0 0 / .5); + border-radius: .5rem; } } diff --git a/shlink-web-component/src/visits/helpers/MapModal.scss b/shlink-web-component/src/visits/helpers/MapModal.scss index bb1aedee..ef83ff13 100644 --- a/shlink-web-component/src/visits/helpers/MapModal.scss +++ b/shlink-web-component/src/visits/helpers/MapModal.scss @@ -26,7 +26,7 @@ padding: .5rem 1rem 1rem; margin: 0; color: #fff; - background: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, 0)); + background: linear-gradient(rgb(0 0 0 / .5), rgb(0 0 0 / 0)); } .map-modal__modal-body.map-modal__modal-body {