-$icon-font-path: '~@neos21/bootstrap3-glyphicons/assets/fonts/';
-
@use '_variables' as *;
@use '_mixins' as *;
@import '~bootstrap/scss/modal';
@import '~bootstrap/scss/tooltip';
@import '~bootstrap/scss/popover';
+@import '~bootstrap/scss/spinners';
@import '~bootstrap/scss/helpers';
@import '~bootstrap/scss/utilities/api';
-@import '~@neos21/bootstrap3-glyphicons/assets/stylesheets/bootstrap3-glyphicons';
-
-// Thanks https://gist.github.com/alexandrevicenzi/680147013e902a4eaa5d
-.glyphicon-refresh-animate {
- animation: spin 0.7s infinite linear;
-}
-
.flex-auto {
flex: auto;
}
cursor: pointer !important;
}
-@keyframes spin {
- from {
- transform: scale(1) rotate(0deg);
- }
-
- to {
- transform: scale(1) rotate(360deg);
- }
-}
+// ---------------------------------------------------------------------------
+// Dropdown
+// ---------------------------------------------------------------------------
.dropdown-menu {
- font-size: 15px;
color: pvar(--mainForegroundColor);
background-color: pvar(--mainBackgroundColor);
}
}
+.dropdown-divider {
+ margin: 0.3rem 0;
+}
+
+// ---------------------------------------------------------------------------
+// Alert
+// ---------------------------------------------------------------------------
+
+.alert {
+ p:last-child {
+ margin-bottom: 0;
+ }
+}
+
+// ---------------------------------------------------------------------------
+// Modal
+// ---------------------------------------------------------------------------
+
@media screen and (min-width: #{breakpoint(md)}) {
.modal::before {
vertical-align: middle;
my-global-icon {
@include icon(22px);
- position: relative;
- top: 5px;
- float: right;
-
- margin: 0;
- padding: 0;
opacity: 0.5;
- &[iconName=cross] { /* stylelint-disable-line selector-max-compound-selectors */
- @include icon(16px);
-
- top: -3px;
+ &:hover {
+ opacity: 0.8;
}
}
}
opacity: 0.75;
content: '';
display: block;
- position: fixed;
- z-index: z(overlay);
}
}
}
}
-// Nav customizations
+// ---------------------------------------------------------------------------
+// Nav
+// ---------------------------------------------------------------------------
+
.nav .nav-link {
display: flex !important;
align-items: center;
}
}
+// ---------------------------------------------------------------------------
+// Card, collapse and accordion
+// ---------------------------------------------------------------------------
+
.card {
background-color: pvar(--mainBackgroundColor);
border-color: #dee2e6;
}
}
-.dropdown-divider {
- margin: 0.3rem 0;
+// ---------------------------------------------------------------------------
+// Buttons & form controls
+// ---------------------------------------------------------------------------
+
+.btn:not(.btn-sm) {
+ font-size: $button-font-size;
+ line-height: 1.2;
}
.btn-outline-secondary {
}
}
-.btn-outline-tertiary {
- color: pvar(--secondaryColor);
- border-color: pvar(--secondaryColor);
-
- &:focus-within,
- &:focus,
- &:hover {
- color: pvar(--mainBackgroundColor);
- background-color: pvar(--secondaryColor);
- }
-}
-
.btn-group.select-button {
font-weight: $font-semibold;
}
}
-// input box-shadow on focus
.form-control {
- font-size: 15px;
color: pvar(--mainForegroundColor);
background-color: pvar(--inputBackgroundColor);
outline: none;
+ // Input box-shadow on focus
&:focus-within,
&:focus {
box-shadow: #{$focus-box-shadow-form} pvar(--mainColorLightest);
}
> .input-group-text {
- font-size: 15px;
line-height: normal;
opacity: 0.9;
}
}
.has-clear {
- position: relative;
-
input {
@include padding-right(1.5rem !important);
}
display: flex;
justify-content: center;
align-items: center;
- position: absolute;
- right: .5rem;
height: 95%;
font-size: 14px;
+ position: absolute;
+ right: .5rem;
&:hover {
color: rgba(0, 0, 0, 0.7);