finish page species
This commit is contained in:
parent
6fff7422e8
commit
a1a98d67b5
13 changed files with 1127 additions and 512 deletions
57
assets/css/pages/_home-item-nav.scss
Normal file
57
assets/css/pages/_home-item-nav.scss
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
.item-nav{
|
||||
border: 1.5px solid var(--color-txt);
|
||||
border-radius: var(--radius-btn);
|
||||
background-color: var(--white);
|
||||
color: var(--color-txt);
|
||||
// background-color: transparent;
|
||||
|
||||
padding: var(--padding-inner);
|
||||
padding-bottom: calc(var(--padding-inner)*0.5);
|
||||
|
||||
min-height: calc(var(--unit)*5);
|
||||
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
&:hover{
|
||||
background-color: var(--color-light);
|
||||
// color: white;
|
||||
}
|
||||
|
||||
cursor: pointer;
|
||||
|
||||
.title{
|
||||
font-family: var(--font-title);
|
||||
font-size: 1.4rem;
|
||||
line-height: 1.1;
|
||||
padding-right: 1ch;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
.btn--go-to{
|
||||
width: var(--unit);
|
||||
height: var(--unit);
|
||||
align-self: end;
|
||||
font-family: var(--font-title);
|
||||
position: relative;
|
||||
font-size: 14px;
|
||||
left: calc(var(--unit)*-0.25);
|
||||
transition: left .4s ease-in-out;
|
||||
}
|
||||
|
||||
.description{
|
||||
margin-top: 0.5em;
|
||||
flex-grow: 2;
|
||||
padding-right: 2ch;
|
||||
}
|
||||
|
||||
&:hover{
|
||||
border-color: var(--color-txt);
|
||||
.btn--go-to{
|
||||
left: calc(var(--unit)*0.25);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
274
assets/css/pages/_home.scss
Executable file
274
assets/css/pages/_home.scss
Executable file
|
|
@ -0,0 +1,274 @@
|
|||
@use "../abstracts/mixins.scss" as *;
|
||||
|
||||
|
||||
.home--section-tool{
|
||||
background-color: var(--data-color);
|
||||
&[data-type="base-connaissance"],
|
||||
&[data-type="livrets"]{
|
||||
color: var(--white);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#main_home {
|
||||
--max-w-home: 1100px;
|
||||
section {
|
||||
padding: calc(var(--unit)*3) var(--padding-body);
|
||||
position: relative;
|
||||
|
||||
.section--inner {
|
||||
max-width: var(--max-w-home);
|
||||
margin: 0 auto;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
.item-nav__group {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--spacing);
|
||||
}
|
||||
|
||||
.section--header {
|
||||
margin-bottom: calc(var(--spacing) * 4);
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 440px;
|
||||
gap: calc(var(--spacing)*1);
|
||||
}
|
||||
|
||||
.section--title {
|
||||
font-size: 2.8rem;
|
||||
font-family: var(--font-title);
|
||||
grid-column: span 2;
|
||||
}
|
||||
|
||||
.baseline {
|
||||
font-size: var(--fs-medium);
|
||||
max-width: 42ch;
|
||||
margin-top: calc(var(--spacing)*0.5);
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
.slideshow {
|
||||
width: 100%;
|
||||
height: calc(var(--unit)*13);
|
||||
|
||||
figure {
|
||||
height: calc(var(--unit)*11);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#home__hero {
|
||||
margin-bottom: 0;
|
||||
padding-bottom: calc(var(--unit)*1.5) !important;
|
||||
|
||||
.section--inner {
|
||||
display: block;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.section--title {
|
||||
font-size: 3.6em;
|
||||
|
||||
margin-bottom: calc(var(--unit)*1.5);
|
||||
color: var(--color);
|
||||
|
||||
|
||||
}
|
||||
|
||||
/* button{ display: none;} */
|
||||
.description {
|
||||
font-size: var(--fs-medium);
|
||||
|
||||
max-width: 48ch;
|
||||
margin: 0 auto;
|
||||
margin-bottom: calc(var(--unit)*1.5);
|
||||
}
|
||||
|
||||
.search--container {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.nav-hero {
|
||||
list-style: none;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: var(--unit);
|
||||
margin-top: calc(var(--unit)*1);
|
||||
margin-bottom: calc(var(--unit)*3);
|
||||
|
||||
|
||||
li {
|
||||
|
||||
font-weight: 500;
|
||||
font-size: 1rem;
|
||||
min-width: 12ch;
|
||||
text-align: center;
|
||||
|
||||
border: 1.5px solid var(--data-color);
|
||||
color: var(--data-color);
|
||||
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: calc(var(--unit)*1.5);
|
||||
padding: 0px 1.5ch;
|
||||
border-radius: var(--radius-btn);
|
||||
cursor: pointer;
|
||||
|
||||
&:hover {
|
||||
background-color: var(--data-color-light);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
color: var(--data-color);
|
||||
font-weight: bold;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
#home__a-propos {
|
||||
|
||||
p,
|
||||
li {
|
||||
font-size: 1.6rem;
|
||||
margin-bottom: 1em;
|
||||
position: relative;
|
||||
|
||||
strong {
|
||||
color: var(--color-green)
|
||||
}
|
||||
}
|
||||
|
||||
ol li::marker {
|
||||
display: none;
|
||||
content: "";
|
||||
|
||||
}
|
||||
|
||||
ol {
|
||||
padding-left: 5ch;
|
||||
counter-reset: ol;
|
||||
|
||||
li {
|
||||
counter-increment: ol 1;
|
||||
position: relative;
|
||||
}
|
||||
}
|
||||
|
||||
ol li::before {
|
||||
font-size: 1.2rem;
|
||||
font-weight: bold;
|
||||
content: counter(ol);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: 2ch;
|
||||
height: 2ch;
|
||||
border-radius: 50%;
|
||||
border: 2px solid var(--color-green);
|
||||
color: var(--color-green);
|
||||
background-color: var(--color-green-light);
|
||||
position: absolute;
|
||||
left: -4ch;
|
||||
top: 4px;
|
||||
|
||||
}
|
||||
|
||||
.btn--solid {
|
||||
margin-top: calc(var(--unit)*2);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
.slideshow-scroll{
|
||||
width: 100vw;
|
||||
position: relative;
|
||||
left: calc((100vw - var(--max-w-home))*-0.5);
|
||||
padding-bottom: 20px;
|
||||
|
||||
overflow-y: scroll;
|
||||
@include hide-scrollbar();
|
||||
margin-top: calc(var(--spacing) * 4);
|
||||
margin-bottom: calc(var(--spacing) * 4);
|
||||
|
||||
.slideshow-scroll__warpper{
|
||||
// padding-left: calc((100vw - var(--max-w-home))*0.5);
|
||||
padding-left: var(--padding-body);
|
||||
display: flex;
|
||||
gap: var(--padding-inner);
|
||||
|
||||
|
||||
.slideshow-item{
|
||||
flex-shrink: 0;
|
||||
figure{
|
||||
height: 420px;
|
||||
width: 100%;
|
||||
img{
|
||||
width: 100%;
|
||||
aspect-ratio: 5/3;
|
||||
}
|
||||
}
|
||||
}
|
||||
&::after{
|
||||
content: "........................................";
|
||||
display: block;
|
||||
width: calc((100vw - var(--max-w-home))*1);
|
||||
color: transparent;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
.screenshot-booklet{
|
||||
display: flex;
|
||||
--size-page: 340px;
|
||||
--gap: var(--padding-inner);
|
||||
gap: var(--gap);
|
||||
width: calc(var(--size-page)*5 + var(--gap)*2);
|
||||
|
||||
.cover, .page{
|
||||
width: 300px;
|
||||
|
||||
img{
|
||||
border: 0.5px solid var(--color-txt-light);
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.double{
|
||||
display: flex;
|
||||
|
||||
}
|
||||
|
||||
.page + .page img{
|
||||
border-left-color: transparent!important;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
77
assets/css/pages/_species.scss
Normal file
77
assets/css/pages/_species.scss
Normal file
|
|
@ -0,0 +1,77 @@
|
|||
[data-page="species-by-families"],
|
||||
[data-page="species"]{
|
||||
|
||||
.group-sort-view{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
|
||||
flex-wrap: wrap;
|
||||
|
||||
grid-column: span 2;
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
border-bottom: 1px solid var(--color-x-light);
|
||||
padding-top: calc(var(--spacing)*1);
|
||||
padding-bottom: calc(var(--spacing)*0.5);
|
||||
margin-bottom: calc(var(--spacing)*1.5);
|
||||
|
||||
position: sticky;
|
||||
top: 0;
|
||||
background-color: var(--white);
|
||||
z-index: 50;
|
||||
}
|
||||
|
||||
.page-species{
|
||||
margin-bottom: 30vh;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
[data-page="species-by-families"]{
|
||||
.species-list{
|
||||
align-items: center;
|
||||
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
gap: calc(var(--spacing)*1);
|
||||
margin-bottom: calc(var(--spacing)*3);
|
||||
.taxon{
|
||||
width: calc(100%/3 - var(--spacing)*2/3);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
[data-page="species"]{
|
||||
|
||||
.page-species{
|
||||
grid-column: span 2;
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
|
||||
.species-list{
|
||||
display: grid;
|
||||
grid-gap: calc(var(--spacing)*1);
|
||||
grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
|
||||
|
||||
.taxon{
|
||||
align-self: start;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue