Skip to content

Commit 377a2a1

Browse files
msbtamotl
authored andcommitted
NG: Remove unneeded js/css styling for mobile nav and abandoned elements
1 parent c546211 commit 377a2a1

File tree

3 files changed

+0
-381
lines changed

3 files changed

+0
-381
lines changed

src/crate/theme/rtd/crate/static/css/crateio.css

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -7,35 +7,6 @@
77
color: #111;
88
}
99

10-
.sub-menu {
11-
list-style-type: none;
12-
padding-left: 0;
13-
top: 50px;
14-
background-color: #fff;
15-
position: absolute;
16-
min-width: 180px;
17-
box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
18-
z-index: 1;
19-
}
20-
21-
.sub-menu li a {
22-
display: block;
23-
padding-top: 12px;
24-
padding-bottom: 12px;
25-
padding-left: 10px;
26-
}
27-
28-
.sub-menu li a:hover {
29-
background-color: #f1f1f1;
30-
}
31-
.menu-item-has-children .sub-menu {
32-
display: none;
33-
}
34-
35-
.menu-item-has-children:hover .sub-menu {
36-
display: block;
37-
}
38-
3910
html {
4011
height: 100%;
4112
}

src/crate/theme/rtd/crate/static/css/custom.css

Lines changed: 0 additions & 259 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,6 @@
3838
src: url("../fonts/montserrat-v26-latin-600.woff2") format("woff2");
3939
}
4040

41-
.w-canvas {
42-
margin-top: 64px;
43-
margin-bottom: 64px;
44-
padding-top: 32px;
45-
}
46-
4741
a.copybtn {
4842
width: 2em;
4943
height: 2em;
@@ -341,12 +335,6 @@ header .navbar {
341335
height: auto;
342336
}
343337

344-
.main-nav {
345-
position: relative;
346-
-webkit-perspective: 600px;
347-
perspective: 600px;
348-
}
349-
350338
.main-nav .btn-link:hover {
351339
text-decoration: none;
352340
}
@@ -390,78 +378,6 @@ header.header-nav {
390378
padding: 15px 5px;
391379
}
392380

393-
body .main-nav .sub-menu li a {
394-
padding-top: 8px;
395-
padding-bottom: 8px;
396-
}
397-
398-
.main-nav .sub-menu li a:active {
399-
-webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
400-
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
401-
}
402-
403-
.main-nav .menu-item-has-children .sub-menu {
404-
opacity: 0;
405-
position: absolute;
406-
overflow: hidden;
407-
padding: 10px;
408-
top: -40px;
409-
min-width: 200px;
410-
-webkit-transition: all 0.2s;
411-
transition: all 0.2s;
412-
-webkit-transform: translateY(89px);
413-
transform: translateY(89px);
414-
will-change: transform;
415-
display: none;
416-
-webkit-box-shadow: none;
417-
box-shadow: none;
418-
background-color: transparent;
419-
margin-bottom: 0px;
420-
}
421-
422-
.main-nav .trigger-enter.menu-item-has-children .sub-menu {
423-
display: block;
424-
}
425-
426-
.trigger-enter-active.menu-item-has-children .sub-menu {
427-
opacity: 1;
428-
-webkit-transform: translateY(94px);
429-
transform: translateY(94px);
430-
}
431-
432-
.arrow {
433-
position: absolute;
434-
width: 20px;
435-
height: 20px;
436-
display: block;
437-
background: white;
438-
}
439-
440-
.arrow:after,
441-
.arrow:before {
442-
bottom: 100%;
443-
left: 50%;
444-
border: solid transparent;
445-
content: " ";
446-
height: 0;
447-
width: 0;
448-
position: absolute;
449-
pointer-events: none;
450-
}
451-
452-
.arrow:after {
453-
border-color: rgba(255, 255, 255, 0);
454-
border-bottom-color: #ffffff;
455-
border-width: 10px;
456-
margin-left: -10px;
457-
}
458-
.arrow:before {
459-
border-color: rgba(85, 212, 245, 0);
460-
border-bottom-color: var(--primary-color);
461-
border-width: 13px;
462-
margin-left: -13px;
463-
}
464-
465381
.fa.mobile-nav-button,
466382
.fa.mobile-nav-button:focus {
467383
color: black;
@@ -496,25 +412,7 @@ body .mm-menu .navbar-nav {
496412
margin-top: 43px;
497413
}
498414

499-
#mobile-nav .sub-menu {
500-
position: static;
501-
background-color: transparent;
502-
box-shadow: none;
503-
}
504-
505415
@media screen and (max-width: 991px) {
506-
.main-nav ul.menu > li.menu-item > a {
507-
padding: 1rem 0.8rem;
508-
font-size: 16px;
509-
}
510-
511-
#mobile-menu-toggler {
512-
margin-bottom: 16px;
513-
}
514-
515-
.w-canvas {
516-
margin-top: 30px;
517-
}
518416
.mobileAlign {
519417
text-align: left;
520418
}
@@ -654,10 +552,6 @@ div.sidebar {
654552
h1 {
655553
font-size: 32px;
656554
}
657-
.w-canvas {
658-
padding-left: 0;
659-
padding-right: 0;
660-
}
661555
}
662556

663557
/**
@@ -871,146 +765,10 @@ details.sd-dropdown summary.sd-summary-title {
871765
/**
872766
* MOBILE Nav
873767
*/
874-
875-
.w-canvas {
876-
transition: transform 0.3s ease-in-out;
877-
}
878-
879768
#mobile-nav-new {
880769
display: none;
881770
}
882771

883-
/* MOBILE */
884-
@media all and (max-width: 1023px) {
885-
.main-nav {
886-
position: fixed;
887-
z-index: 9999;
888-
top: 65px;
889-
right: 0;
890-
max-width: 400px;
891-
width: 100%;
892-
display: block !important;
893-
transform: translateX(100%);
894-
transition: transform 0.3s ease-in-out;
895-
border-left: 2px solid var(--primary-color);
896-
height: calc(100vh - 65px);
897-
background: #fff !important;
898-
gap: 0;
899-
}
900-
901-
header.header-nav {
902-
z-index: 9999;
903-
}
904-
905-
.main-nav ul.menu {
906-
flex-direction: column;
907-
align-items: stretch;
908-
background: #fff;
909-
}
910-
911-
.main-nav ul.menu > li.menu-item {
912-
display: block;
913-
margin: 0;
914-
border-top: 1px solid #e7e7e7;
915-
}
916-
917-
.navlink.w-nav-link.menu-item.menu-item-has-children:first-child {
918-
border-top: none;
919-
}
920-
921-
.main-nav ul.menu > li.menu-item > a {
922-
display: block;
923-
padding-left: 10px;
924-
}
925-
926-
.main-nav ul.menu .btn-link a {
927-
color: black;
928-
font-weight: 600;
929-
border-left: 0;
930-
border-right: 0;
931-
padding-left: 10px !important;
932-
}
933-
934-
/* checked */
935-
#mobile-nav-new:checked ~ .header-nav .main-nav {
936-
transform: translateX(0);
937-
}
938-
939-
#mobile-nav-new:checked ~ .w-canvas {
940-
transform: translate3d(-440px, 0, 0);
941-
}
942-
943-
#mobile-nav-new:checked ~ .footer {
944-
transform: translate3d(-440px, 0, 0);
945-
}
946-
947-
.main-nav .menu-item-has-children .sub-menu {
948-
padding: 0;
949-
border-right: 1px solid #e7e7e7;
950-
}
951-
952-
body .main-nav .sub-menu li a {
953-
padding: 1rem 1rem;
954-
}
955-
956-
.menu-item-has-children {
957-
padding-right: 65px !important;
958-
background-color: #fff !important;
959-
border-right: 1px solid #dedede !important;
960-
}
961-
962-
.menu-item-has-children > a {
963-
background-color: white;
964-
border-right: 1px solid #dedede !important;
965-
}
966-
967-
.menu-item-has-children:after {
968-
content: "";
969-
border: 2px solid transparent;
970-
display: block;
971-
width: 8px;
972-
height: 8px;
973-
/* margin: auto; */
974-
position: absolute;
975-
top: 23px;
976-
bottom: 0;
977-
transform: rotate(-45deg);
978-
border-top: none;
979-
border-left: none;
980-
right: 30px;
981-
border-color: rgba(0, 0, 0, 0.3);
982-
}
983-
984-
.menu-item-has-children:hover:after,
985-
.menu-item-has-children:active:after,
986-
.menu-item-has-children:focus:after {
987-
transform: rotate(45deg);
988-
}
989-
990-
/* Submenu */
991-
.main-nav .menu-item-has-children .sub-menu {
992-
position: relative !important;
993-
}
994-
995-
.main-nav .sub-menu {
996-
top: 0 !important;
997-
transform: initial !important;
998-
/*background-color: #F4F4F4 !important;
999-
margin-right: -40px;*/
1000-
}
1001-
1002-
.main-nav .menu-item {
1003-
border-top: 1px solid #e7e7e7;
1004-
}
1005-
}
1006-
1007-
@media all and (max-width: 767px) {
1008-
.main-nav {
1009-
top: 60px;
1010-
height: calc(100vh - 60px);
1011-
}
1012-
}
1013-
1014772
/* DESKTOP */
1015773
@media all and (min-width: 1024px) {
1016774
.fa.mobile-nav-button,
@@ -1644,11 +1402,6 @@ ul.search li {
16441402
display: flex;
16451403
}
16461404

1647-
.cr-docs-sql-99 .w-canvas {
1648-
margin-top: 32px;
1649-
padding-top: 1px;
1650-
}
1651-
16521405
.cr-sql-99-headline p {
16531406
font-size: 20px;
16541407
line-height: 24px;
@@ -1700,10 +1453,6 @@ ul.search li {
17001453
}
17011454

17021455
@media all and (max-width: 992px) {
1703-
.w-canvas {
1704-
padding-top: 64px;
1705-
}
1706-
17071456
.cr-sql-99-headline {
17081457
align-items: flex-start;
17091458
flex-direction: column;
@@ -1712,17 +1461,9 @@ ul.search li {
17121461
.cr-sql-99-logo {
17131462
margin: 20px 20px 10px 0;
17141463
}
1715-
1716-
.cr-docs-sql-99.notif-bar-enabled .w-canvas {
1717-
padding-top: 0px !important;
1718-
}
17191464
}
17201465

17211466
@media all and (max-width: 540px) {
1722-
.cr-docs-sql-99 .w-canvas {
1723-
margin-top: 15px;
1724-
}
1725-
17261467
.cr-sql-99-header {
17271468
display: flex;
17281469
flex-direction: column;

0 commit comments

Comments
 (0)