392 lines
7.6 KiB
SCSS
392 lines
7.6 KiB
SCSS
/* Custom Pink version */
|
|
|
|
// Override default variables
|
|
/*$primary-500: #00aaaa;
|
|
$primary-600: #009696;
|
|
$primary-700: #008080;*/
|
|
|
|
$primary-500: #008989;
|
|
$primary-600: #008080;
|
|
$primary-700: #006c6c;
|
|
$enable-responsive-typography: true;
|
|
|
|
// Import Pico
|
|
@import "./pico/pico";
|
|
|
|
:root {
|
|
--spacing: 0.4rem;
|
|
|
|
h1 {
|
|
--typography-spacing-vertical: 0.6rem;
|
|
}
|
|
h2 {
|
|
--typography-spacing-vertical: 0.6rem;
|
|
--font-size: 1.5rem;
|
|
}
|
|
h3 {
|
|
--typography-spacing-vertical: 0.6rem;
|
|
--font-size: 1.3rem;
|
|
}
|
|
p {
|
|
--typography-spacing-vertical: 0.6rem;
|
|
}
|
|
--transition: 0.1s ease-in-out;
|
|
|
|
// Modal (<dialog>)
|
|
--modal-overlay-backdrop-filter: blur(0.05rem);
|
|
|
|
}
|
|
|
|
|
|
.cat,
|
|
.action {
|
|
margin-left: .2em;
|
|
line-height: 1.2em;
|
|
height: 1.2em;
|
|
width: 1.2em;
|
|
border-radius: 0.6em;
|
|
display: inline-block;
|
|
vertical-align: middle;
|
|
text-align: center;
|
|
font-size: 80%;
|
|
}
|
|
|
|
|
|
.action {
|
|
color: $primary-500;
|
|
background: var(--secondary-inverse);
|
|
}
|
|
|
|
.cat {
|
|
margin-left: 0;
|
|
margin-right: .2em;
|
|
}
|
|
|
|
a:hover>.action,
|
|
span:hover>.action {
|
|
transition: color var(--transition);
|
|
color: $primary-600;
|
|
background: var(--primary-inverse);
|
|
}
|
|
|
|
nav a>.action {
|
|
color: var(--primary-inverse);
|
|
background: $primary-600;
|
|
}
|
|
|
|
nav a:hover>.action {
|
|
background: $primary-700;
|
|
color: var(--primary-inverse);
|
|
}
|
|
|
|
details[role="list"] summary + ul li.selected>a{
|
|
background: $primary-600;
|
|
color: var(--secondary-inverse);
|
|
}
|
|
|
|
details[role="list"] summary + ul li.selected>a:hover {
|
|
background: $primary-500;
|
|
color: var(--primary-inverse);
|
|
}
|
|
|
|
body>nav {
|
|
box-shadow: 0 1px 0 rgba(115, 130, 140, 0.2);
|
|
}
|
|
|
|
.small-cat {
|
|
@extend .outline;
|
|
font-size: 90%;
|
|
padding: 0.15em 0.4em 0.3em 0.4em;
|
|
}
|
|
|
|
ul {
|
|
margin-left: 1em;
|
|
}
|
|
|
|
span.small-cat {
|
|
cursor: default;
|
|
}
|
|
|
|
svg {
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.ephemeris {
|
|
float: left;
|
|
font-size: 110%;
|
|
padding: 0.8em 0;
|
|
margin: 0 1em 0 0;
|
|
text-align: center;
|
|
width: 25%;
|
|
min-width: 7em;
|
|
|
|
.large {
|
|
font-size: 140%;
|
|
font-weight: bold;
|
|
}
|
|
|
|
footer {
|
|
font-size: 140%;
|
|
padding: 0.3em;
|
|
margin: .6em 0 -0.8em 0;
|
|
font-weight: bold;
|
|
color: var(--primary);
|
|
}
|
|
}
|
|
|
|
.ephemeris-hour {
|
|
@extend .ephemeris;
|
|
padding: 1.5em 0.1em;
|
|
width: 15%;
|
|
min-width: 5em;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.illustration {
|
|
float: right;
|
|
width: 20em;
|
|
margin: 0 0 0.5em .5em;
|
|
padding: 0.3em;
|
|
}
|
|
|
|
.illustration-small {
|
|
@extend .illustration;
|
|
width: 10em;
|
|
}
|
|
|
|
footer {
|
|
clear: both;
|
|
}
|
|
|
|
|
|
|
|
@media only screen and (min-width: 992px) {
|
|
|
|
.infos-and-buttons {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: stretch;
|
|
}
|
|
|
|
|
|
|
|
.infos-and-buttons .infos {
|
|
flex: 50;
|
|
}
|
|
|
|
.infos-and-buttons .buttons {
|
|
flex: auto;
|
|
}
|
|
|
|
.grid.week-in-month {
|
|
grid-template-columns: 2.5em repeat(auto-fit, minmax(0%, 1fr));
|
|
margin-bottom: .5em;
|
|
}
|
|
.entete-semaine {
|
|
text-orientation: upright;
|
|
writing-mode: sideways-lr;
|
|
background: rgba(0, 137, 137, 0.2);
|
|
padding: 1em 0;
|
|
h2 {
|
|
margin: 0;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
article.day {
|
|
margin: 0;
|
|
padding: 0 0 0.3em 0;
|
|
}
|
|
|
|
article.day>header {
|
|
margin: 0;
|
|
padding: 0.3em 0.3em 0 0.3em;
|
|
}
|
|
|
|
article.day>ul {
|
|
margin: 0 0.2em .8em 0.2em;
|
|
padding: 0;
|
|
|
|
>li {
|
|
list-style: none;
|
|
}
|
|
}
|
|
|
|
|
|
.right {
|
|
text-align: right;
|
|
}
|
|
.navigation {
|
|
margin: 1em 0;
|
|
padding: 0;
|
|
display: flex;
|
|
flex-direction: row;
|
|
div {
|
|
flex: auto;
|
|
}
|
|
}
|
|
|
|
|
|
.day.today>header,
|
|
.day.today {
|
|
background: rgba(255, 0, 76, 0.1);
|
|
}
|
|
|
|
.day.past {
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.day.other_month {
|
|
opacity: 0.2;
|
|
}
|
|
|
|
.day.past:hover,
|
|
.day.other_month:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
@media only screen and (prefers-color-scheme: light) {
|
|
[data-theme="light"],
|
|
:root:not([data-theme="dark"]) {
|
|
#filters summary:after {
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='#{to-rgb($black)}' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
|
|
}
|
|
}
|
|
}
|
|
|
|
article#filters {
|
|
.buttons-filter {
|
|
float: right;
|
|
text-align: right;
|
|
display: none;
|
|
}
|
|
form>label {
|
|
display: inline-block;
|
|
}
|
|
.options-filter {
|
|
clear: both;
|
|
padding: 0.5em;
|
|
|
|
[role="button"].small-cat {
|
|
margin: 0.2em;
|
|
height: 2.6em;
|
|
line-height: 2.2em;
|
|
padding-left: 0.6em;
|
|
span {
|
|
margin-right: .6em;
|
|
}
|
|
label {
|
|
display: inline-block;
|
|
}
|
|
.cat {
|
|
border: 0;
|
|
}
|
|
|
|
&.no-selected {
|
|
@extend .secondary, .outline;
|
|
|
|
label {
|
|
color: var(--secondary);
|
|
}
|
|
}
|
|
}
|
|
[role="button"] input {
|
|
margin-left: 0.3em;
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
.helptext, .subentry-search {
|
|
font-size: 80%;
|
|
margin-top: -0.7em;
|
|
}
|
|
|
|
.django-ckeditor-widget {
|
|
width: 100%;
|
|
}
|
|
|
|
.cke_editable {
|
|
font-size: 13px;
|
|
line-height: 1.6;
|
|
background-color: #1C1C1C !important;
|
|
word-wrap: break-word;
|
|
}
|
|
|
|
.slide-buttons {
|
|
float: right;
|
|
}
|
|
|
|
.highlight {
|
|
color: var(--primary);
|
|
font-weight: bold;
|
|
font-style: italic;
|
|
}
|
|
|
|
.search .description {
|
|
margin-left: 1em;
|
|
font-size: 90%;
|
|
margin-top: -0.5em;
|
|
}
|
|
|
|
.form.recent {
|
|
#id_status>div {
|
|
display: inline-block;
|
|
margin-right: 2em;
|
|
}
|
|
}
|
|
|
|
/* Basic picocss alerts */
|
|
|
|
|
|
|
|
// import some colors from pico _colors.scss
|
|
$amber-50: #fff8e1 !default;
|
|
$amber-900: #ff6f00 !default;
|
|
$green-50: #e8f5e9 !default;
|
|
$green-800: #1b5e20 !default;
|
|
$red-50: #ffebee !default;
|
|
$red-900: #b71c1c !default;
|
|
|
|
|
|
// simple picocss alerts
|
|
// inherit responsive typography, responsive spacing, icons and size
|
|
.message {
|
|
$iconsize: calc(var(--font-size) * 1.5); // 24px / 30px if $enable-responsive-spacings
|
|
margin-bottom: var(--spacing); // some default space below alert element
|
|
padding: var(--form-element-spacing-vertical) var(--form-element-spacing-horizontal); // same as forms .input
|
|
border-radius: var(--border-radius);
|
|
//font-weight: 500; // var(--font-weight);
|
|
//font-size: 1rem;
|
|
//line-height: var(--line-height);
|
|
color: var(--color);
|
|
background-color: var(--background-color);
|
|
border: 1px solid var(--background-color); // compensate for 1px border
|
|
|
|
// icon
|
|
background-image: var(--icon);
|
|
background-position: center left var(--form-element-spacing-vertical); // use vertical for icon left align
|
|
background-size: $iconsize auto;
|
|
padding-left: calc(var(--form-element-spacing-vertical) * 2 + #{$iconsize});
|
|
}
|
|
.message.danger {
|
|
--background-color: #{$red-50};
|
|
--icon: var(--icon-invalid);
|
|
--color: #{$red-900};
|
|
}
|
|
.message.warning {
|
|
--background-color: #{$amber-50};
|
|
--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='#{rgba(darken($amber-900, 15%), .999)}' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='8' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'%3E%3C/line%3E%3C/svg%3E");
|
|
--color: #{darken($amber-900, 20%)};
|
|
}
|
|
.message.success {
|
|
--background-color: #{$green-50};
|
|
--icon: var(--icon-valid);
|
|
--color: #{$green-800};
|
|
}
|
|
|
|
.footer {
|
|
opacity: 0.7;
|
|
font-size: 80%;
|
|
} |