Skip to content
This repository was archived by the owner on Nov 29, 2023. It is now read-only.

Commit f702f59

Browse files
authored
DX-2783 Fix Minor CSS Bugs (#686)
* DX-2783 Fix Minor CSS Bugs * new favicon * Fix spinning arrow and side panel on mobile * new postman icon * maybe fix dev docs logo * try to fix navbar image css * fix dev docs logo * dropdown menus * fix css for one of buttons
1 parent 31f9cdb commit f702f59

File tree

7 files changed

+89
-34
lines changed

7 files changed

+89
-34
lines changed

site/src/components/css/LandingPage.module.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
.rightImage {
4949
width: 75%;
5050
height: auto;
51+
max-height: 550px;
5152
}
5253

5354
@media screen and (max-width: 1152px) {

site/src/css/custom.css

Lines changed: 81 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
/* variables documented here: https://github.com/facebook/docusaurus/issues/3955 */
3131
--ifm-background-color: #F5FBFE;
3232
--ifm-navbar-background-color: #F5FBFE;
33+
--ifm-dropdown-background-color: #F5FBFE;
3334
--ifm-cloud-color: #e6f5fd;
3435
--ifm-cloud-accent: #cdebfb;
3536
--ifm-footer-color: #0A2540;
@@ -76,6 +77,7 @@
7677
html[data-theme='dark'] {
7778
--ifm-background-color: #0A2540;
7879
--ifm-navbar-background-color: #0A2540;
80+
--ifm-dropdown-background-color: #0A2540;
7981
--ifm-background-surface-color: #0A2540;
8082
--ifm-cloud-color: #08304b;
8183
--ifm-cloud-accent: #084062;
@@ -144,15 +146,22 @@ html[data-theme='dark'] {
144146
}
145147

146148
.header-login-link {
147-
background-image: url(@site/static/img/login-button.svg);
148149
order: 5;
149-
width: 140px;
150-
height: 43px;
151-
background-size: contain;
152-
background-position: center;
153-
background-repeat: no-repeat;
154-
margin-left: 1rem;
155-
border-radius: 21.5px;
150+
}
151+
152+
.header-login-link::before {
153+
content: 'Login';
154+
background-color: var(--bwBlue);
155+
border-radius: 20px;
156+
color: #FFFFF2;
157+
font-size: 12px;
158+
font-family: 'Overpass Bold';
159+
text-transform: uppercase;
160+
line-height: 18px;
161+
letter-spacing: .1em;
162+
text-decoration: none;
163+
padding: 12px 30px;
164+
order: 5;
156165
}
157166

158167
/* Algolia DocSearch CSS Settings */
@@ -307,6 +316,10 @@ div[class^='announcementBarContent'] a:hover {
307316
text-decoration: none;
308317
}
309318

319+
html[data-theme='dark'] .navbar .dropdown__menu {
320+
box-shadow: 0 5px 40px #08121D;
321+
}
322+
310323
/* shows full logo name on mobile */
311324
.navbar .navbar__items {
312325
flex: auto;
@@ -370,6 +383,12 @@ div.text--center {
370383
display: none;
371384
}
372385

386+
@media screen and (max-width: 996px) {
387+
.RedocStandalone .menu-content {
388+
background-color: var(--ifm-background-color);
389+
}
390+
}
391+
373392
.RedocStandalone operation-type {
374393
margin-top: 6px;
375394
font-size: 8px;
@@ -444,7 +463,7 @@ div.text--center {
444463
}
445464

446465
/* Loading Circle Sizing and Animation */
447-
.RedocStandalone div > svg:last-child {
466+
.RedocStandalone > div > svg:last-child {
448467
width: 48px;
449468
height: 48px;
450469
animation-name: ckw;
@@ -557,6 +576,10 @@ html:not([data-theme='dark'])
557576
text-shadow: none;
558577
}
559578

579+
.RedocStandalone caption {
580+
color: var(--ifm-font-color-base);
581+
}
582+
560583
/* Background of server selection dropdown */
561584
/** Outer Box Background **/
562585
html[data-theme='dark']
@@ -585,6 +608,55 @@ html[data-theme='dark']
585608
box-shadow: none;
586609
}
587610

611+
/** Callbacks Dropdowns **/
612+
.RedocStandalone
613+
div[id^='operation']
614+
> div
615+
> div:last-child
616+
> button {
617+
background-color: var(--ifm-cloud-color);
618+
}
619+
620+
/** One of Buttons **/
621+
.RedocStandalone
622+
div[id^='operation']
623+
> div
624+
> div
625+
> div
626+
> div
627+
> div
628+
> div
629+
> button[class^='sc'] {
630+
background-color: var(--ifm-background-color);
631+
}
632+
633+
/** One of Buttons **/
634+
.RedocStandalone
635+
div[id^='operation']
636+
> div
637+
> div
638+
> div
639+
> div
640+
> div
641+
> div
642+
> button[class^='sc']:focus {
643+
background-color: var(--white);
644+
color: #000000;
645+
}
646+
647+
/** Copy button in Code Snippets **/
648+
.RedocStandalone
649+
div[id^='operation']
650+
> div
651+
> div
652+
> div
653+
> div
654+
> div
655+
> div
656+
> button:hover {
657+
background-color: transparent;
658+
}
659+
588660
/* Server selection dropdown arrow */
589661
html[data-theme='dark']
590662
.RedocStandalone

site/static/img/dev-docs-logo.svg

Lines changed: 6 additions & 11 deletions
Loading

site/static/img/favicon.ico

12.9 KB
Binary file not shown.

site/static/img/login-button.svg

Lines changed: 0 additions & 4 deletions
This file was deleted.

site/static/img/postman-full.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

site/static/img/postman.svg

Lines changed: 1 addition & 9 deletions
Loading

0 commit comments

Comments
 (0)