From 05ad9099b32ef2cc588ce19d765791e8ad8764b0 Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Wed, 3 Jul 2024 16:10:47 +0200 Subject: [PATCH] chore(cas_eleves): Remove unused files --- cas_eleves/__init__.py | 0 cas_eleves/scss/Makefile | 10 - cas_eleves/scss/_forms.scss | 94 -- cas_eleves/scss/_mixins.scss | 36 - cas_eleves/scss/_params.scss | 37 - cas_eleves/scss/_params.scss.blue | 30 - cas_eleves/scss/style.scss | 153 --- cas_eleves/static/img/logo.svg | 1780 ----------------------------- 8 files changed, 2140 deletions(-) delete mode 100644 cas_eleves/__init__.py delete mode 100644 cas_eleves/scss/Makefile delete mode 100644 cas_eleves/scss/_forms.scss delete mode 100644 cas_eleves/scss/_mixins.scss delete mode 100644 cas_eleves/scss/_params.scss delete mode 100644 cas_eleves/scss/_params.scss.blue delete mode 100644 cas_eleves/scss/style.scss delete mode 100644 cas_eleves/static/img/logo.svg diff --git a/cas_eleves/__init__.py b/cas_eleves/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/cas_eleves/scss/Makefile b/cas_eleves/scss/Makefile deleted file mode 100644 index 838260f..0000000 --- a/cas_eleves/scss/Makefile +++ /dev/null @@ -1,10 +0,0 @@ -OUTDIR=../static/css/ -STYLES=style.scss -IMPORTS=_params.scss _forms.scss _mixins.scss - -SASS=sassc - -all: $(addprefix $(OUTDIR)/,$(STYLES:.scss=.css)) - -$(OUTDIR)/%.css: %.scss $(IMPORTS) - $(SASS) "$<" "$@" diff --git a/cas_eleves/scss/_forms.scss b/cas_eleves/scss/_forms.scss deleted file mode 100644 index c2dc2c2..0000000 --- a/cas_eleves/scss/_forms.scss +++ /dev/null @@ -1,94 +0,0 @@ -form { - display: flex; - align-items: stretch; - flex-direction: column; - - .errorlist { - list-style-type: none; - margin: 0; - padding: 0; - font-size: 0.7em; - - li { - @include error_box; - margin-bottom: 10px; - } - } - - p { - margin: 5px 0; - width: 100%; - } -} - -.helptext { - font-size: 0.7em; - color: $help_text_color; -} - -input { - display: block; - width: 100%; - font: inherit; - font-size: 0.9em; - color: black; -} - -input[type="text"], -input[type="email"], -input[type="password"], { - background-color: white; - border: solid 1px $help_text_color; - padding: 5px 10px; - border-radius: 3px; - box-shadow: none; - - &:optional { - border-color: fade-out($help_text_color, .25); - } - &:focus { - border-color: $secondary_color; - box-shadow: 0 0 1.5px 1px $secondary_color; - } - &:-moz-ui-invalid { - border-color: $error_box_border_color; - box-shadow: 0 0 1.5px 1px $error_box_border_color; - } -} - -input[type="checkbox"], -input[type="radio"] { - width: auto; - margin: 5px 10px; -} - -input[type="submit"] { - @include button; -} - -.formfield { - padding: 5px; - margin: 10px 0; -} -.error_field { - border-radius: 10px; - background-color: rgba($error_box_color, .4); -} - -.checkbox_input { - display: flex; - justify-content: space-evenly; - align-items: center; - - .label_line { - order: 1; - flex: 1 1 500px; - } - input { - flex: 0 1 50px; - } -} - -.fieldgroup { - margin: 15px 0; -} diff --git a/cas_eleves/scss/_mixins.scss b/cas_eleves/scss/_mixins.scss deleted file mode 100644 index cbd34c8..0000000 --- a/cas_eleves/scss/_mixins.scss +++ /dev/null @@ -1,36 +0,0 @@ -@mixin box($bg_color: white, $border_color: black) { - border-radius: 10px; - padding: 10px; - border: 1px solid $border_color; - background-color: $bg_color; - color: $page_text_color; -} -@mixin error_box { - @include box($error_box_color, $error_box_border_color); -} -@mixin info_box { - @include box($info_box_color, $info_box_border_color); -} -@mixin success_box { - @include box($success_box_color, $success_box_border_color); -} -@mixin warning_box { - @include box($warning_box_color, $warning_box_border_color); -} - -@mixin button { - display: block; - text-decoration: none; - text-align: center; - font-size: 100%; - - @include box($button_color, $secondary_border_color); - - &:hover { - background-color: darken($button_color, 10%); - } - &:focus { - background-color: darken($button_color, 20%); - box-shadow: 0 0 1.5px 1px $secondary_color; - } -} diff --git a/cas_eleves/scss/_params.scss b/cas_eleves/scss/_params.scss deleted file mode 100644 index e1cc6aa..0000000 --- a/cas_eleves/scss/_params.scss +++ /dev/null @@ -1,37 +0,0 @@ -$page_bg_color: #f5f1f4; -$page_main_color: #ffffff; -$page_text_color: #000000dd; -$secondary_color: #3c173d; -$secondary_border_color: #3c173d; -$page_link_color: $secondary_border_color; - -$page_width: 700px; -$page_mid_width: 450px; - -$main_border_color: $secondary_border_color; -$main_border_radius: 20px; -$button_color: #d2bed3; -$button_text_color: white; - -$help_text_color: rgba($page_text_color, .65); - -$font_size: 16pt; -$font_family: "Open Sans"; - -$mid_font_size: 12pt; -$small_font_size: 11pt; - -$logo_height: 100px; -$logo_maxwidth: 300px; - -$responsive_mid_threshold: 750px; -$responsive_small_threshold: 500px; - -$info_box_color: #c9c8ff; -$info_box_border_color: darken($info_box_color, 20%); -$error_box_color: #ffdfdf; -$error_box_border_color: darken($error_box_color, 20%); -$success_box_color: #bafb95; -$success_box_border_color: darken($success_box_color, 20%); -$warning_box_color: #ffd36c; -$warning_box_border_color: darken($warning_box_color, 20%); diff --git a/cas_eleves/scss/_params.scss.blue b/cas_eleves/scss/_params.scss.blue deleted file mode 100644 index 64811a5..0000000 --- a/cas_eleves/scss/_params.scss.blue +++ /dev/null @@ -1,30 +0,0 @@ -$page_bg_color: #f3f0ff; -$page_main_color: #e9e4ff; -$page_text_color: #000000dd; -$page_link_color: #c6491add; -$page_width: 700px; - -$secondary_color: #9188ff; -$secondary_border_color: #25228a; - -$main_border_color: $secondary_border_color; -$main_border_radius: 20px; - -$help_text_color: rgba($page_text_color, .65); - -$font_size: 16pt; -$font_family: "Open Sans"; - -$small_screen_font_size: 12pt; - -$header_height: 100px; -$header_logo_maxwidth: 300px; - -$info_box_color: #c9c8ff; -$info_box_border_color: darken($info_box_color, 20%); -$error_box_color: #ffdfdf; -$error_box_border_color: darken($error_box_color, 20%); -$success_box_color: #bafb95; -$success_box_border_color: darken($success_box_color, 20%); -$warning_box_color: #ffd36c; -$warning_box_border_color: darken($warning_box_color, 20%); diff --git a/cas_eleves/scss/style.scss b/cas_eleves/scss/style.scss deleted file mode 100644 index 655c45d..0000000 --- a/cas_eleves/scss/style.scss +++ /dev/null @@ -1,153 +0,0 @@ -@charset "utf-8"; -@import "fonts.css"; -@import "_mixins"; -@import "_params"; -@import "_forms"; - -html { - box-sizing: border-box; -} -*, *:before, *:after { - box-sizing: inherit; -} - -body { - background-color: $page_bg_color; - font-size: $font_size; - font-family: $font_family; - color: $page_text_color; - margin: 0; - - display: flex; - flex-direction: column; - align-items: center; - - min-height: 100vh; - - @media (max-width: $responsive_mid_threshold) { - font-size: $mid_font_size; - } - @media (max-width: $responsive_small_threshold) { - font-size: $small_font_size; - display: flex; - align-items: center; - justify-content: space-evenly; - } -} - -header { - display: flex; - justify-content: space-between; - align-items: stretch; - - margin: 0; - margin-bottom: 50px; - padding: 20px 30px; - padding-bottom: 0; - - width: $page_width; - - @media (max-width: $responsive_mid_threshold) { - width: $page_mid_width; - } - @media (max-width: $responsive_small_threshold) { - display: none; - } - - #headtext { - display: flex; - flex-direction: column; - align-items: end; - justify-content: space-evenly; - - font-size: 1.2em; - color: $secondary_color; - font-weight: bold; - } -} - -.logo { - height: $logo_height; - max-width: $logo_maxwidth; -} - -#ens_logo_foot { - display: none; - - @media (max-width: $responsive_small_threshold) { - display: block; - margin: 30px; - } -} - -main { - background-color: $page_main_color; - border: 3px solid $main_border_color; - border-radius: $main_border_radius; - padding: 15px; - - width: $page_width; - @media (max-width: $responsive_mid_threshold) { - width: $page_mid_width; - } - @media (max-width: $responsive_small_threshold) { - width: 90%; - } - - h2 { - font-size: 1.2em; - @media (max-width: $responsive_small_threshold) { - font-size: 1.1em; - } - text-align: center; - color: $secondary_color; - } -} - -a { - text-decoration: underline; - color: $page_link_color; - border-radius: 3px; - - &:hover { - color: darken($page_link_color, 20%); - } -} - -:focus { - outline: none; - box-shadow: 0 0 1.5px 1px $page_link_color; -} -::-moz-focus-inner { - border: none; -} - -button, .btn_row a { - @include button; - margin: 10px 5px; - - p { - margin: 0; - } -} - -.messages { - list-style-type: none; - margin: 10px 0; - padding: 0; - font-size: 0.8em; - - li { - margin: 8px 0; - } -} - -.error { @include error_box; } -.info { @include info_box; } -.warning { @include warning_box; } -.success { @include success_box; } - -.antispam { - unicode-bidi: bidi-override; - direction: rtl; -} diff --git a/cas_eleves/static/img/logo.svg b/cas_eleves/static/img/logo.svg deleted file mode 100644 index 616bc58..0000000 --- a/cas_eleves/static/img/logo.svg +++ /dev/null @@ -1,1780 +0,0 @@ - - - -image/svg+xml \ No newline at end of file