Skip to content

Commit

Permalink
feat: reworked footer
Browse files Browse the repository at this point in the history
  • Loading branch information
berezinant committed Dec 6, 2024
1 parent 2b63314 commit ac25141
Show file tree
Hide file tree
Showing 12 changed files with 116 additions and 15 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/*
* Copyright 2014-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
import './styles.scss';
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*!
* Copyright 2014-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
@import '../_tokens/index';

.footer {
&--button_go-to-top {
background-image: url('../_assets/go-to-top-icon.svg');
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import * as button from './button/index';
import * as checkbox from './checkbox/index';
import * as dropdown from './dropdown/index';
import * as filterSection from './filter-section/index';
import * as footer from './footer/index';
import * as icon from './icon/index';
import * as libraryName from './library-name/index';
import * as libraryVersion from './library-version/index';
Expand All @@ -23,6 +24,7 @@ export {
checkbox,
dropdown,
filterSection,
footer,
icon,
libraryName,
libraryVersion,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,7 @@

background-image: url('../_assets/burger.svg');
}

.navigation-controls--btn_go-to-top {
background-image: url('../_assets/go-to-top-icon.svg');
}
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ public object AssetsInstaller : PageTransformer {
"ui-kit/assets/field-variable.svg",
"ui-kit/assets/filter.svg",
"ui-kit/assets/function.svg",
"ui-kit/assets/go-to-top-icon.svg",
"ui-kit/assets/homepage.svg",
"ui-kit/assets/interface-kotlin.svg",
"ui-kit/assets/interface.svg",
Expand All @@ -136,7 +137,6 @@ public object AssetsInstaller : PageTransformer {
"images/copy-icon.svg",
"images/copy-successful-icon.svg",
"images/footer-go-to-link.svg",
"images/go-to-top-icon.svg",
"images/logo-icon.svg",
)

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<#macro display>
<div class="footer">
<a href="#content" id="go-to-top-link" class="footer--button footer--button_go-to-top"></a>
<a href="#content" id="go-to-top-link" class="navigation-controls--btn navigation-controls--btn_go-to-top"></a>
<span>${footerMessage}</span>
<span class="pull-right">
<span>Generated by </span>
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -750,6 +750,78 @@
--rotate-transition:transform 200ms ease-in-out;
}

.footer--button_go-to-top {
background-image: url(assets/go-to-top-icon.svg);
}
:root {
--breakpoint-desktop-min:900px;
--breakpoint-tablet-max:899px;
--breakpoint-tablet-min:440px;
--breakpoint-mobile-max:439px;
--breakpoint-mobile-min:360px;
--color-key-blue:#307fff;
--color-key-blue-50:rgba(48,127,255,.5);
--color-background-nav:#27282c;
--color-background-nav-dt:#323237;
--color-background-page:#fff;
--color-background-page-dt:#262628;
--color-background-footer:#ebebeb;
--color-background-footer-dt:#323237;
--color-text:#000;
--color-text-dt:hsla(0,0%,100%,.96);
--color-text-light:rgba(0,0,0,.7);
--color-text-light-dt:hsla(0,0%,100%,.7);
--color-w05:hsla(0,0%,100%,.05);
--color-w08:hsla(0,0%,100%,.08);
--color-w10:hsla(0,0%,100%,.1);
--color-w16:hsla(0,0%,100%,.16);
--color-w50:hsla(0,0%,100%,.5);
--color-w70:hsla(0,0%,100%,.7);
--color-w80:hsla(0,0%,100%,.8);
--color-w100:#fff;
--color-b05:rgba(0,0,0,.05);
--color-b08:rgba(0,0,0,.08);
--color-b20:rgba(0,0,0,.2);
--color-b50:rgba(0,0,0,.5);
--color-b70:rgba(0,0,0,.7);
--color-cd-punctuation:#999;
--color-cd-keyword:#0033b3;
--color-cd-keyword-alternative:#cc7832;
--color-cd-builtin:#067d17;
--color-cd-builtin-alternative:#e7bf6a;
--color-cd-function:#00627a;
--color-cd-function-alternative:#ffc66d;
--color-cd-operator:#9a6e3a;
--color-cd-operator-alternative:#a9b7c6;
--color-cd-body:#000;
--color-cd-body-alternative:#a9b7c6;
--color-generic:#539df3;
--color-jvm:#4dbb5f;
--color-js:#ffc700;
--color-wasm:#fff;
--size-s1:4px;
--size-s2:8px;
--size-s3:16px;
--size-m1:24px;
--size-m2:32px;
--size-m3:48px;
--size-l1:64px;
--size-l2:72px;
--size-ta1:40px;
--size-ta2:52px;
--font-family-default:JetBrains Sans,Inter,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Droid Sans,Helvetica Neue,Arial,sans-serif;
--font-family-mono:JetBrains Mono,SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace;
--font-h1:600 44px/44px var(--font-family-default);
--font-h2:600 32px/32px var(--font-family-default);
--font-h3:600 24px/24px var(--font-family-default);
--font-h4:600 16px/24px var(--font-family-default);
--font-text-m:400 16px/24px var(--font-family-default);
--font-text-s:400 14px/20px var(--font-family-default);
--font-code:400 16px/24px var(--font-family-mono);
--hover-transition:background-color 200ms ease-in-out;
--rotate-transition:transform 200ms ease-in-out;
}

.ui-kit-icon {
background-color: transparent;
background-position: 50% 50%;
Expand Down Expand Up @@ -1235,6 +1307,10 @@
background-image: url(assets/burger.svg);
margin-left: auto;
}

.navigation-controls--btn_go-to-top {
background-image: url(assets/go-to-top-icon.svg);
}
:root {
--breakpoint-desktop-min:900px;
--breakpoint-tablet-max:899px;
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class NavigationIconTest : BaseAbstractTest() {
.filterKeys { it.startsWith("ui-kit/assets") }
.keys.sorted()

assertEquals(25, navIconAssets.size)
assertEquals(26, navIconAssets.size)
assertEquals("ui-kit/assets/abstract-class-kotlin.svg", navIconAssets[0])
assertEquals("ui-kit/assets/abstract-class.svg", navIconAssets[1])
assertEquals("ui-kit/assets/annotation-kotlin.svg", navIconAssets[2])
Expand All @@ -60,13 +60,14 @@ class NavigationIconTest : BaseAbstractTest() {
assertEquals("ui-kit/assets/field-variable.svg", navIconAssets[15])
assertEquals("ui-kit/assets/filter.svg", navIconAssets[16])
assertEquals("ui-kit/assets/function.svg", navIconAssets[17])
assertEquals("ui-kit/assets/homepage.svg", navIconAssets[18])
assertEquals("ui-kit/assets/interface-kotlin.svg", navIconAssets[19])
assertEquals("ui-kit/assets/interface.svg", navIconAssets[20])
assertEquals("ui-kit/assets/object.svg", navIconAssets[21])
assertEquals("ui-kit/assets/placeholder.svg", navIconAssets[22])
assertEquals("ui-kit/assets/theme-toggle.svg", navIconAssets[23])
assertEquals("ui-kit/assets/typealias-kotlin.svg", navIconAssets[24])
assertEquals("ui-kit/assets/go-to-top-icon.svg", navIconAssets[18])
assertEquals("ui-kit/assets/homepage.svg", navIconAssets[19])
assertEquals("ui-kit/assets/interface-kotlin.svg", navIconAssets[20])
assertEquals("ui-kit/assets/interface.svg", navIconAssets[21])
assertEquals("ui-kit/assets/object.svg", navIconAssets[22])
assertEquals("ui-kit/assets/placeholder.svg", navIconAssets[23])
assertEquals("ui-kit/assets/theme-toggle.svg", navIconAssets[24])
assertEquals("ui-kit/assets/typealias-kotlin.svg", navIconAssets[25])
}
}
}
Expand Down

0 comments on commit ac25141

Please sign in to comment.