From 61bb08f9ff1f309c209c7df1161c1af63b5bd071 Mon Sep 17 00:00:00 2001
From: Tykayn
Date: Wed, 16 Feb 2022 16:05:06 +0100
Subject: [PATCH] step 5 : checkboxes withotu material design
---
.../advanced-config.component.html | 45 +++++++++++++------
.../advanced-config.component.scss | 42 +++++++++++++++--
.../advanced-config.component.ts | 1 +
3 files changed, 71 insertions(+), 17 deletions(-)
diff --git a/src/app/features/administration/form/advanced-config/advanced-config.component.html b/src/app/features/administration/form/advanced-config/advanced-config.component.html
index 6a7bafe8..d86f2cf3 100644
--- a/src/app/features/administration/form/advanced-config/advanced-config.component.html
+++ b/src/app/features/administration/form/advanced-config/advanced-config.component.html
@@ -42,7 +42,7 @@
/>
@@ -141,14 +144,28 @@
{{ 'advanced.notifications_description' | translate }}
-
- {{ 'advanced.notifications_vote' | translate }}
-
+
-
- {{ 'advanced.notifications_comment' | translate }}
-
+
diff --git a/src/app/features/administration/form/advanced-config/advanced-config.component.scss b/src/app/features/administration/form/advanced-config/advanced-config.component.scss
index d72f8dd3..ac821e00 100644
--- a/src/app/features/administration/form/advanced-config/advanced-config.component.scss
+++ b/src/app/features/administration/form/advanced-config/advanced-config.component.scss
@@ -5,20 +5,49 @@
margin-left: 1em;
}
}
-
+.aside-label {
+ min-height: 1.5rem;
+ width: 100%;
+ display: inline-block;
+ margin-left: 0.5em;
+ line-height: 2.5rem;
+ img,
+ input {
+ float: left;
+ min-height: 1.5rem;
+ margin-right: 1rem;
+ }
+ margin-bottom: 0.5rem;
+}
input,
textarea {
margin-top: 0.5em;
margin-bottom: 1.5em;
width: 100%;
+ &[type='checkbox'] {
+ width: 1.5rem;
+ height: 1.5rem;
+ border-radius: 0.5rem;
+ border: solid 1px $font_color;
+ float: left;
+ }
+ + label {
+ height: 1.5rem;
+ width: 90%;
+ display: inline-block;
+ margin-left: 0.5em;
+ float: left;
+ clear: right;
+ }
}
.domain-custom-box {
border-radius: 3px;
height: 1.5em;
width: 100%;
- margin: 1rem;
display: block;
+ padding: 0;
+ margin: 0 0 1rem;
.domain {
border: solid 1px #eee;
@@ -27,6 +56,8 @@ textarea {
width: 40%;
background: #ddd;
text-align: right;
+ overflow: hidden;
+ text-overflow: ellipsis;
}
.inline-input {
@@ -36,7 +67,8 @@ textarea {
background: #fff;
margin: 0;
float: left;
- width: 49%;
+ width: 59%;
+ line-height: 1.5rem;
}
}
.permissions-modification {
@@ -50,3 +82,7 @@ textarea {
width: 90%;
}
}
+.pass-validation-text {
+ @extend .aside-label;
+ line-height: 1.6rem;
+}
diff --git a/src/app/features/administration/form/advanced-config/advanced-config.component.ts b/src/app/features/administration/form/advanced-config/advanced-config.component.ts
index 62d67f9f..d10ea338 100644
--- a/src/app/features/administration/form/advanced-config/advanced-config.component.ts
+++ b/src/app/features/administration/form/advanced-config/advanced-config.component.ts
@@ -18,6 +18,7 @@ export class AdvancedConfigComponent implements OnInit {
@Input()
public form: FormGroup;
domain_url: string;
+ display_regen_slug: boolean = false;
constructor(public pollService: PollService) {}
ngOnInit(): void {