Skip to content

Commit 457be6c

Browse files
committed
feat: update navbar styles and add bootstrap classes
1 parent 80cc6b8 commit 457be6c

File tree

3 files changed

+33
-3
lines changed

3 files changed

+33
-3
lines changed

docs_theme/nav.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!-- New Navbar -->
2-
<nav class="navbar navbar-expand-lg bg-body-tertiary">
3-
<div class="container-fluid">
2+
<nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top">
3+
<div class="container">
44
<a class="navbar-brand" href="https://www.django-rest-framework.org/"
55
>Django REST framework</a
66
>

docs_theme/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"main": "index.js",
66
"scripts": {
77
"build": "webpack build",
8-
"build:production": "webpack build --mode=production"
8+
"build:production": "webpack build --mode=production",
9+
"build:watch": "webpack build --watch"
910
},
1011
"author": "",
1112
"license": "ISC",

docs_theme/src/scss/styles.scss

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1+
// Bootstrap Variables
2+
3+
// Navbar
4+
// $navbar-brand-font-size: $font-size-lg !default;
5+
$navbar-padding-y: 0;
6+
// $nav-link-height: $font-size-base * $line-height-base + $nav-link-padding-y * 2 !default;
7+
// $navbar-light-color: rgba(var(--#{$prefix}emphasis-color-rgb), .65) !default;
8+
// $navbar-light-hover-color: rgba(var(--#{$prefix}emphasis-color-rgb), .8) !default;
9+
// $navbar-light-active-color: rgba(var(--#{$prefix}emphasis-color-rgb), 1) !default;
10+
// $navbar-dark-color: rgba($white, .55) !default;
11+
// $navbar-dark-hover-color: rgba($white, .75) !default;
12+
// $navbar-dark-active-color: $white !default;
13+
14+
// Dropdowns
15+
// $dropdown-padding-x: 0 !default;
16+
// $dropdown-padding-y: .5rem !default;
17+
// $dropdown-spacer: .125rem !default;
18+
// $dropdown-link-color: var(--#{$prefix}body-color) !default;
19+
// $dropdown-link-hover-color: $dropdown-link-color !default;
20+
// $dropdown-link-hover-bg: var(--#{$prefix}tertiary-bg) !default;
21+
$dropdown-font-size: 0.9rem;
22+
$dropdown-color: #a30000;
23+
124
// Configuration
225
@import "../../node_modules/bootstrap/scss/functions";
326
@import "../../node_modules/bootstrap/scss/variables";
@@ -44,3 +67,9 @@
4467

4568
// Utilities
4669
@import "../../node_modules/bootstrap/scss/utilities/api";
70+
71+
// Custom Classes
72+
.body-content {
73+
padding-top: 120px;
74+
padding-bottom: 70px;
75+
}

0 commit comments

Comments
 (0)