diff --git a/sass/components/_bevy-instance.scss b/sass/components/_bevy-instance.scss index 5450e9ed54..f009ac04ba 100644 --- a/sass/components/_bevy-instance.scss +++ b/sass/components/_bevy-instance.scss @@ -72,4 +72,8 @@ border-radius: $border-radius; background: var(--bevy-instance-canvas-color); } + + &__canvas:fullscreen { + border-radius: 0; + } } diff --git a/sass/components/_example.scss b/sass/components/_example.scss index 8b454406a3..7c34bb2419 100644 --- a/sass/components/_example.scss +++ b/sass/components/_example.scss @@ -6,15 +6,15 @@ gap: 8px; margin: 16px 0 16px; align-items: baseline; - grid-template-columns: 1fr 1fr; + grid-template-columns: 2fr 35px auto; grid-template-areas: - "title title" - "back github"; + "title title title" + "back fullscreen github"; @media #{$bp-tablet-portrait-up} { margin: 32px 0 16px; - grid-template-areas: "back title github"; - grid-template-columns: 150px 1fr 150px; + grid-template-areas: "back title fullscreen github"; + grid-template-columns: 150px 1fr 35px 150px; } } @@ -26,6 +26,7 @@ } &__back, + &__fullscreen, &__github { font-size: 1rem; @@ -42,6 +43,12 @@ grid-area: back; } + &__fullscreen { + grid-area: fullscreen; + text-align: center; + font-size: x-large; + } + &__github { grid-area: github; text-align: right; diff --git a/sass/components/_icon.scss b/sass/components/_icon.scss index a1be364d98..fbad43d520 100644 --- a/sass/components/_icon.scss +++ b/sass/components/_icon.scss @@ -21,18 +21,19 @@ ("github", 24), ("pencil", 19), ("times", 16), + ("fullscreen", 24), ); -@each $icon in $icons { - // Icons always must have 24px height - // This is just for icon height consistency - $ratio: math.div(nth($icon, 2), 24); + @each $icon in $icons { + // Icons always must have 24px height + // This is just for icon height consistency + $ratio: math.div(nth($icon, 2), 24); - &--#{nth($icon, 1)} { - height: var(--icon-height); - width: calc(var(--icon-height) * #{$ratio}); - -webkit-mask-image: url("/assets/icon-#{nth($icon, 1)}.svg"); - mask-image: url("/assets/icon-#{nth($icon, 1)}.svg"); + &--#{nth($icon, 1)} { + height: var(--icon-height); + width: calc(var(--icon-height) * #{$ratio}); + -webkit-mask-image: url("/assets/icon-#{nth($icon, 1)}.svg"); + mask-image: url("/assets/icon-#{nth($icon, 1)}.svg"); + } } } -} diff --git a/static/assets/icon-fullscreen.svg b/static/assets/icon-fullscreen.svg new file mode 100644 index 0000000000..549da5726c --- /dev/null +++ b/static/assets/icon-fullscreen.svg @@ -0,0 +1,36 @@ + \ No newline at end of file diff --git a/templates/layouts/example.html b/templates/layouts/example.html index 2c1ac59f2e..e12a4d6f45 100644 --- a/templates/layouts/example.html +++ b/templates/layouts/example.html @@ -6,9 +6,10 @@ {% set parent_idx = total_ancestors - 1 %} {% set category = get_section(path=page.ancestors | nth(n=parent_idx)) %}