123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861 |
- @import './base/reset';
- @import './base/variables';
- @import './base/colors';
- @import './base/grid-flex';
- @import './base/layout';
- @import './base/fonts';
- @import './base/transitions';
- /* The emerging W3C standard
- that is currently Firefox-only */
- * {
- scrollbar-width: thin;
- scrollbar-color: $grisclair rgba(255,255,255,0);
- }
- /* Works on Chrome/Edge/Safari */
- *::-webkit-scrollbar {
- width: 12px;
- }
- *::-webkit-scrollbar-track {
- background: rgba(255,255,255,0);
- }
- *::-webkit-scrollbar-thumb {
- background-color: $grisclair;
- border-radius: 20px;
- border: none;
- }
- body{
- color: #1a1a1a;
- }
- #root{
- }
- .red{
- background-color: red;
- color:white;
- }
- header[role="banner"]{
- div.wrapper{
- display: grid;
- grid-template-columns: 1fr 1fr;
- }
- h1.site-title{
- grid-column: 1;
- margin:0;
- font-size: 1em;
- }
- nav#header-menu{
- grid-column: 2;
- text-align: right;
- >ul>li{
- display: inline-block;
- margin-right: 1em;
- position: relative;
- >ul{
- position: absolute;
- top:1em; right:-1em;
- overflow: hidden;
- padding-bottom: 0.5em;
- background-color: white;
- >li{
- padding:0 1em;
- // margin-right: -1em;
- transition: height 0.3s ease-in-out;
- height:0;
- overflow: hidden;
- }
- }
- &:hover{
- >ul>li{
- height:1em;
- }
- }
- }
- li>span,li>a{
- font-size: 0.9em;
- color: $bleuroi;
- text-transform: uppercase;
- }
- }
- }
- section[role="main-content"]{
- #home{
- header{
- text-align: center;
- h1{
- color: $bleuroi;
- font-size: 8em;
- font-weight: 300;
- margin:15vh 0 0;
- }
- h2{
- color: $or;
- font-size: 2em;
- font-weight: 300;
- margin:1em 0 0;
- text-transform: uppercase;
- letter-spacing: 0.2em;
- sup{
- // line-height: 5em;
- vertical-align:text-top;
- font-size: 0.7em
- }
- }
- }
- $filet_space:8em;
- $decallage: 0.5em;
- section{
- padding-top: $filet_space;
- }
- div.teasers{
- display: flex;
- flex-direction: row;
- flex-wrap: nowrap;
- position: relative;
- padding-right: 0;
- article{
- box-sizing: border-box;
- flex-basis: percentage(2 / ( $default_sum - 6) );
- padding-right: $default_gap;
- @include fontsans;
- h1{
- color: $bleuroi;
- }
- p{
- font-size: 0.882em;
- line-height: 1.2;
- }
- span{
- color:$rouge;
- font-size:0.693em;
- }
- }
- // filets decoratif
- &:before, &:after{
- z-index: 0;
- content: "";
- position: absolute;
- opacity: 0.4;
- }
- &:before{
- border:1px solid $or;
- width:calc(100% + #{$filet_space*2 + $decallage*2});
- left:- $filet_space - $default_gap/2 -$decallage;
- height:calc(100% + #{$filet_space});
- top:- $filet_space / 2;
- }
- &:after{
- border:1px solid $rouge;
- width:calc(100% + #{$filet_space*2});
- left:- $filet_space - $default_gap/2;
- height:calc(100% + #{$filet_space + $decallage*2});
- top:- $filet_space / 2 - $decallage;
- }
- }
- }
- #list-corpus, .index{
- >header>h1{
- font-family: "noto_sans";
- color: $rouge;
- font-weight: 400;
- }
- article.item{
- margin: 2em 0 0;
- header h1{
- font-size: 1.512em;
- color: $bleuroi;
- font-weight: 400;
- margin:0;
- }
- }
- ul.item-list{
- li{
- margin: 0 0 2em 0;
- header{
- h2{
- margin:0.4em 0 0.2em;
- @include title1blue;
- }
- h3{
- margin:0.2em 0;
- @include fontsans;
- font-size: 0.756em;
- font-weight: 500;
- }
- margin-bottom: 0.3em;
- }
- section.editions{
- div.editions{
- ol{
- padding:0;
- li{
- margin:0.7em 1em;
- }
- }
- }
- }
- h4{
- margin:0.1em 0;
- font-weight: 300;
- @include fontsans;
- font-size: 0.756em;
- &.texts-quantity{
- color: $rouge;
- // &:after{
- // content: ">>";
- // margin:0 0 0 0.5em;
- // }
- }
- }
- ul {
- li{
- margin:0 0 0 1em;
- h3{
- margin: 0.5em 0;
- font-weight: 400;
- font-size: 1em;
- }
- }
- }
- }
- }
- }
- #corpus{
- }
- .index{
- }
- .index-item{
- header{
- h1{
- @include title2black;
- }
- }
- .occurences{
- >ul{
- >li{
- padding:0 0 2em 0;
- h3{
- @include title1black;
- padding:0 0 1em 0;
- }
- >ul{
- >li{
- padding:0 0 1em 0;
- section{
- h4{
- @include title2black;
- display: inline-block;
- }
- span.open-close{
- cursor: pointer;
- display: inline-block;
- svg{
- transform: rotate(-90deg) scale(0.8);
- transition: transform 0.3s ease-in-out;
- path{
- fill:$bleuroi;
- }
- }
- }
- div.text{
- max-height: 0;
- transition: max-height 0.3s ease-in-out;
- overflow: hidden;
- box-sizing: content-box;
- p, h1, h2, h3, h4, h5, h6{
- margin: 0.5em 0 0 0;
- }
- }
- a.lire-plus{
- color: $bleuroi;
- opacity: 0;
- display: inline-block;
- height: 0;
- overflow: hidden;
- transition: height, opacity 0.3s ease-in-out;
- }
- &.opened{
- span.open-close{
- cursor: pointer;
- display: inline-block;
- svg{
- transform: scale(0.8) rotate(0);
- }
- }
- div.text{
- max-height:100px;
- }
- a.lire-plus{
- opacity: 1;
- height:1em;
- }
- }
- }
- }
- }
- }
- }
- }
- }
- #edition{
- header{
- position: relative;
- h1{
- @include title1black;
- }
- aside.index-tooltip{
- z-index:10;
- margin-top: -1.75em;
- position:absolute;
- text-align: right;
- right: 2em;
- h1 {
- @include title2black;
- margin:0 0 0.5em 0;
- }
- p{
- margin:0 0 0.5em 0;
- }
- time{
- font-weight: 600;
- }
- }
- }
- >section{
- div#text{
- .infinite-loading-container{
- height:0;
- overflow: hidden;
- }
- div.tei{
- border-left: 1px dotted $grisclair;
- padding-left: 1em;
- &.active{
- border-left: 1px dotted $grisfonce;
- }
- >h1{@include title1blue;}
- span.placeName,
- span.objectName,
- span.persName{
- font-weight: 600;
- }
- }
- }
- }
- >nav{
- padding-bottom: 0;
- $pager_h:2em;
- section#toc{
- box-sizing: content-box;
- padding:0 0 1em 1.5em;
- height:calc(100% - #{$pager_h});
- overflow-x: hidden;
- overflow-y: auto;
- >ul{
- ul{
- li{
- ul{
- overflow: hidden;
- max-height: 1000px;
- transition: max-height 0.5s ease-in-out;
- // transform: scaleY(1);
- // transform-origin: top;
- // transition: transform 0.3s ease-in-out;
- &:not(.opened){
- // height:0;
- max-height:0;
- transition: max-height 0.5s cubic-bezier(0, 1.05, 0, 1);
- // transform: scaleY(0);
- }
- // &.opened{
- // border: 1px solid red;
- // }
- // padding-left: 1em;
- border-left: 0.5px solid $grisclair;
- // min-height: 1em;
- margin-bottom: 0em;
- li{
- // min-height: 1em;
- // border-left: 1px solid red;
- padding:0 0 0.2em 1em;
- }
- }
- }
- }
- .toc-title{
- color: $gris;
- font-weight: 400;
- margin:0;
- &.active,
- &:hover{
- color:$grisfonce;
- font-weight: 600;
- }
- &.loaded{
- color:$grisfonce;
- }
- }
- h2.toc-title{font-size: 0.882em;}
- h3.toc-title{font-size: 0.882em;}
- h4.toc-title{font-size: 0.882em;}
- h5.toc-title{font-size: 0.882em;}
- h6.toc-title{font-size: 0.882em;}
- span.toc-title{font-size: 0.882em;}
- }
- }
- div#page-nav{
- height:$pager_h;
- overflow: hidden;
- box-sizing: content-box;
- padding:0 1.5em;
- select{
- option{
- padding:0;
- }
- }
- }
- }
- }
- #text{
- .tei{
- width: 93%;
- h1{
- font-size: 1.512em;
- }
- p{
- margin-top: 0;
- font-size: 1.134em;
- line-height: 1.5;
- span.persName,
- span.placeName,
- span.objectName{
- font-weight: 600;
- }
- a{
- font-weight: 600;
- &.active-link{
- color: $rouge;
- // text-decoration: underline;
- }
- sup.mdi{
- font-size: 0.630em;
- vertical-align: super;
- // line-height: 0.1;
- padding: 0 0.2em;
- }
- }
- }
- }
- // <span role=\"pageBreak\" data-num=\"15\"></span>
- // span[role="pageBreak"]{
- // display: inline-block;
- // border-left: 1px solid $bleuroi;
- // height:1.4em;
- // // word-spacing: 0;
- // margin: 0 0.3em;
- // line-height: 3;
- // position: relative;
- // vertical-align: bottom;
- // &:after, &:before{
- // content: '';
- // display: block;
- // width:0.5em;
- // position: absolute;
- // }
- // &:after{
- // top:0;
- // left:0;
- // border-top: 1px solid $bleuroi;
- // }
- // &:before{
- // bottom:0;
- // right:0;
- // border-bottom: 1px solid $bleuroi;
- // }
- // }
- span[role="pageNum"]{
- // display:inline;
- position: relative;
- float:right;
- // position: sticky;
- $w:0.5em;
- width:$w; height:0;
- margin-left:calc(100% - (#{$w} * 0.5));
- // &:before
- &:after{
- // display: block;
- position: absolute;
- font-size: 0.630em;
- width:$w; height:$w*2;
- line-height: $w*1.7;
- padding-left: 1em;
- border-right: 1px solid $bleuroilight;
- color: $bleuroi;
- text-indent: $w + 0.5em;
- }
- // &:before{
- // content:attr(data-num-prev);
- // border-bottom: 1px solid $bleuroilight;
- // bottom: 0.1em;
- // }
- &:after{
- content:attr(data-num);
- border-top: 1px solid $bleuroilight;
- // bottom:1.3em;
- }
- }
- }
- }
- footer[role="tools"]{
- $list-item-h: 5em;
- @mixin resultItem{
- box-sizing: border-box;
- // we are only on 10 colls as 2 are occupied by sides
- flex-basis: percentage(2/($default_sum - 2));
- height: $list-item-h;
- overflow: hidden;
- padding-bottom: 1em;
- padding-right: $default_gap;
- article{
- max-height: 100%;
- overflow: hidden;
- }
- article.item{
- h1{
- @include title3black;
- font-weight: 600;
- max-width: 95%;
- }
- h2{
- @include title3black;
- text-transform: none;
- }
- span{
- font-size: 0.882em;
- }
- // .preview{
- // font-size: 0.882em;
- // margin:0;
- // code{
- // @include fontserif;
- // background-color: lighten(desaturate($rouge,20%), 20%);
- // padding:0 0.2em;
- // }
- // }
- }
- }
- #history{
- z-index: 8;
- background-color: $or;
- padding:1.2em $side-padding;
- max-height: $list-item-h;
- @include accordeon-transition($list-item-h);
- >header{
- }
- .history-list{
- overflow-x: hidden;
- .wrapper{
- height:100%;
- // hidding the scrollbar
- overflow-y: auto;
- // width:calc(100% + 1em);
- padding-right: 1em;
- >ul{
- padding:0;
- display: flex;
- flex-direction: row;
- flex-wrap: wrap;
- }
- }
- li.item{
- @include resultItem;
- }
- }
- }
- #results{
- z-index: 9;
- background-color: $gris;
- padding:1.2em $side-padding;
- max-height: $list-item-h * 5;
- @include accordeon-transition($list-item-h * 3);
- >header{
- .search-keys{
- font-size: 0.756em;
- font-weight: 500;
- }
- .results-count{
- font-size: 0.756em;
- }
- }
- .results-list{
- overflow-x: hidden;
- .wrapper{
- position:relative;
- height:100%;
- // hidding the scrollbar
- overflow-y: auto;
- // width:calc(100% + 1em);
- padding-right: 1em;
- >ul{
- padding:0;
- display: flex;
- flex-direction: row;
- flex-wrap: wrap;
- }
- }
- li.result{
- @include resultItem;
- }
- .infinite-loading-container{
- // TODO: how to center the loading
- }
- }
- }
- #footer-bottom{
- z-index: 10;
- padding:0 $side-padding;
- background-color: $bleuroi;
- &>*{
- // disable grid gap
- padding-right: 0;
- }
- #footer-tabs{
- ul{
- padding:0; margin:0;
- display: flex;
- flex-direction: column;
- li{
- flex: 1 1 auto;
- .wrapper{
- box-sizing: border-box;
- line-height: 0.6em;
- height:2em;
- width: calc(100% + $side-padding);
- margin-left:-$side-padding;
- padding:0.3em 0.5em 0.3em $side-padding;
- }
- &.history .wrapper{
- background-color: $or;
- }
- &.results .wrapper{
- background-color: $gris;
- }
- span{
- font-size: 0.693em;
- font-weight: 400;
- text-transform: uppercase;
- cursor: pointer;
- @include fade-transition;
- }
- }
- }
- }
- #search{
- color: #fff;
- background-color: $bleuroi;
- form{
- padding: 0;
- // display: flex;
- // flex-direction: row;
- // flex-wrap: wrap;
- fieldset{
- padding:0.7em 1em;
- border: none;
- box-sizing:border-box;
- // width correction as row is not the same width as others in the page
- // flex-basis: percentage(2/($default_sum - 1));
- flex-basis: 17.667%;
- // flex-basis: percentage(2 / 11);
- &:not(:first-of-type){
- border-left: 1px solid $grisclair;
- }
- }
- fieldset.search{
- display: inline-flex;
- >div{
- width:80%;
- vertical-align: middle;
- }
- label[for="keys"]{
- display: none;
- }
- input[type="text"]{
- padding:0.3em;
- margin:0 0 0.3em 0;
- box-sizing: border-box;
- font-size: 0.756em;
- line-height: 1;
- width:100%;
- height:1.2em;
- border:none;
- border-radius: 2px;
- }
- span.mdi{
- display: inline-block;
- margin:0 0 0 0.5em;
- font-size: 1.2em;
- line-height:1.1;
- vertical-align:middle;
- width:1.2em; height:1.2em;
- border-radius: 0.6em;
- background-color: #fff;
- color: $bleuroi;
- text-align: center;
- font-weight: 700;
- cursor: pointer;
- }
- }
- }
- fieldset.filters{
- .vs__actions{
- background-color: $grisclair;
- align-items:baseline;
- padding-top:0.2em;
- }
- }
- }
- }
- h2{
- margin:0;
- font-size: 0.756em;
- font-weight: 400;
- text-transform: uppercase;
- padding:0;
- }
- }
- // vue-select
- .v-select{
- padding:0;
- div[role="combobox"]{
- background-color: #fff;
- padding:0;
- border-radius: 2px;
- border: none;
- }
- input[type="search"]{
- margin:0;
- padding:0;
- }
- .vs__search{
- &, &:focus{
- font-size: 0.756em;
- line-height: 1;
- height:1.2em;
- border:none;
- box-sizing: border-box;
- }
- }
- .vs__actions{
- padding:1px 3px;
- svg[role="presentation"]{
- transform: scale(0.8);
- path{
- fill: $bleuroi;
- }
- }
- }
- .vs__selected{
- margin:0;
- padding:0.2em 0;
- line-height:1;
- font-size: 0.756em;
- background-color: #fff;
- border:none;
- align-items: middle;
- box-sizing: content-box;
- display: inline-block;
- width: calc(100% - 12px);
- // &>*:not(button){
- // display: inline-block;
- // width:70%;
- // }
- button{
- svg{
- transform: scale(0.8);
- path{
- fill: $bleuroi;
- }
- }
- &.vs__deselect{
- line-height: 0;
- }
- }
- }
- // border-radius: 2px;
- // border: none;
- }
- ul[role="listbox"]{
- @include fontsans;
- padding:0;
- margin:0;
- border:none;
- position: relative;
- li{
- box-sizing: content-box;
- padding:0.3em;
- margin:0;
- font-size: 0.756em;
- line-height: 1;
- white-space: normal;
- position: relative;
- *{
- max-width: 100%;
- }
- }
- }
- // ___
- // |_ _|__ ___ _ _ ___
- // | |/ _/ _ \ ' \(_-<
- // |___\__\___/_||_/__/
- span.mdi-close{
- cursor: pointer;
- }
- @keyframes spin {
- from {
- transform:rotate(0deg);
- }
- to {
- transform:rotate(360deg);
- }
- }
- span.mdi-loading{
- animation-name: spin;
- animation-duration: 2000ms;
- animation-iteration-count: infinite;
- animation-timing-function: linear;
- }
|