Skip to content

Commit

Permalink
fix: missing close on banner, table icons, mobile menu icon, responsi…
Browse files Browse the repository at this point in the history
…ve footer
  • Loading branch information
kwiato committed Sep 20, 2024
1 parent 358366a commit 6a2a3ef
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 21 deletions.
2 changes: 1 addition & 1 deletion sphinx_scylladb_theme/promo-banner.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<a class="promo-banner__button button button--reverse" href="{{theme_banner_button_url}}"
target="_blank" rel="noopener noreferrer">{{theme_banner_button_text}}</a>
<button class="promo-banner__close">
<i class="icon-close"></i>
<i class="icon-cancel"></i>
</button>
</div>
</section>
2 changes: 1 addition & 1 deletion sphinx_scylladb_theme/side-nav-toggle.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="side-nav-toggle">
<i class="dark-theme-toggler icon-theme"></i>
<div class="side-nav-toggle__button" data-toggle="side-nav">
<i class="fas fa-bars"></i>
<i class="icon-menu"></i>
</div>
</div>
19 changes: 10 additions & 9 deletions src/css/base/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -63,26 +63,27 @@ $border-radius-md: $spacer-xxs;
--gray-950: #{$gray-950};
--black: #{$black};

--primary: #42C4E6;
--primary: #{$primary};
--secondary: #{$secondary};
--success: #{$success};
--info: #{$info};
--warning: #{$warning};
--danger: #{$danger};

--link-color: #3C4FE0;
--link-color-hover: #3C4FE0;
--link-color: #{$link-color};
--link-color-hover: #{$link-color};
--text-color: #{$black};
--code-color: #{$black};
--text-emphasis: #{$black};
--text-muted: #{$text-muted};
--border-color: #F1F1F1;
--header-border: #4458A3;
--bg-color: #FEFEFE;
--well-bg: #F7F8F9;
--navigation-bg: #F6F8FF;
--border-color: #{$border-color};
--header-border: #{$header-border};

--bg-color: #{$bg-color};
--well-bg: #{$well-bg};
--navigation-bg: #{$navigation-bg};
--card-bg: var(--white);
--admonition: #6F7071;
--admonition: #{$admonition};

--shadow-lg: 0px 4px 25px rgba(0, 0, 0, 0.15);
--border-width: #{$border-width};
Expand Down
12 changes: 8 additions & 4 deletions src/css/components/_content.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.layout {
display: flex;
background-color: var(--color--background-base);
background-color: var(--bg-color);
}

.pre-content {
Expand Down Expand Up @@ -28,7 +28,7 @@

li::before {
content: "\2022";
color: var(--color-typography-bullet);
color: var(--text-muted);
font-family: $font-icons-family;
float: left;
font-size: 20px;
Expand All @@ -54,8 +54,12 @@
margin-bottom: $gap;
}

.inline-icon.fa-check {
color: var(--color-typography-icon-checkmark);
.inline-icon {
font-size: 22px;

&.icon-check {
color: var(--primary);
}
}
}

Expand Down
4 changes: 3 additions & 1 deletion src/css/components/_footer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@
justify-content: space-between;
padding-bottom: 8px;
text-align: center;
padding-bottom: $spacer-sm;
}

.footer-logo {
margin-bottom: $gap;
margin-bottom: 0;
background-image: url("../img/logo-scylla-horizontal-color.svg");
background-position: center;
background-repeat: no-repeat;
Expand All @@ -38,6 +39,7 @@

.footer-links {
text-align: left;
margin-bottom: 0 !important;

&__link {
color: var(--text-color);
Expand Down
5 changes: 3 additions & 2 deletions src/css/components/_promo-banner.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,11 @@
right: 16px;
top: 16px;

.scylla-icon {
i {
height: 34px;
width: 34px;
filter: brightness(100%);
font-size: 34px;
color: var(--white);
}

&:hover {
Expand Down
1 change: 1 addition & 0 deletions src/css/components/_side-nav-toggle.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
display: flex;
margin-right: 20px;
gap: 10px;
font-size: 22px;
position: relative;
z-index: 300;
}
Expand Down
2 changes: 1 addition & 1 deletion src/css/components/_tables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ table {

&:not(.highlighttable) {
tbody tr:first-child {
border-top: 1px solid var(--secondary);
border-top: 1px solid var(--header-border);
}
}

Expand Down
4 changes: 2 additions & 2 deletions tests/extensions/test_hero_box.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
[],
{
"title": "Check Now",
"button_icon": "fa-check",
"button_icon": "icon-check",
"button_text": "Submit",
"button_url": "#",
"button_style": "bold",
Expand All @@ -132,7 +132,7 @@
</div>
<a href="#">
<button class="hero__button button hero__button--bold">
<i class="icon icon--left fa-check" aria-hidden="true"></i>
<i class="icon icon--left icon-check" aria-hidden="true"></i>
Submit
</button>
</a>
Expand Down

0 comments on commit 6a2a3ef

Please sign in to comment.