|
51 | 51 | }
|
52 | 52 |
|
53 | 53 | .bi {
|
54 |
| - width: 1em; |
55 |
| - height: 1em; |
56 | 54 | vertical-align: -.125em;
|
57 | 55 | fill: currentColor;
|
58 | 56 | }
|
|
74 | 72 | white-space: nowrap;
|
75 | 73 | -webkit-overflow-scrolling: touch;
|
76 | 74 | }
|
| 75 | + |
| 76 | + .btn-bd-primary { |
| 77 | + --bd-violet-bg: #712cf9; |
| 78 | + --bd-violet-rgb: 112.520718, 44.062154, 249.437846; |
| 79 | + |
| 80 | + --bs-btn-font-weight: 600; |
| 81 | + --bs-btn-color: var(--bs-white); |
| 82 | + --bs-btn-bg: var(--bd-violet-bg); |
| 83 | + --bs-btn-border-color: var(--bd-violet-bg); |
| 84 | + --bs-btn-hover-color: var(--bs-white); |
| 85 | + --bs-btn-hover-bg: #6528e0; |
| 86 | + --bs-btn-hover-border-color: #6528e0; |
| 87 | + --bs-btn-focus-shadow-rgb: var(--bd-violet-rgb); |
| 88 | + --bs-btn-active-color: var(--bs-btn-hover-color); |
| 89 | + --bs-btn-active-bg: #5a23c8; |
| 90 | + --bs-btn-active-border-color: #5a23c8; |
| 91 | + } |
| 92 | + .bd-mode-toggle { |
| 93 | + z-index: 1500; |
| 94 | + } |
77 | 95 | </style>
|
78 | 96 |
|
79 | 97 | {{ range .Page.Params.extra_css }}
|
|
98 | 116 | </symbol>
|
99 | 117 | </svg>
|
100 | 118 |
|
101 |
| - <header class="container d-flex justify-content-end navbar-nav"> |
102 |
| - <div class="align-self-end nav-item dropdown"> |
103 |
| - <button class="btn btn-link nav-link py-2 px-0 px-lg-2 dropdown-toggle d-flex align-items-center" |
104 |
| - id="bd-theme" |
105 |
| - type="button" |
106 |
| - aria-expanded="false" |
107 |
| - data-bs-toggle="dropdown" |
108 |
| - aria-label="Toggle theme (auto)"> |
109 |
| - <svg class="bi my-1 theme-icon-active"><use href="#circle-half"></use></svg> |
110 |
| - <span class="d-lg-none ms-2" id="bd-theme-text">Toggle theme</span> |
111 |
| - </button> |
112 |
| - <ul class="dropdown-menu dropdown-menu-end" aria-labelledby="bd-theme-text"> |
113 |
| - <li> |
114 |
| - <button type="button" class="dropdown-item d-flex align-items-center" data-bs-theme-value="light" aria-pressed="false"> |
115 |
| - <svg class="bi me-2 opacity-50 theme-icon"><use href="#sun-fill"></use></svg> |
116 |
| - Light |
117 |
| - <svg class="bi ms-auto d-none"><use href="#check2"></use></svg> |
118 |
| - </button> |
119 |
| - </li> |
120 |
| - <li> |
121 |
| - <button type="button" class="dropdown-item d-flex align-items-center" data-bs-theme-value="dark" aria-pressed="false"> |
122 |
| - <svg class="bi me-2 opacity-50 theme-icon"><use href="#moon-stars-fill"></use></svg> |
123 |
| - Dark |
124 |
| - <svg class="bi ms-auto d-none"><use href="#check2"></use></svg> |
125 |
| - </button> |
126 |
| - </li> |
127 |
| - <li> |
128 |
| - <button type="button" class="dropdown-item d-flex align-items-center active" data-bs-theme-value="auto" aria-pressed="true"> |
129 |
| - <svg class="bi me-2 opacity-50 theme-icon"><use href="#circle-half"></use></svg> |
130 |
| - Auto |
131 |
| - <svg class="bi ms-auto d-none"><use href="#check2"></use></svg> |
132 |
| - </button> |
133 |
| - </li> |
134 |
| - </ul> |
135 |
| - </div> |
136 |
| - </header> |
| 119 | + <div class="dropdown position-fixed bottom-0 end-0 mb-5 me-5 bd-mode-toggle"> |
| 120 | + <button class="btn btn-bd-primary py-2 dropdown-toggle d-flex align-items-center shadow" |
| 121 | + id="bd-theme" |
| 122 | + type="button" |
| 123 | + aria-expanded="false" |
| 124 | + data-bs-toggle="dropdown" |
| 125 | + aria-label="Toggle theme (auto)"> |
| 126 | + <svg class="bi my-1 theme-icon-active" width="1em" height="1em"><use href="#circle-half"></use></svg> |
| 127 | + <span class="d-lg-none ms-2" id="bd-theme-text">Toggle theme</span> |
| 128 | + </button> |
| 129 | + <ul class="dropdown-menu dropdown-menu-end shadow" aria-labelledby="bd-theme-text"> |
| 130 | + <li> |
| 131 | + <button type="button" class="dropdown-item d-flex align-items-center" data-bs-theme-value="light" aria-pressed="false"> |
| 132 | + <svg class="bi me-2 opacity-50 theme-icon" width="1em" height="1em"><use href="#sun-fill"></use></svg> |
| 133 | + Light |
| 134 | + <svg class="bi ms-auto d-none" width="1em" height="1em"><use href="#check2"></use></svg> |
| 135 | + </button> |
| 136 | + </li> |
| 137 | + <li> |
| 138 | + <button type="button" class="dropdown-item d-flex align-items-center" data-bs-theme-value="dark" aria-pressed="false"> |
| 139 | + <svg class="bi me-2 opacity-50 theme-icon" width="1em" height="1em"><use href="#moon-stars-fill"></use></svg> |
| 140 | + Dark |
| 141 | + <svg class="bi ms-auto d-none" width="1em" height="1em"><use href="#check2"></use></svg> |
| 142 | + </button> |
| 143 | + </li> |
| 144 | + <li> |
| 145 | + <button type="button" class="dropdown-item d-flex align-items-center active" data-bs-theme-value="auto" aria-pressed="true"> |
| 146 | + <svg class="bi me-2 opacity-50 theme-icon" width="1em" height="1em"><use href="#circle-half"></use></svg> |
| 147 | + Auto |
| 148 | + <svg class="bi ms-auto d-none" width="1em" height="1em"><use href="#check2"></use></svg> |
| 149 | + </button> |
| 150 | + </li> |
| 151 | + </ul> |
| 152 | + </div> |
137 | 153 |
|
138 | 154 | <div class="b-example-divider"></div>
|
139 | 155 |
|
|
0 commit comments