Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
441e7e0
Organise SCSS files by folder
doup Apr 1, 2022
5a4b11b
Remove `!important` from `container` class
doup Apr 1, 2022
52e034c
Add SASS mixins & functions files
doup Apr 1, 2022
97efd67
Add typography, breakpoint & color vars
doup Apr 1, 2022
fa621e2
Move `body` el styling to it's own file & improve `html` root font-si…
doup Apr 1, 2022
f5fa676
Move `.container` to its own file
doup Apr 1, 2022
2dc0967
Move `.container` to its own file (cont.)
doup Apr 1, 2022
1041001
Add improved layout header (first-pass)
doup Apr 1, 2022
a30bcae
Merge commit '5a4b11b655e49e03f750673138cfc86c3c89be5b' into feature/…
doup Apr 1, 2022
b14baef
Remove `docs-menu`
doup Apr 2, 2022
a28043d
Add `page-with-menu` component for docs & assets
doup Apr 2, 2022
d235eda
Move layouts & macros to folders
doup Apr 2, 2022
c4115da
Move layouts & macros to folders (cont.)
doup Apr 2, 2022
4b63913
Remove custom `header-desktop-up` breakpoint in favor of `tablet-land…
doup Apr 2, 2022
93cb36b
Add `page-with-menu` layout
doup Apr 2, 2022
f9bae02
Tweak layout styling
doup Apr 2, 2022
d61437b
Update `book-section` template to use `page-with-menu` layout
doup Apr 2, 2022
7fbdc5d
Change `assets` layout to `page-with-menu`
doup Apr 2, 2022
037d90a
Reduce hamburger button width
doup Apr 2, 2022
f337b21
Change `examples` layout to `page-with-menu`
doup Apr 2, 2022
481a1f6
Make `page-with-menu` layout menu sticky
doup Apr 2, 2022
d7e9047
Improve `page-with-menu` menu scrollbar style
doup Apr 2, 2022
e495126
Fix features responsive behaviour
doup Apr 2, 2022
0d0be3a
Merge commit 'b12de9d8fc21b97e65dfcc43d405e6a856145639' into feature/…
doup Apr 2, 2022
afe80e7
Improve layout so that content overflow-x doesn't break the header
doup Apr 3, 2022
7f96222
Make sponsors responsive
doup Apr 3, 2022
d4828ab
Fix sponsors in chrome
doup Apr 3, 2022
f85d80d
Fix sponsor distortion in Safari
doup Apr 3, 2022
b2c2e38
Move layout level `overflow-x` to `page-with-menu`, otherwise it brea…
doup Apr 3, 2022
9242fd9
Add `item-grid` container (e.g. for assets)
doup Apr 3, 2022
62e19a7
Tweak mobile `main-menu` height so it's taller than the viewport
doup Apr 3, 2022
e17b552
Remove unused `card-list` classes
doup Apr 3, 2022
8adc3de
Tweak pages padding
doup Apr 3, 2022
2dcc2b6
Change bronze sponsor color to a redish brown
doup Apr 3, 2022
6c808b6
Fix code blocks word wrapping that was messing with small screens
doup Apr 3, 2022
46f4e32
Add link to homepage on mobile-menu logo
doup Apr 3, 2022
651527d
Tweak assets page with improved grid based layout
doup Apr 3, 2022
7be1d19
Remove unnecessary overflow scroll on `html`
doup Apr 3, 2022
726fc29
Merge commit 'ba02fb6570d8df85d38c664d00f65f504b49925d' into feature/…
doup Apr 3, 2022
98fc04d
Improve behaviour when a mouse is connected
doup Apr 3, 2022
e0bcb83
Avoid horizontal overflow on news & docs by forcing word break
doup Apr 3, 2022
06494a6
Merge commit 'c0135244b7a563e532859cffe6e49b8aa5d6f23f' into feature/…
doup Apr 6, 2022
b799d3a
Fix assets macro var name
doup Apr 6, 2022
782ca57
Fix mobile menu logo vertical alignment
doup Apr 12, 2022
70b2b5e
Use correct value for `scrollbar-width`
doup Apr 12, 2022
d48879f
Merge commit '3cd50a8af5336dae248899d27e0b711addf07e0a' into feature/…
doup Apr 12, 2022
328d2a0
Remove unused code snippet
doup Apr 12, 2022
02be67b
Remove `calc-rem` from CSS components
doup Apr 12, 2022
fbcbd1a
Remove Sass color functions
doup Apr 12, 2022
b1dbb96
Revert features changes
doup Apr 12, 2022
cd1e66e
Remove old layout
doup Apr 12, 2022
c309223
Merge commit '4a9b6de3700959e9419cac9e4b38d5549b4feb64' into feature/…
doup Apr 16, 2022
daa816c
Remove unused vars
doup Apr 16, 2022
822c2f5
Merge commit '55027e2820c69ccb618422f0313a9e52e6b0fec0' into feature/…
doup Apr 17, 2022
96f640a
Merge commit '9141a6ab47d1994633c05dfa02a408bd608962f5' into feature/…
doup Apr 20, 2022
fa4e6b2
Add back header message
doup Apr 22, 2022
b1a6e2b
Merge commit 'b974e2676d2d95e31b8d1a2919d846f3d9d9c423' into feature/…
doup Apr 22, 2022
62f5b04
Remove vertical spacing from `examples` & remove unused assets CSS
doup Apr 22, 2022
c8267e4
Merge commit 'e807dbab39f70a8cf1291171bb1a9a519dbbca4b' into feature/…
doup May 7, 2022
8476ade
Merge commit '75acb730406ef9c5928d37daf8bb32e4dbeb8b13' into feature/…
doup Jun 20, 2022
7da765f
Increase page name size & make it bold
doup Jun 20, 2022
dde1c15
Make menu entries bold
doup Jun 20, 2022
da7f1ad
Improve buttons vertical alignment & size
doup Jun 20, 2022
e4cd420
Fix features page to match current prod version
doup Jun 20, 2022
1c4c8f4
Improve features page responsive
doup Jun 20, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions sass/_functions.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/// Convert px size to rem size
@function calc-rem($size) {
@return ($size / $size-body) * 1rem;
}
43 changes: 43 additions & 0 deletions sass/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,46 @@
@content;
}
}

@mixin text-ellipsis($lines: 1) {
overflow: hidden;

@if ($lines == 1) {
white-space: nowrap;
text-overflow: ellipsis;
} @else {
// Ellipsis on second line
// See: https://css-tricks.com/almanac/properties/l/line-clamp/
display: -webkit-box;
-webkit-line-clamp: $lines;
-webkit-box-orient: vertical;
}
}

@mixin state-checked($id) {
##{$id}-state:checked + [data-#{$id}-state-container] {
@content;
}
}

@mixin scrollbar-v {
$track-width: 4px;
$thumb-color: rgba($color-white, 0.2);

scrollbar-width: thin;
scrollbar-color: $thumb-color transparent;

&::-webkit-scrollbar-track {
background-color: transparent;
}

&::-webkit-scrollbar {
width: $track-width;
background-color: transparent;
}

&::-webkit-scrollbar-thumb {
background-color: $thumb-color;
border-radius: $track-width;
}
}
32 changes: 21 additions & 11 deletions sass/_utils.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
.container {
max-width: 1200px;
margin-left: auto;
margin-right: auto;
.hidden {
display: none;
}

a:focus {
Expand All @@ -15,17 +13,29 @@ a:focus {
}

.padded-content {
padding: $default-padding;
padding: 16px 0;

@media #{$bp-tablet-landscape-up} {
padding: 24px 0;
}
}

.warning {
color: #c8c864;
}

.anchor-link {
&, &:focus, &:hover, &:active, &:link, &:visited {
color: #505050;
text-shadow: none;
font-weight: 500;
}
// Anchor target that applies an offset to compesate for the header height
// Thanks: https://stackoverflow.com/a/13184714/379923
.anchor-target {
display: block;
position: relative;
top: calc(0px - var(--header-height) - 8px);
visibility: hidden;
}

.anchor-link, .anchor-link:focus, .anchor-link:hover, .anchor-link:active, .anchor-link:hover, .anchor-link:link, .anchor-link:visited {
margin-left: 0.3rem;
color: #505050;
text-shadow: none;
font-weight: 500;
}
25 changes: 23 additions & 2 deletions sass/_vars.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Typography
$size-body: 16px; // Usual browser default size
$size-body-mobile: 14px; // Size for mobile

// Breakpoints
$bp-phone-landscape: 480px; // Mobile-landscape (and larger)
$bp-tablet-portrait: 768px; // Tablet-portrait (and larger)
Expand All @@ -14,7 +18,10 @@ $bp-tablet-landscape-down: '(max-width: #{$bp-desktop - 1})';
$bp-desktop-up: '(min-width: #{$bp-desktop})';

// Colors
$color-black: #000;
$color-white: #ececec;
$color-grey-800: #232326;
$color-grey-900: #1e1e22;

$headerbar-color: #1e1e22;
$hover-color: #ececec;
Expand All @@ -32,9 +39,23 @@ $card-hover-background: #2f3033;
$duration-fast: 100ms;
$duration: 250ms;

// Z-Index
$z-layout-header: 800;
$z-main-menu-backdrop: 900;
$z-main-menu: 1000;

// General
$max-width: 1200px;
$mobile-menu-width: 300px;
$content-top-margin: 30px;
$default-padding: 15px;
$media-max-width: 1000px;
$border-radius: 10px;
$card-list-gap: 15px;

// CSS Vars
:root {
--header-height: 60px;

@media #{$bp-tablet-landscape-up} {
--header-height: 72px;
}
}
80 changes: 0 additions & 80 deletions sass/components/_book-nav.scss

This file was deleted.

26 changes: 26 additions & 0 deletions sass/components/_button-square.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
.button-square {
@include flex-center;

position: relative;
cursor: pointer;

&:hover {
&:before {
$padding: 8px;

content: '';
position: absolute;
top: $padding;
right: $padding;
bottom: $padding;
left: $padding;
background-color: rgba($color-white, 0.05);
border-radius: $border-radius;
}
}

&--header {
width: calc(var(--header-height) - 8px);
height: var(--header-height);
}
}
43 changes: 43 additions & 0 deletions sass/components/_button.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
.button {
$color-blue: #799bbb;
$color-pink: #bb799c;

display: inline-flex;
align-items: center;
background-color: $color-blue;
border: 3px solid #576f86;
padding: 6px 8px;
border-radius: $border-radius;
font-size: 1.2rem;
font-weight: 500;
transition: transform $duration-fast;

&:hover {
background-color: darken($color-blue, 3%);
}

&:active {
transform: translateY(2px);
}

&, &:hover, &:visited {
color: $color-white;
text-decoration: none;
}

&__icon {
height: 1.1em;
vertical-align: middle;
margin-left: 0.2em;
font-size: 0.9em;
}

&--pink {
background-color: $color-pink;
border-color: #865767;

&:hover {
background-color: darken($color-pink, 3%);
}
}
}
6 changes: 3 additions & 3 deletions sass/components/_card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
margin-bottom: $card-list-gap;
font-style: normal;
text-decoration: none;
box-shadow: 0px 0px 5px #494949;
border: 2px solid #383838;
}

.card:hover {
background-color: $card-hover-background;
box-shadow: 0px 0px 5px $default-color;
border: 2px solid #6b6b6b;
}

.card-image {
Expand Down Expand Up @@ -85,4 +85,4 @@
margin-left: auto;
margin-right: auto;
align-items: center;
}
}
12 changes: 12 additions & 0 deletions sass/components/_container.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.container {
--container-padding: 8px;

width: 100%;
max-width: calc(#{$max-width} + var(--container-padding) * 2);
margin: 0 auto;
padding: 0 var(--container-padding);

@media #{$bp-tablet-landscape-up} {
--container-padding: 16px;
}
}
Loading