From 564e2c7acf15cad26b838966e1e2aa40d5fa46ca Mon Sep 17 00:00:00 2001 From: Carlos Saito Date: Wed, 10 Apr 2024 14:13:04 +0200 Subject: [PATCH] Put CSS inside @layer kth-style.old --- public/sass/bootstrap-overrides/_buttons.scss | 136 +++++++++--------- 1 file changed, 69 insertions(+), 67 deletions(-) diff --git a/public/sass/bootstrap-overrides/_buttons.scss b/public/sass/bootstrap-overrides/_buttons.scss index f149de7..dbd247f 100644 --- a/public/sass/bootstrap-overrides/_buttons.scss +++ b/public/sass/bootstrap-overrides/_buttons.scss @@ -19,82 +19,84 @@ } } -.external-link::after { - @extend %icon-general-style; - height: 1.25rem; - width: 1.3rem; - background: $data-open-window-blue-svg no-repeat; - background-size: 1.25rem 1.25rem; - margin: 0 0 -4px 10px; -} - -.pdf-link { - margin: 0; - @media (min-width: 768px) { - margin: 0 1.5em 0 1em; - } - &:before { +@layer kth-style.old { + .external-link::after { @extend %icon-general-style; - background: $data-pdf-blue-svg no-repeat; height: 1.25rem; - margin: 0 0.625rem 0.3rem 0; - width: 1rem; - vertical-align: middle; + width: 1.3rem; + background: $data-open-window-blue-svg no-repeat; + background-size: 1.25rem 1.25rem; + margin: 0 0 -4px 10px; } -} - -.pdf-post-link { - margin: 0; - &:after { - @extend %icon-general-style; - background: $data-pdf-blue-svg no-repeat; - height: 1.25rem; - width: 1rem; - margin: 0 0 0.3rem 0.625em; - vertical-align: middle; + .pdf-link { + margin: 0; + @media (min-width: 768px) { + margin: 0 1.5em 0 1em; + } + &:before { + @extend %icon-general-style; + background: $data-pdf-blue-svg no-repeat; + height: 1.25rem; + margin: 0 0.625rem 0.3rem 0; + width: 1rem; + vertical-align: middle; + } } -} -.btn-info-modal { - //change secondary to primary - background: $data-open-modal-blue-svg no-repeat; - background-color: transparent; - background-size: contain; - border: transparent; - border-radius: 0.8em; - margin-left: 1em; - width: 1.3em; - height: 1.3em; - padding: 0; - vertical-align: baseline; -} + .pdf-post-link { + margin: 0; -th > button.btn-info-modal, -td > button.btn-info-modal, -td > span > button.btn-info-modal { - @extend %table-info-icon-for-popup; - margin-left: 0; - vertical-align: middle; -} + &:after { + @extend %icon-general-style; + background: $data-pdf-blue-svg no-repeat; + height: 1.25rem; + width: 1rem; + margin: 0 0 0.3rem 0.625em; + vertical-align: middle; + } + } -.btn-upload-file { - //FileInput in kth-style-react-components - display: flex; - flex-direction: column; - input[type='file'] { - filter: alpha(opacity=0); - opacity: 0; - border: 0; + .btn-info-modal { + //change secondary to primary + background: $data-open-modal-blue-svg no-repeat; + background-color: transparent; + background-size: contain; + border: transparent; + border-radius: 0.8em; + margin-left: 1em; + width: 1.3em; + height: 1.3em; + padding: 0; + vertical-align: baseline; } - span { - margin: 0; - &::after { - @extend %icon-general-style; - vertical-align: bottom; - background: $data-upload-blue-svg no-repeat; - background-size: 1em; - float: right; + + th > button.btn-info-modal, + td > button.btn-info-modal, + td > span > button.btn-info-modal { + @extend %table-info-icon-for-popup; + margin-left: 0; + vertical-align: middle; + } + + .btn-upload-file { + //FileInput in kth-style-react-components + display: flex; + flex-direction: column; + input[type='file'] { + filter: alpha(opacity=0); + opacity: 0; + border: 0; + } + span { + margin: 0; + &::after { + @extend %icon-general-style; + vertical-align: bottom; + background: $data-upload-blue-svg no-repeat; + background-size: 1em; + float: right; + } } } }