/usr/share/python-djangocms-admin-style-common/sass/mixins/_custom.scss is in python-djangocms-admin-style-common 1.2.2+dfsg-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 | // mixins
@mixin box() {
margin-bottom: 5px;
padding: 0;
border: none;
h2,
h3,
h4,
h5,
h6 {
margin-top: 0;
margin-bottom: 12px;
}
}
@mixin stripes($stripe-opacity) {
background-image: linear-gradient(-45deg, rgba($white, $stripe-opacity) 25%, rgba($white, 0) 25%, rgba($white, 0) 50%, rgba($white, $stripe-opacity) 50%, rgba($white, $stripe-opacity) 75%, rgba($white, 0) 75%, rgba($white, 0));
background-size: 100% 400%;
}
// taken from bootstrap with adaptations
@function important($important) {
@if($important == true) {
@return !important;
} @else {
@return true;
}
}
@mixin button-variant($color, $background, $border, $important: false) {
background-image: none important($important);
margin-bottom: 0; // For input.btn
padding: 6px 20px important($important);
border-radius: $btn-border-radius-base important($important);
color: $color important($important);
font-size: $font-size-small important($important);
line-height: $font-size-small;
font-weight: normal;
text-transform: none important($important);
letter-spacing: normal important($important);
background-color: $background important($important);
border: 1px solid $border important($important);
background-clip: padding-box;
appearance: none;
&:focus {
color: $color important($important);
background-color: darken($background, 5%) important($important);
border-color: darken($border, 5%) important($important);
text-decoration: none important($important);
}
&:hover {
color: $color important($important);
background-color: darken($background, 5%) important($important);
border-color: darken($border, 5%) important($important);
text-decoration: none important($important);
}
&:active {
color: $color important($important);
background-color: darken($background, 10%) important($important);
border-color: darken($border, 10%) important($important);
box-shadow: $btn-active-shadow important($important);
&:hover,
&:focus {
color: $color important($important);
background-color: darken($background, 17%) important($important);
border-color: darken($border, 25%) important($important);
}
}
&:active {
background-image: none important($important);
}
&[disabled] {
&,
&:hover,
&:focus
&:active {
background-color: rgba($background, 0.4) important($important);
border-color: rgba($border, 0.4) important($important);
color: rgba($color, 0.8) important(1);
cursor: not-allowed;
box-shadow: none important($important);
&:before {
color: rgba($color, 0.4) important(1);
}
}
}
}
|