misc: unite apa custom stylres in includes/

This commit is contained in:
Frédéric Péters 2017-11-07 08:04:52 +01:00
parent 254bf7bca7
commit 9f9bd8f949
4 changed files with 73 additions and 64 deletions

70
static/includes/_apa.scss Normal file
View File

@ -0,0 +1,70 @@
/* apa-users cell */
div.apa-user {
position: relative;
h3 {
margin-top: 0;
}
a.apa-user-link {
display: block;
color: $font-color;
background: white;
padding-top: 10px;
padding-left: 10px;
padding-bottom: 20px;
padding-right: 40px;
@include vendor-prefix('transition', 'background 0.2s linear');
&:hover {
background-color: #eee;
}
}
a.remove {
display: none;
position: absolute;
right: 20px;
top: 5px;
width: 3ex;
text-align: center;
height: 3ex;
&:hover {
color: red ;
}
font-weight: bold;
}
a.apa-user-link:hover + a.remove {
display: block;
}
}
/* apa-user-info cell */
div.apa-user-info {
h3, p {
margin-left: 0;
}
p.date-situation {
margin-top: 0;
}
div.tutelles {
margin-top: 1rem;
}
}
/* apa-historique & apa-droits cells */
div.apa-historique,
div.apa-droits {
div.apa-dossier {
p, h3 {
margin: 0;
}
h3 {
margin-bottom: 1ex;
}
a {
display: block;
padding: 1ex;
&:hover {
background-color: #eee;
}
}
margin-bottom: 2ex;
}
}

View File

@ -2,4 +2,5 @@
@import 'vars';
@import '../includes/publik';
@import '../includes/apa';
@import 'custom';

View File

@ -46,71 +46,8 @@ div#nav {
/* apa-users cell */
div.apa-user {
position: relative;
h3 {
margin-top: 0;
}
a.apa-user-link {
display: block;
color: $font-color;
background: white url(img/profile.png) no-repeat 10px 15px;
padding-top: 10px;
padding-left: 65px;
padding-bottom: 20px;
padding-right: 40px;
@include vendor-prefix('transition', 'background 0.2s linear');
&:hover {
background-color: #eee;
}
}
a.remove {
display: none;
position: absolute;
right: 20px;
top: 5px;
width: 3ex;
text-align: center;
height: 3ex;
&:hover {
color: red ;
}
font-weight: bold;
}
a.apa-user-link:hover + a.remove {
display: block;
}
}
/* apa-user-info cell */
div.apa-user-info {
h3, p {
margin-left: 0;
}
p.date-situation {
margin-top: 0;
}
div.tutelles {
margin-top: 1rem;
}
}
/* apa-historique & apa-droits cells */
div.apa-historique,
div.apa-droits {
div.apa-dossier {
p, h3 {
margin: 0;
}
h3 {
margin-bottom: 1ex;
}
a {
display: block;
padding: 1ex;
&:hover {
background-color: #eee;
}
}
margin-bottom: 2ex;
padding-left: 70px;
}
}

View File

@ -4,4 +4,5 @@
@import '../includes/publik';
@import '../includes/categories';
@import '../includes/dashboard';
@import '../includes/apa';
@import 'custom';