mirror of
https://framagit.org/framasoft/framadate/funky-framadate-front.git
synced 2023-08-25 13:53:14 +02:00
⚡ styling themes
This commit is contained in:
parent
f00afc94db
commit
23c6b9400e
@ -24,14 +24,14 @@
|
|||||||
| | [uuid](https://www.npmjs.com/package/uuid) | handle client-side generation of uuids |
|
| | [uuid](https://www.npmjs.com/package/uuid) | handle client-side generation of uuids |
|
||||||
|
|
||||||
---
|
---
|
||||||
|
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.2.1.
|
||||||
# Framadate
|
# Framadate
|
||||||
|
|
||||||
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.2.1.
|
A libre polling software make by contributors around the French association Framasoft.
|
||||||
|
|
||||||
## Development server
|
## Development server
|
||||||
|
|
||||||
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
|
Run `yarn start` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
|
||||||
|
|
||||||
## Code scaffolding
|
## Code scaffolding
|
||||||
|
|
||||||
|
@ -1,16 +1,14 @@
|
|||||||
<div id="big_container" [class]="themeClass">
|
<div id="big_container" [class]="themeClass">
|
||||||
|
<div class="container">
|
||||||
<app-header [isSidebarOpened]="isSidebarOpened" (toggleSidebarEE)="toggleSidebar($event)"></app-header>
|
<app-header [isSidebarOpened]="isSidebarOpened" (toggleSidebarEE)="toggleSidebar($event)"></app-header>
|
||||||
|
|
||||||
<main>
|
<main>
|
||||||
<router-outlet></router-outlet>
|
<router-outlet></router-outlet>
|
||||||
<app-feedback></app-feedback>
|
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
<app-footer></app-footer>
|
<app-footer></app-footer>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p-toast position="bottom-center"></p-toast>
|
<p-toast position="bottom-center"></p-toast>
|
||||||
|
|
||||||
<p-sidebar [(visible)]="isSidebarOpened">
|
<p-sidebar [(visible)]="isSidebarOpened">
|
||||||
<app-navigation></app-navigation>
|
<app-navigation></app-navigation>
|
||||||
</p-sidebar>
|
</p-sidebar>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<header>
|
<header class="big-header">
|
||||||
<nav class="navbar" role="navigation" aria-label="main navigation">
|
<nav class="navbar" role="navigation" aria-label="main navigation">
|
||||||
<div class="navbar-brand">
|
<div class="navbar-brand">
|
||||||
<a class="navbar-item">
|
<a class="navbar-item">
|
||||||
|
@ -0,0 +1,7 @@
|
|||||||
|
:host {
|
||||||
|
header {
|
||||||
|
.container {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -6,7 +6,7 @@ import { Theme } from '../enums/theme.enum';
|
|||||||
providedIn: 'root',
|
providedIn: 'root',
|
||||||
})
|
})
|
||||||
export class ThemeService {
|
export class ThemeService {
|
||||||
private _theme: BehaviorSubject<Theme> = new BehaviorSubject<Theme>(Theme.RED);
|
private _theme: BehaviorSubject<Theme> = new BehaviorSubject<Theme>(Theme.LIGHT);
|
||||||
public readonly theme: Observable<Theme> = this._theme.asObservable();
|
public readonly theme: Observable<Theme> = this._theme.asObservable();
|
||||||
|
|
||||||
public selectTheme(theme: Theme): void {
|
public selectTheme(theme: Theme): void {
|
||||||
|
@ -0,0 +1,5 @@
|
|||||||
|
:host {
|
||||||
|
.title {
|
||||||
|
color: #222;
|
||||||
|
}
|
||||||
|
}
|
@ -21,7 +21,7 @@
|
|||||||
// most general dom elements
|
// most general dom elements
|
||||||
@import './styles/partials/global';
|
@import './styles/partials/global';
|
||||||
@import './styles/partials/logo';
|
@import './styles/partials/logo';
|
||||||
// @import './styles/partials/navigation';
|
@import './styles/partials/navigation';
|
||||||
|
|
||||||
// main content elements
|
// main content elements
|
||||||
@import './styles/partials/main';
|
@import './styles/partials/main';
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
@charset "UTF-8";
|
@charset "UTF-8";
|
||||||
|
|
||||||
|
.ui-inputswitch{
|
||||||
|
margin-left: 1ch;
|
||||||
|
margin-right: 1ch;
|
||||||
|
}
|
||||||
|
|
||||||
.input-lg {
|
.input-lg {
|
||||||
display: block;
|
display: block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@ -59,3 +64,7 @@ li {
|
|||||||
display: block;
|
display: block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
button[type='submit']{
|
||||||
|
margin-top : 2em;
|
||||||
|
}
|
||||||
|
@ -18,14 +18,14 @@ nav {
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.active {
|
&.active, &.is-active {
|
||||||
color: $white;
|
color: $white;
|
||||||
background: $primary;
|
background: $primary_color;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
|
color: $primary_color;
|
||||||
&,
|
&,
|
||||||
&:hover {
|
&:hover {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
@ -81,3 +81,10 @@ a {
|
|||||||
padding-left: 1rem;
|
padding-left: 1rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// material override
|
||||||
|
.navbar{
|
||||||
|
margin-bottom: 0
|
||||||
|
}
|
||||||
|
a span.ui-steps-number{
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
@ -1,14 +1,18 @@
|
|||||||
#big_container {
|
#big_container {
|
||||||
background: $primary;
|
background: $primary;
|
||||||
|
|
||||||
.container {
|
main{
|
||||||
padding: 1em;
|
margin-bottom: 2em;
|
||||||
|
padding-bottom: 5em;
|
||||||
|
padding-top: 1em;
|
||||||
|
background: $white;
|
||||||
}
|
}
|
||||||
|
|
||||||
.big-header {
|
.big-header {
|
||||||
margin-bottom: 22px;
|
margin-bottom: 1em;
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
|
padding-bottom: 5em;
|
||||||
|
|
||||||
@extend .boxed-shadow;
|
@extend .boxed-shadow;
|
||||||
|
|
||||||
.column:last-of-type {
|
.column:last-of-type {
|
||||||
|
@ -6,10 +6,6 @@ $theme-color-tertiary: #ccc;
|
|||||||
background: #222;
|
background: #222;
|
||||||
color: #ddd;
|
color: #ddd;
|
||||||
|
|
||||||
.container {
|
|
||||||
padding: 1em;
|
|
||||||
}
|
|
||||||
|
|
||||||
main {
|
main {
|
||||||
background: #444;
|
background: #444;
|
||||||
}
|
}
|
||||||
@ -33,7 +29,7 @@ $theme-color-tertiary: #ccc;
|
|||||||
}
|
}
|
||||||
|
|
||||||
select {
|
select {
|
||||||
background: $theme-color-secondary;
|
background: $white;
|
||||||
border-color: $theme-color-secondary;
|
border-color: $theme-color-secondary;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
@ -54,5 +50,25 @@ $theme-color-tertiary: #ccc;
|
|||||||
.big-header {
|
.big-header {
|
||||||
margin-bottom: 22px;
|
margin-bottom: 22px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// bulma override
|
||||||
|
.button.is-primary, .button.btn--primary, button.is-primary, button.btn--primary, .is-primary.btn, .btn.btn--primary, .is-primary.back, .back.btn--primary{
|
||||||
|
background-color: $theme-color-primary !important;
|
||||||
|
color: $theme-color-tertiary !important;
|
||||||
|
}
|
||||||
|
// material override
|
||||||
|
.navbar-dropdown a.navbar-item.is-active,
|
||||||
|
body .ui-steps .ui-steps-item.ui-state-highlight .ui-steps-number,
|
||||||
|
a.navbar-item:focus, a.navbar-item:focus-within, a.navbar-item:hover, a.navbar-item.is-active, .navbar-link:focus, .navbar-link:focus-within, .navbar-link:hover, .navbar-link.is-active{
|
||||||
|
color: $theme-color-primary !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar-link:not(.is-arrowless)::after{
|
||||||
|
border-color: $theme-color-primary;
|
||||||
|
}
|
||||||
|
|
||||||
|
body .ui-inputswitch.ui-inputswitch-checked:not(.ui-state-disabled) .ui-inputswitch-slider{
|
||||||
|
background-color: $theme-color-primary;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -17,4 +17,16 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// material override
|
||||||
|
body .ui-steps .ui-steps-item.ui-state-highlight .ui-steps-number{
|
||||||
|
color: $primary_color;
|
||||||
|
}
|
||||||
|
body .ui-inputswitch.ui-inputswitch-checked:not(.ui-state-disabled) .ui-inputswitch-slider{
|
||||||
|
background-color: $primary_color;
|
||||||
|
}
|
||||||
|
.navbar-link:not(.is-arrowless)::after{
|
||||||
|
border-color: $primary_color;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,17 +1,36 @@
|
|||||||
|
$theme-color-primary: #850003;
|
||||||
|
$theme-color-secondary: #501016;
|
||||||
|
$theme-color-tertiary: #ffbca4;
|
||||||
|
|
||||||
#big_container {
|
#big_container {
|
||||||
&.theme-hot-covid {
|
&.theme-hot-covid {
|
||||||
background: #ffbca4;
|
background: $theme-color-tertiary;
|
||||||
color: #501016;
|
color: $theme-color-secondary;
|
||||||
|
|
||||||
|
main{
|
||||||
|
background: $white;
|
||||||
|
}
|
||||||
h1::after {
|
h1::after {
|
||||||
background-color: #850003;
|
background-color: $theme-color-primary;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn--primary:focus,
|
.btn--primary:focus,
|
||||||
.btn--primary:hover,
|
.btn--primary:hover,
|
||||||
.btn--primary:active,
|
.btn--primary:active,
|
||||||
.btn--primary {
|
.btn--primary {
|
||||||
background-color: #850003 !important;
|
background-color: $theme-color-primary !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// bulma override
|
||||||
|
.button.is-primary, .button.btn--primary, button.is-primary, button.btn--primary, .is-primary.btn, .btn.btn--primary, .is-primary.back, .back.btn--primary{
|
||||||
|
background-color: $theme-color-primary;
|
||||||
|
color: $theme-color-tertiary;
|
||||||
|
}
|
||||||
|
// material override
|
||||||
|
.navbar-dropdown a.navbar-item.is-active,
|
||||||
|
a.navbar-item:focus, a.navbar-item:focus-within, a.navbar-item:hover, a.navbar-item.is-active, .navbar-link:focus, .navbar-link:focus-within, .navbar-link:hover, .navbar-link.is-active{
|
||||||
|
color: $theme-color-primary;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user