css liens ressources pages static

This commit is contained in:
2023-06-27 12:57:12 +02:00
parent fd0de27375
commit f61446230f
6 changed files with 454 additions and 320 deletions
@@ -269,98 +269,107 @@
}
.node-type-ressource{
display: flex;
flex-direction: column;
border: 2px solid $blue-light;
padding: 1rem;
padding: 1rem;
height: fit-content;
margin-bottom: 1rem;
background-color: $white;
&:first-of-type{
border-top: 1px solid $blue-light;
padding-top: 1rem;
&::after{
content: url("../images/pictos/noun_Arrow_3771902.svg");
align-self: flex-end;
}
}
.field--name-title{
h2{
margin: 0;
}
a{
color: $black;
font-size: 1.4rem;
font-weight: 600;
}
}
.field--name-field-auteur-s-{
font-weight: 800;
p{
margin: 0;
}
.field__label{
display:none;
}
}
.field--name-field-edition{
p{
margin: 0;
}
.field__label{
display:none;
}
}
.field--name-field-images{
display: none;
width: 50%;
img{
width: 100%;
height: auto;
}
}
.field--name-field-type-de-ressource{
text-transform: uppercase;
a{
// &:first-of-type{
// border-top: 1px solid $blue-light;
// padding-top: 1rem;
// &::after{
// content: url("../images/pictos/noun_Arrow_3771902.svg");
// align-self: flex-end;
// }
// }
display: flex;
flex-direction: column;
&::after{
content: url("../images/pictos/noun_Arrow_3771902.svg");
align-self: flex-end;
}
div{
display: flex;
flex-direction: column;
.field--name-field-type-de-ressource{
order: 2;
text-transform: uppercase;
color: $blue-light;
font-weight: 900;
font-size: 0.8rem;
}
}
.field--name-field-mots-clefs{
display: flex;
margin-top: 2rem;
flex-direction: row;
flex-wrap: wrap;
// &::after{
// content: url("../images/pictos/noun_Arrow_3771902.svg");
// align-self: center;
// }
.field__item{
margin-right: 1rem;
padding-left: 0.3rem;
padding-right: 0.3rem;
a{
background: $blue-dark;
color: $white;
font-weight: 800;
vertical-align: super;
padding-left: 0.1rem;
padding-right: 0.1rem;
display: inline-flex;
.field--name-title{
order: 3;
h2{
margin: 0;
a{
color: $black;
font-size: 1rem;
font-weight: 900;
font-style: italic;
}
}
}
}
ul.links.inline{
display: none;
.field--name-field-sous-titre{
order:4;
}
.field--name-field-auteur-s-{
order: 5;
font-weight: 800;
p{
margin: 0;
}
.field__label{
display:none;
}
}
.field--name-field-edition{
p{
margin: 0;
}
.field__label{
display:none;
}
}
.field--name-field-images{
// display: none;
order: 1;
width: 25%;
img{
width: 100%;
height: auto;
}
}
.field--name-field-mots-clefs{
order: 6;
display: flex;
margin-top: 2rem;
flex-direction: row;
flex-wrap: wrap;
.field__item{
margin-right: 0.5rem;
padding-left: 0.3rem;
padding-right: 0.3rem;
font-size: 0.8rem;
a{
background: $blue-dark;
color: $white;
font-weight: 800;
vertical-align: super;
padding-left: 0.1rem;
padding-right: 0.1rem;
display: inline-flex;
}
}
}
ul.links.inline{
display: none;
}
}
}
}
@@ -15,7 +15,8 @@
// texte présentation
.block-config-pages-block{
grid-column: 1 / span 6;
grid-column: 1 / span 4;
margin-left: 1rem;
.config_pages--base-de-donnees--full{
// .field--name-field-introduction{
@@ -34,25 +35,12 @@
// }
}
}
// .block-views-blockcollection--block-1{
// grid-column: 3 / span 5;
// // margin: 2rem;
// // .field--name-field-introduction{
// // width: 65%;
// margin: auto;
// background: $white;
// margin-top:5rem;
// // }
// @media (max-width: 810px){
// padding: 2rem;
// margin-top:1rem;
// }
// }
//button proposer une ressource
.block-block-content82917d0c-5004-4bfb-af66-ce334782d82d{
// visibility: hidden;
grid-column: 6 / span 6;
grid-column: 6 / span 5;
grid-row: 1;
margin-top: 4rem;
// margin-right: 1rem;
@@ -61,7 +49,7 @@
height: fit-content;
width: 100%;
// margin-left: 2rem;
grid-row: 2;
// grid-row: 1;
.display{
display: block;
}
@@ -97,25 +85,72 @@
// grille des ressources
.block-views-blockbase-de-donnees-block-1{
margin-top: 2rem;
width: 100%;
grid-column: 1 / span 6;
.view-filters{
display: flex;
flex-direction: row;
flex-wrap: wrap;
background-color: $white;
margin-top: 2rem;
margin-left: 1rem;
margin-bottom: 2rem;
.views-exposed-form-base-de-donnees-block-1{
margin-bottom: 5rem;
&::before{
content: "Filtrer par : ";
padding-right: 1rem;
@media (max-width: 479px){
padding-bottom: 1rem;
}
}
#views-exposed-form-base-de-donnees-block-1{
width: fit-content;
display: flex;
.js-form-item.form-item.js-form-type-select.form-item-field-type-de-ressource-target-id.js-form-item-field-type-de-ressource-target-id{
width: fit-content;
}
.form-item{
width: fit-content;
}
.form-item-field-type-de-ressource-target-id{
width: fit-content;
flex-direction: row;
// .js-form-item.form-item.js-form-type-select.form-item-field-type-de-ressource-target-id.js-form-item-field-type-de-ressource-target-id{
// width: fit-content;
// padding-right: 1rem;
// padding-left: 1rem;
// }
// .form-item{
// width: fit-content;
// }
// .form-item-field-type-de-ressource-target-id{
// width: fit-content;
// }
#edit-actions{
display: flex;
flex-direction: column;
justify-content: space-between;
#edit-submit-base-de-donnees{
background-color: $blue-light;
color: white;
text-transform: uppercase;
border: none;
padding: 0.1rem 0.7rem;
margin-left: 2rem;
@media (max-width: 479px){
margin-left: 0rem;
margin-right: 2rem;
}
}
#edit-reset{
background-color: $blue-light;
color: white;
text-transform: uppercase;
border: none;
padding: 0.1rem 0.7rem;
margin-top: 1rem;
margin-left: 1rem;
}
}
}
@@ -139,23 +174,9 @@
display: flex;
flex-direction: column;
border: 2px solid $blue-light;
margin: 1rem;
margin-left: 1rem;
margin-bottom: 1rem ;
padding: 1rem;
// &:hover{
// background-color: $blue-light;
// .field--name-field-mots-clefs{
// // &::after{
// // content: url("../images/pictos/noun_Arrow_3771902.svg");
// // }
// }
// }
// &::after{
// content: url("../images/pictos/noun_Arrow_3771902.svg");
// align-self: end;
// margin-top: 1rem;
// }
.field--name-field-type-de-ressource{
text-transform: uppercase;
@@ -172,7 +193,6 @@
a{
color: $black;
font-size: 1rem;
// font-weight: 600;
font-weight: 900;
font-style: italic;
}
@@ -197,7 +217,7 @@
}
}
.field--name-field-images{
display: none;
// display: none;
width: 50%;
img{
width: 100%;
@@ -210,13 +230,6 @@
flex-direction: row;
flex-wrap: wrap;
// &::after{
// content: url("../images/pictos/noun_Arrow_3771902.svg");
// align-self: center;
// }
.field__item{
margin-right: 0.5rem;
+90 -60
View File
@@ -144,6 +144,7 @@
color: $blue-light;
padding-left: 0.8rem;
padding-top: 1rem;
padding-bottom: 1rem;
margin-bottom: 1rem;
span:nth-of-type(2){
@@ -155,16 +156,16 @@
margin: auto;
::before{
content: url("../images/pictos/noun_Download_file_307900.svg");
min-width:40px;
min-width:25px;
height: auto;
padding-right: 0.5rem;
display: inline-flex;
align-items: center;
// display: inline-flex;
// align-items: center;
}
a{
hyphens: auto;
display: inline-flex;
align-items: center;
// align-items: center;
color: $blue-light;
font-weight: 800;
// max-width: 80px ;
@@ -178,27 +179,29 @@
margin: auto;
height: fit-content;
border: 2px solid $blue-light;
min-height: 4rem;
min-height: 2rem;
background: $white;
color: $blue-light;
padding-left: 0.8rem;
padding-top: 1rem;
padding-bottom: 1rem;
margin-bottom: 1rem;
}
a{
display: inline-flex;
align-items: center;
// align-items: center;
justify-items: center;
color: $blue-light;
font-weight: 800;
&::before{
content: url("../images/pictos/noun_External Link_674151.svg");
min-width: 40px;
min-width: 25px;
height: auto;
padding-right: 0.5rem;
display: inline-flex;
align-items: center;
// display: inline-flex;
// align-items: center;
}
svg.ext{
display: none;
@@ -219,67 +222,94 @@
}
.node-type-ressource{
display: flex;
flex-direction: column;
border: 2px solid $blue-light;
padding: 1rem;
height: fit-content;
margin-bottom: 1rem;
background-color: $white;
&:first-of-type{
border-top: 1px solid $blue-light;
padding-top: 1rem;
&::after{
content: url("../images/pictos/noun_Arrow_3771902.svg");
align-self: flex-end;
margin-left: 1rem;
margin-bottom: 1rem ;
padding: 1rem;
div{
display: flex;
flex-direction: column;
.field--name-field-type-de-ressource{
order: 2;
text-transform: uppercase;
color: $blue-light;
font-weight: 900;
font-size: 0.8rem;
}
}
.field--name-title{
a{
color: $black;
font-size: 1.4rem;
font-weight: 600;
.field--name-title{
order: 3;
h2{
margin: 0;
a{
color: $black;
font-size: 1rem;
font-weight: 900;
font-style: italic;
}
}
}
}
.field--name-field-auteur-s-{
font-weight: 800;
p{
margin: 0;
.field--name-field-sous-titre{
order:4;
}
.field__label{
display:none;
.field--name-field-auteur-s-{
order: 5;
font-weight: 800;
p{
margin: 0;
}
.field__label{
display:none;
}
}
}
.field--name-field-edition{
p{
margin: 0;
.field--name-field-edition{
p{
margin: 0;
}
.field__label{
display:none;
}
}
.field__label{
display:none;
.field--name-field-images{
// display: none;
order: 1;
width: 25%;
img{
width: 100%;
height: auto;
}
}
}
.field--name-field-images{
display: none;
width: 50%;
img{
width: 100%;
height: auto;
.field--name-field-mots-clefs{
order: 6;
display: flex;
margin-top: 2rem;
flex-direction: row;
flex-wrap: wrap;
.field__item{
margin-right: 0.5rem;
padding-left: 0.3rem;
padding-right: 0.3rem;
font-size: 0.8rem;
a{
background: $blue-dark;
color: $white;
font-weight: 800;
vertical-align: super;
padding-left: 0.1rem;
padding-right: 0.1rem;
display: inline-flex;
}
}
}
ul.links.inline{
display: none;
}
}
.field--name-field-type-de-ressource{
display: inline-flex;
margin-top: 2rem;
background: $blue-dark;
margin-right: 1rem;
padding-left: 0.3rem;
padding-right: 0.3rem;
color: $white;
font-weight: 800;
vertical-align: middle;
}
}
}
}