Passage en SCSS + globalisation et refactorisation

pull/4/head
Clement FERRERE 3 years ago
parent d6fa74b6ad
commit 37ff4f3c5e
  1. 2
      angular.json
  2. 27
      src/app/components/agence/agence-edit/agence-edit.component.css
  3. 0
      src/app/components/agence/agence-edit/agence-edit.component.scss
  4. 2
      src/app/components/agence/agence-edit/agence-edit.component.ts
  5. 59
      src/app/components/agence/agence.component.scss
  6. 10
      src/app/components/collaborateur/collaborateur-detail/collaborateur-detail.component.scss
  7. 27
      src/app/components/collaborateur/collaborateur-edit/collaborateur-edit.component.scss
  8. 81
      src/app/components/collaborateur/collaborateur.component.css
  9. 3
      src/app/components/collaborateur/collaborateur.component.scss
  10. 2
      src/app/components/collaborateur/collaborateur.component.ts
  11. 72
      src/styles.scss

@ -44,7 +44,7 @@
], ],
"styles": [ "styles": [
"node_modules/bootstrap/dist/css/bootstrap.min.css", "node_modules/bootstrap/dist/css/bootstrap.min.css",
"src/styles.css" "src/styles.scss"
], ],
"scripts": [ "scripts": [
"./node_modules/jquery/dist/jquery.min.js", "./node_modules/jquery/dist/jquery.min.js",

@ -1,27 +0,0 @@
label {
color: #435960;
font-weight: bold;
}
input {
font-size: 1em;
padding: .3rem;
margin: .5rem;
}
button {
padding: 5px;
text-decoration: none;
margin: 2px;
display: inline-block;
background-color: #E77620;
color: white;
border-radius: 4px;
}
button:hover {
background-color: #42545C;
}
button:disabled {
background-color: #eee;
color: #ccc;
cursor: auto;
}

@ -7,7 +7,7 @@ import {Location} from "@angular/common";
@Component({ @Component({
selector: 'app-agence-edit', selector: 'app-agence-edit',
templateUrl: './agence-edit.component.html', templateUrl: './agence-edit.component.html',
styleUrls: ['./agence-edit.component.css'] styleUrls: ['./agence-edit.component.scss']
}) })
export class AgenceEditComponent implements OnInit { export class AgenceEditComponent implements OnInit {
agence : Agence | undefined; agence : Agence | undefined;

@ -1,61 +1,2 @@
label {
color: #435960;
font-weight: bold;
}
input {
font-size: 1em;
padding: .3rem;
margin: .5rem;
}
.agences {
margin: 0 0 2em 0;
list-style-type: none;
padding: 0;
width: 15em;
}
.agences li {
position: relative;
cursor: pointer;
}
.agences li:hover {
left: .1em;
}
.agences a, td a {
padding: 5px;
text-decoration: none;
margin: 2px;
display: inline-block;
background-color: #E77620;
color: white;
border-radius: 4px;
}
.agences a:hover {
background-color: #42545C;
}
.agences a:active {
background-color: #525252;
color: #fafafa;
}
.agences .badge{
display: inline-block;
font-size: small;
color: white;
padding: 0.8em 0.7em 0 0.7em;
background-color:#405061;
line-height: 1em;
position: relative;
left: -1px;
top: -4px;
height: 1.8em;
min-width: 16px;
text-align: right;
margin-right: .8em;
border-radius: 4px 0 0 4px;
}

@ -1,9 +1 @@
label {
color: #435960;
font-weight: bold;
}
input {
font-size: 1em;
padding: .3rem;
margin: .5rem;
}

@ -1,27 +0,0 @@
label {
color: #435960;
font-weight: bold;
}
input {
font-size: 1em;
padding: .3rem;
margin: .5rem;
}
button {
padding: 5px;
text-decoration: none;
margin: 2px;
display: inline-block;
background-color: #E77620;
color: white;
border-radius: 4px;
}
button:hover {
background-color: #42545C;
}
button:disabled {
background-color: #eee;
color: #ccc;
cursor: auto;
}

@ -1,81 +0,0 @@
/* HeroesComponent's private CSS styles */
label {
color: #435960;
font-weight: bold;
}
input {
font-size: 1em;
padding: .3rem;
margin: .5rem;
}
.collaborateurs {
margin: 0 0 2em 0;
list-style-type: none;
padding: 0;
width: 15em;
}
.collaborateurs li {
position: relative;
cursor: pointer;
}
.collaborateurs li:hover {
left: .1em;
}
.collaborateurs a, td a {
padding: 5px;
text-decoration: none;
margin: 2px;
display: inline-block;
background-color: #E77620;
color: white;
border-radius: 4px;
}
.collaborateurs a:hover {
background-color: #42545C;
}
.collaborateurs a:active {
background-color: #525252;
color: #fafafa;
}
.collaborateurs .badge {
display: inline-block;
font-size: small;
color: white;
padding: 0.8em 0.7em 0 0.7em;
background-color:#405061;
line-height: 1em;
position: relative;
left: -1px;
top: -4px;
height: 1.8em;
min-width: 16px;
text-align: right;
margin-right: .8em;
border-radius: 4px 0 0 4px;
}
button {
padding: 5px;
text-decoration: none;
margin: 2px;
display: inline-block;
background-color: #E77620;
color: white;
border-radius: 4px;
}
button:hover {
background-color: #42545C;
}
button:disabled {
background-color: #eee;
color: #ccc;
cursor: auto;
}

@ -6,7 +6,7 @@ import {Collaborateur} from "../../interfaces/collaborateur";
@Component({ @Component({
selector: 'app-collaborateur', selector: 'app-collaborateur',
templateUrl: './collaborateur.component.html', templateUrl: './collaborateur.component.html',
styleUrls: ['./collaborateur.component.css'] styleUrls: ['./collaborateur.component.scss']
}) })
export class CollaborateurComponent implements OnInit { export class CollaborateurComponent implements OnInit {
collaborateurs : Collaborateur[] = []; collaborateurs : Collaborateur[] = [];

@ -1 +1,73 @@
/* You can add global styles to this file, and also import other style files */ /* You can add global styles to this file, and also import other style files */
$primary: #183650;
$secondary: #e77620;
$accent: #e1e4e6;
$error: #b53333;
$success: #0b7023;
$info: #fff;
$warning: #e07612;
label {
color: $primary;
font-weight: bold;
}
input {
font-size: 1em;
padding: .3rem;
margin: .5rem;
}
button {
padding: 5px;
text-decoration: none;
margin: 2px;
display: inline-block;
background-color: $secondary;
color: white;
border-radius: 4px;
}
button:hover {
background-color: $primary;
}
button:disabled {
background-color: #eee;
color: #ccc;
cursor: auto;
}
.entities {
margin: 0 0 2em 0;
list-style-type: none;
padding: 0;
width: 15em;
}
.entities li {
position: relative;
cursor: pointer;
}
.entities li:hover {
left: .1em;
}
.entities a, td a {
padding: 5px;
text-decoration: none;
margin: 2px;
display: inline-block;
background-color: $secondary;
color: white;
border-radius: 4px;
}
.entities a:hover {
background-color: #42545C;
}
.entities a:active {
background-color: #525252;
color: #fafafa;
}

Loading…
Cancel
Save