Files
astuto/app/assets/stylesheets/common/_index.scss

279 lines
4.3 KiB
SCSS
Raw Normal View History

2024-01-23 18:50:42 +01:00
::selection {
background-color: var(--primary-color-light);
}
body {
background-color: var(--background-color);
}
.btnPrimary {
@extend .btn;
color: white;
background-color: var(--primary-color);
border-color: var(--primary-color-dark);
&:hover { color: white; }
&:focus { box-shadow: 0 0 0 0.25rem var(--primary-color-light); }
}
.btnOutlinePrimary {
@extend .btn;
background-color: transparent;
color: var(--primary-color);
border-color: var(--primary-color);
&:hover {
color: white;
background-color: var(--primary-color);
}
&:focus { box-shadow: 0 0 0 0.25rem var(--primary-color-light); }
}
2019-09-19 16:42:43 +02:00
.card {
@extend .card;
2024-01-20 12:33:22 +01:00
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04),0 2px 4px -1px rgba(0, 0, 0, 0.03);
2019-09-19 16:42:43 +02:00
transition: all 0.3s cubic-bezier(.25,.8,.25,1);
2024-01-23 18:50:42 +01:00
color: var(--astuto-black);
2019-09-19 16:42:43 +02:00
padding: 8px;
}
.card3D {
2024-01-23 18:50:42 +01:00
@extend .card;
2019-09-19 16:42:43 +02:00
transition: all 0.3s cubic-bezier(.25,.8,.25,1);
&:hover {
2024-01-20 12:33:22 +01:00
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08),0 4px 6px -2px rgba(0, 0, 0, 0.04);
2019-09-19 16:42:43 +02:00
}
}
// General container for pages with siderbar + main content
.twoColumnsContainer {
2022-05-01 18:00:38 +02:00
@extend
.d-flex,
.justify-content-between,
.align-items-start;
flex-direction: row;
@include media-breakpoint-down(sm) {
flex-direction: column;
}
// Make the main content full width
& > div:nth-child(2) {
@extend
.flex-grow-1,
.w-100;
}
2022-05-01 18:00:38 +02:00
}
.box {
2022-05-01 18:00:38 +02:00
@extend
.card,
.flex-grow-1,
.p-3,
.mb-3;
}
.sidebar {
position: sticky;
2020-01-05 11:25:38 +01:00
top: 79px;
@include media-breakpoint-down(sm) {
position: relative;
width: 100%;
top: 0;
}
.sidebarBox {
@extend
.card,
.d-flex,
.flex-column,
.justify-content-start,
.align-items-center,
.flex-grow-0,
.flex-shrink-0,
2019-10-02 16:57:32 +02:00
.mb-3,
.p-2;
width: 280px;
margin-right: 16px;
@include media-breakpoint-down(sm) {
width: 100%;
}
}
}
2022-05-01 18:00:38 +02:00
.verticalNavigation {
@extend
.nav,
.flex-column,
.nav-pills,
.text-center,
.align-self-stretch;
a {
2024-01-23 18:50:42 +01:00
color: var(--astuto-grey);
font-weight: 500;
&:hover {
2024-01-23 18:50:42 +01:00
color: var(--primary-color);
}
}
2022-05-01 18:00:38 +02:00
.nav-link.active {
2024-01-23 18:50:42 +01:00
color: var(--primary-color);
background-color: var(--astuto-grey-light);
2022-05-01 18:00:38 +02:00
}
}
.drag-zone {
@extend
.align-self-center,
.pl-1,
2022-05-01 18:00:38 +02:00
.pr-4,
.pt-1,
.pb-1;
cursor: grab;
&.drag-zone-disabled {
cursor: not-allowed;
&:active { cursor: not-allowed; }
}
&:active { cursor: grabbing; }
}
2019-09-19 16:42:43 +02:00
.badge {
@extend
.badge,
.badge-pill,
.p-2;
font-size: 13px;
}
.badgeLight {
@extend .badge-light;
2024-01-23 18:50:42 +01:00
background-color: var(--astuto-grey-light);
}
.container {
max-width: 960px;
}
2022-07-18 10:47:54 +02:00
.smallContainer {
max-width: 540px;
margin: 16px auto;
}
.turbolinks-progress-bar {
2024-01-23 18:50:42 +01:00
background-color: var(--primary-color);
height: 2px;
}
.gravatar {
border-radius: 100%;
}
.checkboxSwitch {
@extend
.custom-control,
.custom-switch;
& > input[type="checkbox"] {
@extend .custom-control-input;
2024-01-23 18:50:42 +01:00
&:focus ~ label::before {
box-shadow: 0 0 0 0.25rem var(--primary-color-light);
}
&:active ~ label::before {
background-color: var(--primary-color);
}
}
& > label {
@extend .custom-control-label;
&::before {
transform: scale(1.2);
}
}
& > input:checked ~ label::before {
2024-01-23 18:50:42 +01:00
background-color: var(--primary-color) !important;
border-color: var(--primary-color-dark) !important;
}
& > input:focus ~ label::before {
border-color: var(--primary-color-dark) !important;
}
}
.selectPicker {
@extend
.custom-select;
2024-01-23 18:50:42 +01:00
&:focus {
box-shadow: 0 0 0 0.25rem var(--primary-color-light);
border-color: var(--primary-color-dark);
}
}
.link {
cursor: pointer;
&:hover { text-decoration: underline; }
2022-08-22 10:38:03 +02:00
}
.actionLink {
2024-01-23 18:50:42 +01:00
color: var(--astuto-black);
2022-08-22 10:38:03 +02:00
display: flex;
cursor: pointer;
align-self: center;
margin-right: 12px;
2024-01-23 18:50:42 +01:00
&:hover {
color: var(--primary-color);
text-decoration: underline !important;
}
2022-08-22 10:38:03 +02:00
svg {
margin-right: 4px;
align-self: center;
}
&.actionLinkDisabled {
2024-01-23 18:50:42 +01:00
color: var(--astuto-grey) !important;
2022-08-22 10:38:03 +02:00
text-decoration: none !important;
cursor: not-allowed;
}
2024-01-22 14:45:48 +01:00
}
.oauthProviderBtn {
@extend
.btn,
.btn-block,
.btn-outline-dark,
.mt-2,
.mb-2;
.oauthProviderText {
@extend .ml-2;
vertical-align: middle;
}
2019-09-19 16:42:43 +02:00
}