From b95ad0b19399a0958ca72fbba3b78e8dd14a5c3a Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 30 Dec 2017 23:43:05 +0100 Subject: Update ps home --- assets/scss/_aside.scss | 133 ++++++++++ assets/scss/_footer.scss | 77 ++++++ assets/scss/_gfx.scss | 13 + assets/scss/_header.scss | 135 ++++++++++ assets/scss/_main.scss | 122 ++++++++++ assets/scss/_variables.scss | 45 ++-- assets/scss/_vdo.scss | 13 + assets/scss/home.scss | 581 ++++++++++++++++++++++++++++++++++++++++++++ assets/scss/screen.scss | 59 +++++ assets/scss/txt.scss | 30 +++ 10 files changed, 1192 insertions(+), 16 deletions(-) create mode 100644 assets/scss/_aside.scss create mode 100644 assets/scss/_footer.scss create mode 100644 assets/scss/_gfx.scss create mode 100644 assets/scss/_header.scss create mode 100644 assets/scss/_main.scss create mode 100644 assets/scss/_vdo.scss create mode 100644 assets/scss/home.scss create mode 100644 assets/scss/screen.scss (limited to 'assets/scss') diff --git a/assets/scss/_aside.scss b/assets/scss/_aside.scss new file mode 100644 index 0000000..6afe3b6 --- /dev/null +++ b/assets/scss/_aside.scss @@ -0,0 +1,133 @@ +body > aside { + + position: fixed; + top: calc(50% - 150px); + height: 300px; + background: black url(../img/aside-off.png) center right no-repeat; + left: -20rem; + width: 20rem; + padding: 1rem; + + &:hover, &:focus { + left: 0; + background: $bg-main url(../img/aside-on.png) center left no-repeat; + box-shadow: 1px 2px 2px 1px rgba(0, 0, 0, 0.4); + width: auto; + border-right: 2rem solid black; + padding: 0; + + nav { + display: block; + background: $bg-main url(../img/aside-on.png) center left no-repeat; + height: 100%; + } + + ul li:hover { + span { + display: block; + } + &:first-child { + transform: scale(1.4) rotate(4deg) translateX(-0.75vw); + a { + transform: rotate(-4deg); + } + } + &:nth-child(2) { + transform: scale(1.4) rotate(-6deg) translateX(-0.5vw); + a { + transform: rotate(6deg); + } + } + &:last-child { + transform: scale(1.4) rotate(5deg) translateX(-0.5vw); + a { + transform: rotate(-5deg); + } + } + } + } + + nav { + position: relative; + margin-left: 3rem; + display: none; + line-height: 30rem; + + h3 { + display: inline-block; + background: url(../img/logo-ps.svg) 3rem center / 10rem fixed no-repeat; + width: 10rem; + height: 100%; + vertical-align: top; + color: transparent; + + a { + display: block; + height: 100%; + width: 100%; + line-height: 30rem; + color: transparent; + &:hover { + color: transparent; + } + } + } + + ul { + list-style: none; + display: inline-block; + height: 100%; + + li { + display: block; + padding: 0 2rem; + font-size: 3rem; + float: left; + padding-left: 1rem; + z-index: 400; + overflow: hidden; + width: 10rem; + height: 100%; + + a { + color: black; + text-decoration: none; + display: block; + height: 100%; + width: 100%; + z-index: 404; + + &:hover { + font-size: 200%; + color: inherit; + z-index: 404; + } + } + + span { + display: none; + z-index: 400; + position: relative; + font-size: 1.25rem; + line-height: 1.6rem; + text-align: center; + margin: -3rem -2rem 0 -1rem; + } + +/* + &:first-child { + background: $bg-gfx; + } + + &:nth-child(2) { + background: $bg-txt; + } + + &:last-child { + background: $bg-vdo; + } +*/ + } + } + } +} diff --git a/assets/scss/_footer.scss b/assets/scss/_footer.scss new file mode 100644 index 0000000..39d474a --- /dev/null +++ b/assets/scss/_footer.scss @@ -0,0 +1,77 @@ +body > footer { + + position: relative; + left: 0; + right: 0; + + font-size: smaller; + + margin: 5rem auto 2rem auto; + width: 80vw; + + a { + white-space: nowrap; + } + + &:hover > p { + > span:first-child { + display: inline-block; + color: transparent; + line-height: 0; + } + > span:first-child:before { + content: 'Copyleft'; + display: block; + color: black; + padding-right: 0.4rem; + } + > span + span { + display: inline-block; + transform: rotate(180deg); + padding-bottom: -0.07rem; + } + } +} + +footer > nav { + + ul { + display: inline-block; + margin: 0; + padding: 0; + list-style: none; + } + + li { + display: inline-block; + margin: 0 0.75rem; + width: 4rem; + height: 3rem; + border: 1px solid; + border-bottom: 3px solid; + border-color: transparent; + border-top-right-radius: 0.5rem; + text-align: center; + + a { + position: relative; + display: block; + width: 100%; + height: 100%; + line-height: 3rem; + margin: 0; + padding: 0; + background: rgba(0,0,0,0.25); + border-top-right-radius: 0.5rem; + } + + &:hover { + border-color: rgba(220, 201, 133, 1); + + a { + font-weight: bold; + background: rgba(0,0,0,0.5); + } + } + } +} diff --git a/assets/scss/_gfx.scss b/assets/scss/_gfx.scss new file mode 100644 index 0000000..43003f9 --- /dev/null +++ b/assets/scss/_gfx.scss @@ -0,0 +1,13 @@ +body.gfx { + > main > article { + background: $bg-gfx-on; + } + > aside { + &:hover, &:focus { + background-color: $bg-gfx-on; + nav ul li:first-child { + background: $bg-gfx-on; + } + } + } +} diff --git a/assets/scss/_header.scss b/assets/scss/_header.scss new file mode 100644 index 0000000..96fc802 --- /dev/null +++ b/assets/scss/_header.scss @@ -0,0 +1,135 @@ +h1,h2,h3,h4,h5,h6 { + font-family: $serif; + font-weight: 600; + + a, a:hover, a:focus, a:link, a:visited { + text-decoration: none; + color: inherit; + } + a:active { + text-decoration: underline; + color: $bg-main; + } +} + +body.ps { + + > header { + position: fixed; + z-index: 999; + top: 0; + left: 0; + right: 0; + background: $bg-header; + padding: 0 2rem; + color: $fg-header; + + h1 { + margin: 0 auto; + + &:before { + background: url(../assets/img/logo-ps.svg) center left / 5rem no-repeat; + display: block; + width: 5rem; + height: 5rem; + } + } + + h2 { + font-weight: 100; + margin-top: -2.6rem; + font-size: 3.7rem; + transform: rotate(180deg); + } + + p { + font-family: $serif; + font-size: 2rem; + font-style: italic; + margin: -3.8rem 0 0 0; + padding: 0 0 0.4rem 0.3rem; + + span { + color: black; + } + } + } + + &.home > header { + background-color: $bg-dark; + top: unset; + right: 5vw; + bottom: -2vh; + left: 5vw; + padding: 1rem; + font-size: 1.2rem; + color: $fg-white-85; + overflow: auto; + transform: rotate(-2.7deg) translateY(4.5vh) skewX(-5deg); + + h1 { + font-size: 7vh; + text-align: center; + transform: rotate(1.5deg) translateX(5vh) translateY(-1vh); + + img { + display: none; + vertical-align: -1.6rem; + } + } + + section { + display: none; + max-width: 42rem; + margin: 0 auto; + padding-bottom: 7rem; + } + + footer { + background-color: rgba(109, 78, 128, 1); + display: none; + font-size: 1rem; + z-index: 999; + position: fixed; + bottom: 0; + left: 0; + right: 0; + display: none; + + > h4 { + display: inline-block; + } + + > nav { + display: none; + } + + > p { + display: none; + max-width: 42rem; + margin: 0 auto; + padding-bottom: 7rem; + } + } + + &:hover { + top: 5vh; + + h1 { + font-size: 2.6rem; + transform: rotate(2.7deg) translate(0, 0) skewX(0); + } + + img { + display: inline-block; + } + + section, footer { + display: block; + width: 80vw; + margin: 0 auto; + padding-bottom: 3rem; + } + } + } +} diff --git a/assets/scss/_main.scss b/assets/scss/_main.scss new file mode 100644 index 0000000..00ee2a7 --- /dev/null +++ b/assets/scss/_main.scss @@ -0,0 +1,122 @@ +body > main { + + position: relative; + top: 0rem; + right: 0; + left: 0; + + font-size: 1.6rem; + + margin: 0 auto; + max-width: 96rem; + + > article { + background: $bg-txt-ps-on; + + margin: 0 auto; + max-width: 60rem; + min-height: calc(100vh - 24rem); + height: auto; + + padding: 12rem 9rem; + } + +} + + +article { + > header { + p { + font-size: 2rem; + line-height: 1.25; + font-family: $serif; + text-variant: italic; + padding: 2rem 4rem; + text-align: justify; + } + } + + section:after { + display: table; + content: ""; + clear: both; + margin-bottom: 2rem; + } + + aside { + + ul { + display: table; + position: relative; + list-style: none; + margin: 0 -8rem 1rem -8rem; + width: calc(100% + 16rem); + + li { + display: table-cell; + text-align: center; + } + + img { + display: block; + width: 16rem; + height: 9rem; + background-color: black; + margin: 1rem auto; + } + } + } + + .intro { + background-color: rgba(255, 255, 255, 0.1); + box-shadow: 1px 2px 3px rgba(0, 0, 0, 0.5); + height: auto; + max-height: 2rem; + margin: 2rem; + padding: 2rem; + overflow: hidden; + text-overflow: ellipsis; + + p { + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + } + + &:hover { + max-height: 100vh; + p { + white-space: normal; + overflow: auto; + } + } + } + + .outro { + p { + font-size: 2rem; + text-align: justify; + } + } + + .video { + margin: 0 -6rem 0 -4rem; + + video { + width: 30rem; + background: black; + float: left; + margin: 0 2rem 0 -4rem; + } + p { + line-height: 1.25; + } + &:hover { + video { + width: calc(100% + 6rem); + height: auto; + float: none; + } + } + } +} diff --git a/assets/scss/_variables.scss b/assets/scss/_variables.scss index 638e678..e09fcf9 100644 --- a/assets/scss/_variables.scss +++ b/assets/scss/_variables.scss @@ -2,24 +2,37 @@ * SCSS Variables **/ -// Colors - -$bg-dark: rgba(109, 78, 128, 1); -$fg-header-h1: rgba(220, 201, 133, 1); - -$bg-fair: rgba(173, 151, 56, 0.68); -$fg-color: #f3f0e4; - -$bg-gfx-off: rgba(191, 138, 112, 0.7); -$bg-gfx-on: rgba(191, 138, 112, 0.9); -$bg-txt-off: rgba(166, 191, 112, 0.7); -$bg-txt-on: rgba(166, 191, 112, 0.9); -$bg-vdo-off: rgba(112, 166, 191, 0.5); -$bg-vdo-on: rgba(112, 166, 191, 0.9); - - // Fonts $serif: 'Cormorant Garamond', serif; $sans-serif: Abel, 'Open Sans', sans-serif; +// Colors + +$bg-dark: rgba(109, 78, 128, 1); +$fg-header-h1: rgba(220, 201, 133, 1); +$fg-white-85: rgba(255, 255, 255, 0.85); + +$bg-header: rgba(124, 118, 146, 1); +$fg-header: rgba(240, 240, 242, 1); + +// On the home page: +$bg-ps: rgba(173, 151, 56, 0.68); +$fg-ps: rgba(243, 240, 228, 1); + +$bg-gfx-ps-on: rgba(191, 138, 112, 0.9); +$bg-txt-ps-on: rgba(166, 191, 112, 0.9); +$bg-vdo-ps-off: rgba(112, 166, 191, 0.5); +$bg-vdo-ps-on: rgba(112, 166, 191, 0.9); + +// On other pages: +$bg-main: $fg-header; +$fg-main: rgba(20, 20, 20, 1); + +$bg-gfx-off: rgba(191, 138, 112, 0.7); +$bg-gfx-on: rgba(205, 168, 150, 1); +$bg-txt-off: rgba(166, 191, 112, 0.7); +$bg-txt-on: rgba(187, 205, 150, 1); +$bg-vdo-off: rgba(109, 144, 162, 0.7); +$bg-vdo-on: rgba(109, 144, 162, 1); + diff --git a/assets/scss/_vdo.scss b/assets/scss/_vdo.scss new file mode 100644 index 0000000..3578b93 --- /dev/null +++ b/assets/scss/_vdo.scss @@ -0,0 +1,13 @@ +body.vdo { + > main > article { + background: $bg-vdo-on; + } + > aside { + &:hover, &:focus { + background-color: $bg-vdo-on; + nav ul li:last-child { + background: $bg-vdo-on; + } + } + } +} diff --git a/assets/scss/home.scss b/assets/scss/home.scss new file mode 100644 index 0000000..7a1a0e3 --- /dev/null +++ b/assets/scss/home.scss @@ -0,0 +1,581 @@ +@charset 'UTF-8'; + + +html[lang='en'] :lang(fr) { + display: none !important; +} +html[lang='fr'] :lang(en) { + display: none !important; +} + +:lang(en) { + quotes: '\201C' '\201D' '\2018' '\2019'; +} +:lang(fr) { + quotes: '« ' ' »'; +} + +h1, h2, h3, h4, h5, h6 { + font-family: 'Cormorant Garamond', serif; +} + +body { + background: rgba(173, 151, 56, 0.68); + color: #f3f0e4; + font-family: Abel, 'Open Sans', sans-serif; + + :visited { + text-decoration: underline; + } + +} + +body > header { + + background-color: rgba(109, 78, 128, 1); + position: fixed; + right: 5vw; + bottom: -2vh; + left: 5vw; + padding: 1rem; + z-index: 999; + font-size: 1.2rem; + color: rgba(255, 255, 255, 0.85); + overflow: auto; + transform: rotate(-2.7deg) translateY(4.5vh) skewX(-5deg); + + :link, :visited, + footer :link, footer :visited { + color: rgba(220, 201, 133, 1); + text-decoration: none; + } + + h1 { + text-align: center; + margin: 0; + font-family: 'Cormorant Garamond', serif; + /* font-size: 2.8rem; */ + font-size: 7vh; + transform: rotate(1.5deg) translateX(5vh) translateY(-1vh); + + img { + display: none; + vertical-align: -1.6rem; + } + } + + section { + display: none; + max-width: 42rem; + margin: 0 auto; + padding-bottom: 7rem; + } + + footer { + position: fixed; + left: 0; + right: 0; + font-size: smaller; + background-color: rgba(109, 78, 128, 1); + display: none; + margin: 5rem auto 2rem auto; + width: 80vw; + + + > p { + text-align: center; + margin: 4rem auto 2rem auto; + } + + > nav { + margin: 0 auto -3.5rem auto; + padding: 0; + display: none; + text-align: center; + transform: translateY(-7rem); + + h4 { + display: inline; + } + + ul { + display: inline-block; + margin: 0; + padding: 0; + list-style: none; + } + li { + display: inline-block; + margin: 0 0.75rem; + width: 4rem; + height: 3rem; + border: 1px solid; + border-bottom: 3px solid; + border-color: transparent; + border-top-right-radius: 0.5rem; + text-align: center; + + a { + position: relative; + display: block; + width: 100%; + height: 100%; + line-height: 3rem; + margin: 0; + padding: 0; + background: rgba(0,0,0,0.25); + border-top-right-radius: 0.5rem; + } + + &:hover { + border-color: rgba(220, 201, 133, 1); + + a { + font-weight: bold; + background: rgba(0,0,0,0.5); + } + } + } + } + + &:hover { + /** + * Copyleft magic + **/ + > p { + + > span:first-child { + display: inline-block; + color: transparent; + line-height: 0; + + &:before { + content: 'Copyleft'; + display: block; + color: #f3f0e4; + padding-right: 0.45rem; + } + } + + > span + span { + display: inline-block; + transform: rotate(180deg); + padding-bottom: -0.1rem; + } + } + + > nav { + display: block; + } + } + } + + + &:hover { + top: 5vh; + + h1 { + font-size: 2.6rem; + transform: rotate(2.7deg) translate(0, 0) skewX(0); + } + + footer { + transform: rotate(2.7deg) translateY(-4.5vh) skewX(5deg); + } + + img { + display: inline-block; + } + + section, footer { + display: block; + width: 80vw; + margin: 0 auto; + padding-bottom: 3rem; + } + + } +} + +body > main { + background: url(../img/logo-ps.svg) 40% calc(50% - 5vh) / 50vw no-repeat fixed; + position: fixed; + top: 0; + right: 0; + bottom: 50%; + left: 0; + padding: 1rem; + min-height: 80vh; +} + +body > footer { + z-index: 999; + position: fixed; + bottom: 0; + left: 0; + right: 0; + display: none; + background-color: rgba(109, 78, 128, 1); + display: none; + font-size: 1rem; + + h4 { + display: inline-block; + } + + > p { + text-align: center; + margin: 4rem auto 2rem auto; + } + + > nav { + display: none; + max-width: 42rem; + margin: 0 auto -3.5rem auto; + padding: 0; + + ul { + display: inline-block; + margin: 0; + padding: 0; + list-style: none; + } + + li { + display: inline-block; + margin: 0 0.75rem; + width: 4rem; + height: 3rem; + border: 1px solid; + border-bottom: 3px solid; + border-color: transparent; + border-top-right-radius: 0.5rem; + text-align: center; + + a { + position: relative; + display: block; + width: 100%; + height: 100%; + line-height: 3rem; + margin: 0; + padding: 0; + background: rgba(0,0,0,0.25); + border-top-right-radius: 0.5rem; + } + + &:hover { + border-color: rgba(220, 201, 133, 1); + + a { + font-weight: bold; + background: rgba(0,0,0,0.5); + } + } + } + } + + &:hover { + + /** + * Copyleft magic + **/ + > p > span:first-child { + display: inline-block; + color: transparent; + line-height: 0; + + &:before { + content: 'Copyleft'; + display: block; + color: #f3f0e4; + padding-right: 0.4rem; + } + } + > p > span + span { + display: inline-block; + transform: rotate(180deg); + padding-bottom: -0.05rem; + } + + nav { + display: block; + } + } + +} + +@media screen and (min-device-width: 1024px) { + + header > footer { + position: fixed; + } + + +/** + * Scrollbar + * + * ::-webkit-scrollbar the background of the bar itself. + * ::-webkit-scrollbar-button the directional buttons on the scrollbar. + * ::-webkit-scrollbar-track the empty space “below” the progress bar. + * ::-webkit-scrollbar-track-piece the top-most layer of the the progress bar not covered by the thumb. + * ::-webkit-scrollbar-thumb the draggable scrolling element resizes depending on the size of the scrollable element. + * ::-webkit-scrollbar-corner the bottom corner of the scrollable element, where two scrollbar meet. + * ::-webkit-resizer the draggable resizing handle that appears above the scrollbar-corner at the bottom corner of some elements. + **/ + + body > header::-webkit-scrollbar { + background-color: rgba(109, 78, 128, 1); + box-shadow: 1px 2px 2px 1px rgba(0, 0, 0, 0.4) inset; + } + body > header::-webkit-scrollbar-button { + background-color: black; + } + body > header::-webkit-scrollbar-track { + background-color: rgba(0, 0, 0, 0.5); + } + body > header::-webkit-scrollbar-track-piece { + background-color: rgba(255, 255, 255, 0.5); + } + body > header::-webkit-scrollbar-thumb { + background-color: rgba(220, 201, 133, 1); + box-shadow: 1px 2px 2px 1px rgba(0, 0, 0, 0.4); + } + body > header::-webkit-scrollbar-corner { + background-color: red; + } + body > header:hover { + overflow-y: auto; + } + + + + body > header:hover ~ footer { + position: fixed; + bottom: 0; + display: block; + } + + body > header:hover ~ footer > nav { + display: block; + } + + .media, .libre { + display: block; + position: absolute; + top: 0; + bottom: 5rem; + height: 100vh; +/* overflow: hidden; */ + } + + .media:hover { + width: 70vw; + z-index: 500; + } + .media h2, .libre h2 { + display: none; + } + + .media { + left: 0; + + section { + float: left; + position: relative; + height: 100%; + width: 15vw; + top: -5vh; + left: 0; + padding-top: 5vh; + padding-left: 1rem; + z-index: 400; + overflow: hidden; + + h3 { + font-size: 5rem; + color: rgba(0,0,0,0.2); + } + + h4, p { + display: none; + } + + &:hover { + box-shadow: 0px -2px 4px 2px rgba(0, 0, 0, 0.68) inset; + transform: rotate(0deg); + width: 40vw; + z-index: 500; + + h3 { + color: rgba(0, 0, 0, 1); + } + + h4, p { + display: block; + padding: 1rem; + color: black; + } + } + } + } + + .media #gfx { + background: rgba(191, 138, 112,0.7); + transform: rotate(-4deg); + margin: 0 -5vw 0 -2vw; + left: 0; + } + .media #gfx h3 { + transform: rotate(4deg) translateX(1vw); + font-size: 5rem; + } + .media #gfx:hover { + background: rgba(191, 138, 112, 0.9); + transform: rotate(0); + margin: 0; + + p, h4 { + display: none; + } + } + .media #gfx:hover h3 { + transform: rotate(0) translateX(0) translateY(-4rem); + } + .media #gfx:hover + #txt { + margin-left: -3vw; + } + + .media #txt { + background: rgba(166, 191, 112, 0.7); + transform: rotate(6deg); + margin: 0 -3vw 0 0; + color: transparent; + } + .media #txt h3 { + transform: rotate(-6deg) translateX(-3vw) translateY(-0.1rem); + } + .media #txt:hover { + background: rgba(166, 191, 112, 0.9); + transform: rotate(0); + margin: 0; + color: black; + padding: 1rem; + } + .media #txt:hover h3 { + transform: rotate(0) translateX(0) translateY(-4.1rem); + } + .media section h3 a { + position: relative; + display: block; + top: 0; + left: 0; + right: 0; + bottom: 0; + text-decoration: none; + color: inherit; + } + .media #txt:hover p.tagline { + position: absolute; + top: 6rem; + font-family: 'Cormorant Garamond'; + font-style: italic; + font-size: 1.6rem; + padding: 1rem 2rem; + } + + .media #vdo { + left: 0; + background: rgba(112, 166, 191, 0.5); + transform: rotate(-5deg); + margin: 0 0 0 -2vw; + width: 10vw; + + p, h4 { + display: none; + } + } + .media #vdo video { + position: absolute; + top: 50%; + left: 50%; + min-width: 100%; + min-height: 100%; + width: auto; + height: auto; + transform: translate(-50%, -50%); + z-index: -101; + opacity: 0.1; + } + .media #vdo:hover video { + opacity: 1; + } + .media #vdo:hover { + background: rgba(112, 166, 191, 0.9); + margin: 0; + transform: rotate(0); + width: 40vw; + } + .media #vdo h3 { + transform: rotate(5deg) translateX(-2vw); + } + .media #vdo:hover h3 { + transform: rotate(0) translateX(0) translateY(-5rem); + color: rgba(109, 144, 162, 0.7); + font-size: 18vw; + + a { + display: block; + height: 100%; + width: 100%; + } + } + + .libre { + right: 0; + width: 32vw; + } + .libre > section h3 { + color: rgba(109, 78, 128, 1); + font-size: 7vh; + margin: 0; + padding: 0; + } + .libre > section p { + color: rgba(0, 0, 0, 0.7); + font-size: 4.9vh; + margin: 0; + } + .libre > section h3 a { + color: rgba(109, 78, 128, 1); + text-decoration: none; + } + + .libre #participation { +/* transform: rotate(-4deg) translateY(4.5rem); */ + transform: rotate(-4deg) translateY(6vh); + } + .libre #engagement { +/* transform: translate(0.5rem, 7rem); */ + transform: translate(0.5vw, 14vh); + } + .libre #cooperation { +/* transform: rotate(2deg) translate(0rem, 9.8rem); */ + transform: rotate(2deg) translate(0rem, 19.5vh); + } + +} + +@media screen and (max-device-width: 1023px) { + + body > header > h1 { + font-size: 100rem; + margin: 5rem auto; + width: 80% + } + + body > main { + background: url(../img/logo-ps.svg) center calc(92% - 50vh) / contain no-repeat fixed; + } + +} diff --git a/assets/scss/screen.scss b/assets/scss/screen.scss new file mode 100644 index 0000000..fdda851 --- /dev/null +++ b/assets/scss/screen.scss @@ -0,0 +1,59 @@ +@import 'variables'; +@import 'normalize'; +@import 'skeleton'; +@import 'header'; +@import 'main'; +@import 'aside'; +@import 'footer'; + +/** + * Pages + **/ +@import 'gfx'; +@import 'txt'; +@import 'vdo'; + +/** + * Languages + **/ + +html[lang='en'] :lang(fr) { + display: none; +} +html[lang='fr'] :lang(en) { + display: none; +} + +:lang(en) { + quotes: '\201C' '\201D' '\2018' '\2019'; +} +:lang(fr) { + quotes: '« ' ' »'; +} + +/** + * Defaults + **/ + +body { + font-family: $sans-serif; + font-size: 1em; /* No rem here, bug workaround */ + background: $bg-main; + color: $fg-main; + + &.ps { + background: $bg-ps; + color: $fg-ps; + } + + > header, > footer { + :link, :visited { + color: $fg-header-h1; + text-decoration: none; + } + } + + :visited { + text-decoration: underline; + } +} diff --git a/assets/scss/txt.scss b/assets/scss/txt.scss index 4bc59a9..a331d7b 100644 --- a/assets/scss/txt.scss +++ b/assets/scss/txt.scss @@ -10,6 +10,36 @@ $bg-txt-on: rgba(187, 205, 150, 1); $bg-vdo: rgba(109, 144, 162, 0.7); $bg-vdo-on: rgba(109, 144, 162, 1); +$a-link: $bg-main; +$a-hover: white; +$a-active: black; +$a-visited: rgba(240,240,242, 0.8); + +a { + text-decoration: none; + + &:link { + color: $a-link; + } + &:hover { + color: $a-hover; + text-decoration: underline; + } + &:active { + color: $a-active; + } + &:visited { + color: $a-visited; + } +} + +span.ps { + background: url(../img/logo-ps.svg) top left / 5rem no-repeat; + opacity: 0.75; + color: transparent; + padding: 0 1rem; +} + h1,h2,h3,h4,h5,h6 { font-family: $serif; font-weight: 600; -- cgit v1.2.3