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

212 lines
3.1 KiB
SCSS
Raw Normal View History

2019-09-19 16:42:43 +02:00
.card {
@extend .card;
box-shadow: 0 1px 1px rgba(0,0,0,0.15), 0 1px 1px rgba(0,0,0,0.15);
transition: all 0.3s cubic-bezier(.25,.8,.25,1);
color: $primary-color;
2019-09-19 16:42:43 +02:00
padding: 8px;
}
.card3D {
@extend
.card;
box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
transition: all 0.3s cubic-bezier(.25,.8,.25,1);
&:hover {
box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
}
}
// 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 {
color: $astuto-grey;
font-weight: 500;
&:hover {
color: $astuto-black;
}
}
2022-05-01 18:00:38 +02:00
.nav-link.active {
color: $astuto-black;
background-color: $astuto-light-grey;
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;
background-color: $astuto-light-grey;
}
.container {
max-width: 960px;
}
2022-07-18 10:47:54 +02:00
.smallContainer {
max-width: 540px;
margin: 16px auto;
}
.turbolinks-progress-bar {
background-color: $primary-color;
height: 2px;
}
.gravatar {
border-radius: 100%;
}
.checkboxSwitch {
@extend
.custom-control,
.custom-switch;
& > input[type="checkbox"] {
@extend .custom-control-input;
}
& > label {
@extend .custom-control-label;
&::before {
transform: scale(1.2);
}
}
& > input:checked ~ label::before {
background-color: $primary-color !important;
border-color: $primary-color !important;
}
}
.selectPicker {
@extend
.custom-select;
}
.link {
cursor: pointer;
&:hover { text-decoration: underline; }
2022-08-22 10:38:03 +02:00
}
.actionLink {
Bump yarn packages (webpacker, bootstrap, ...) (#222) * Specify exact versions in package.json * Bump @rails packages to 6.1.7-3 * Bump decode-uri-component from 0.2.0 to 0.2.2 (#176) Bumps [decode-uri-component](https://github.com/SamVerschueren/decode-uri-component) from 0.2.0 to 0.2.2. - [Release notes](https://github.com/SamVerschueren/decode-uri-component/releases) - [Commits](https://github.com/SamVerschueren/decode-uri-component/compare/v0.2.0...v0.2.2) --- updated-dependencies: - dependency-name: decode-uri-component dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump qs from 6.5.2 to 6.5.3 (#177) Bumps [qs](https://github.com/ljharb/qs) from 6.5.2 to 6.5.3. - [Release notes](https://github.com/ljharb/qs/releases) - [Changelog](https://github.com/ljharb/qs/blob/main/CHANGELOG.md) - [Commits](https://github.com/ljharb/qs/compare/v6.5.2...v6.5.3) --- updated-dependencies: - dependency-name: qs dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump express from 4.17.1 to 4.18.2 (#178) Bumps [express](https://github.com/expressjs/express) from 4.17.1 to 4.18.2. - [Release notes](https://github.com/expressjs/express/releases) - [Changelog](https://github.com/expressjs/express/blob/master/History.md) - [Commits](https://github.com/expressjs/express/compare/4.17.1...4.18.2) --- updated-dependencies: - dependency-name: express dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump json5 from 1.0.1 to 1.0.2 (#182) Bumps [json5](https://github.com/json5/json5) from 1.0.1 to 1.0.2. - [Release notes](https://github.com/json5/json5/releases) - [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md) - [Commits](https://github.com/json5/json5/compare/v1.0.1...v1.0.2) --- updated-dependencies: - dependency-name: json5 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump minimatch from 3.0.4 to 3.0.8 (#223) Bumps [minimatch](https://github.com/isaacs/minimatch) from 3.0.4 to 3.0.8. - [Changelog](https://github.com/isaacs/minimatch/blob/main/changelog.md) - [Commits](https://github.com/isaacs/minimatch/compare/v3.0.4...v3.0.8) --- updated-dependencies: - dependency-name: minimatch dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump @rails/webpacker to 5.1.0 * Fix translations import in application.js * Bump @rails/webpacker to 5.4.4 * Set some babel plugins loose=true to suppress warnings * Bump boostrap to 4.6.2 and popper.js to 1.16.1 * Fix CSS after bootstrap bump --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-13 18:41:26 +02:00
color: $astuto-black;
2022-08-22 10:38:03 +02:00
display: flex;
cursor: pointer;
align-self: center;
margin-right: 12px;
&:hover { text-decoration: underline !important; }
svg {
margin-right: 4px;
align-self: center;
}
&.actionLinkDisabled {
color: $astuto-grey !important;
text-decoration: none !important;
cursor: not-allowed;
}
2019-09-19 16:42:43 +02:00
}