Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

nav.scss 2.0 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
  1. /* Navigation & Header
  2. .nav-mobile prefixed classes style nav elements only for mobile (< 768px)
  3. .nav-desktop prefixed classes style nav elements only for desktop
  4. ------------------------------------------------------------------------------*/
  5. .header-notifications a {
  6. color: var(--color-auto-blue-6);
  7. text-decoration: underline;
  8. }
  9. header summary,
  10. .nav-contact {
  11. @include breakpoint(md) {
  12. font-size: $spacer-3;
  13. }
  14. }
  15. .dropdown-withArrow[open] {
  16. .arrow {
  17. transform: rotate(180deg) scaleX(-1);
  18. }
  19. }
  20. .nav-mobile-dropdown {
  21. @media (max-width: $width-md - 1) {
  22. display: none;
  23. visibility: hidden;
  24. }
  25. }
  26. .nav-mobile-dropdown.js-open {
  27. @media (max-width: $width-md) {
  28. display: block;
  29. visibility: visible;
  30. width: 100%;
  31. position: absolute;
  32. top: 0;
  33. right: 0;
  34. left: 0;
  35. z-index: 2;
  36. background-color: var(--color-auto-gray-0);
  37. padding: $spacer-3;
  38. padding-top: $spacer-8;
  39. box-shadow: 0 1px 15px rgba(0, 0, 0, 0.15);
  40. }
  41. }
  42. .nav-mobile-burgerIcon {
  43. background: url("/assets/images/octicons/hamburger.svg") no-repeat right;
  44. width: 18px;
  45. height: 23px;
  46. position: relative;
  47. z-index: 3;
  48. &.js-open {
  49. background: url("/assets/images/octicons/x.svg") no-repeat right;
  50. width: 16px;
  51. height: 21px;
  52. }
  53. }
  54. .nav-desktop-productDropdown,
  55. .nav-desktop-langDropdown {
  56. @include breakpoint(md) {
  57. min-width: 200px;
  58. background: var(--color-bg-primary);
  59. border-radius: 3px;
  60. box-shadow: 0 1px 15px rgba(0, 0, 0, 0.15);
  61. }
  62. }
  63. .nav-desktop-productDropdownButton {
  64. @include breakpoint(md) {
  65. font-family: $mono-font;
  66. }
  67. }
  68. // Allows dropdown to be closed when clicking outside of it
  69. @include breakpoint(md) {
  70. details.close-when-clicked-outside[open] > summary::before {
  71. position: fixed;
  72. top: 0;
  73. right: 0;
  74. bottom: 0;
  75. left: 0;
  76. z-index: 5;
  77. display: block;
  78. cursor: default;
  79. content: " ";
  80. background: transparent;
  81. }
  82. }
  83. .nav-dropdown {
  84. @media (min-width: 1012px) and (max-width: 1279px) {
  85. right: 0;
  86. }
  87. }
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...