started home styling
This commit is contained in:
@ -252,6 +252,83 @@ aside.messages{
|
||||
// front
|
||||
article.node--type-frontpage{
|
||||
.node__content{
|
||||
|
||||
&>section{
|
||||
padding:1em;
|
||||
&.home-intro{
|
||||
padding:0;
|
||||
background-color: #fff;
|
||||
}
|
||||
&.home-database{
|
||||
background-color: #69cdcf;
|
||||
display:grid;
|
||||
// $c: 300px;
|
||||
// grid-template-columns: $c calc(100% - #{$c});
|
||||
grid-template-columns: 300px 1fr;
|
||||
grid-column-gap: 1em;
|
||||
// grid-template-rows: min-content;
|
||||
color: #fff;
|
||||
.field--name-field-a-database{
|
||||
grid-column: 1;
|
||||
// outline: 1px solid green;
|
||||
}
|
||||
.cards-list-home{
|
||||
grid-column: 2;
|
||||
position: relative;
|
||||
// max-height: (130px*1.4)*3;
|
||||
max-height: 580px;
|
||||
overflow-y: hidden;
|
||||
ul{
|
||||
width:100%;
|
||||
margin:0; padding:0;
|
||||
display: grid;
|
||||
justify-content: center;
|
||||
grid-template-columns: repeat(auto-fill, minmax(50px, 130px));
|
||||
grid-template-rows: 1fr;
|
||||
grid-gap: 1em;
|
||||
// justify-content:start;
|
||||
li{
|
||||
position: relative;
|
||||
list-style: none;
|
||||
margin:0; padding:0;
|
||||
padding-top: 140%;
|
||||
.card{
|
||||
position:absolute;
|
||||
top:0; bottom:0;
|
||||
left:0; right:0;
|
||||
width: auto;
|
||||
height: auto;
|
||||
.field--name-field-short-description{
|
||||
font-size: 0.756em;
|
||||
line-height: 0.9;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
&.home-showrooms{
|
||||
background-color: #50aa3c;
|
||||
display:grid;
|
||||
// $c: 300px;
|
||||
// grid-template-columns: $c calc(100% - #{$c});
|
||||
grid-template-columns: 300px 1fr;
|
||||
grid-column-gap: 1em;
|
||||
.field--name-field-showrooms{
|
||||
grid-column: 1;
|
||||
}
|
||||
.field--name-computed-showrooms-reference{
|
||||
grid-column: 2;
|
||||
}
|
||||
}
|
||||
&.home-blabla{
|
||||
background-color: #9458aa;
|
||||
}
|
||||
&.home-pricing{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
.field--name-field-what-is-materio,
|
||||
.field--name-field-a-database,
|
||||
.field--name-field-showrooms,
|
||||
@ -283,6 +360,7 @@ article.node--type-frontpage{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -325,8 +403,11 @@ article.node--type-frontpage{
|
||||
|
||||
article.card{
|
||||
position: relative;
|
||||
width:$column_width; height:295px;
|
||||
box-shadow: 0 0 5px rgba(0,0,0,0.2);
|
||||
width:$column_width; height:295px;
|
||||
// &.card-small{
|
||||
// width:100px; height:140px;
|
||||
// }
|
||||
// focused
|
||||
// box-shadow: 0 0 7px rgba(0,0,0,0.9);
|
||||
header{
|
||||
|
Reference in New Issue
Block a user