mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-24 18:44:00 +03:00
feat: update navbar styles and add bootstrap classes
This commit is contained in:
parent
80cc6b8066
commit
457be6ca6c
|
@ -1,6 +1,6 @@
|
||||||
<!-- New Navbar -->
|
<!-- New Navbar -->
|
||||||
<nav class="navbar navbar-expand-lg bg-body-tertiary">
|
<nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top">
|
||||||
<div class="container-fluid">
|
<div class="container">
|
||||||
<a class="navbar-brand" href="https://www.django-rest-framework.org/"
|
<a class="navbar-brand" href="https://www.django-rest-framework.org/"
|
||||||
>Django REST framework</a
|
>Django REST framework</a
|
||||||
>
|
>
|
||||||
|
|
|
@ -5,7 +5,8 @@
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "webpack build",
|
"build": "webpack build",
|
||||||
"build:production": "webpack build --mode=production"
|
"build:production": "webpack build --mode=production",
|
||||||
|
"build:watch": "webpack build --watch"
|
||||||
},
|
},
|
||||||
"author": "",
|
"author": "",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
|
|
|
@ -1,3 +1,26 @@
|
||||||
|
// Bootstrap Variables
|
||||||
|
|
||||||
|
// Navbar
|
||||||
|
// $navbar-brand-font-size: $font-size-lg !default;
|
||||||
|
$navbar-padding-y: 0;
|
||||||
|
// $nav-link-height: $font-size-base * $line-height-base + $nav-link-padding-y * 2 !default;
|
||||||
|
// $navbar-light-color: rgba(var(--#{$prefix}emphasis-color-rgb), .65) !default;
|
||||||
|
// $navbar-light-hover-color: rgba(var(--#{$prefix}emphasis-color-rgb), .8) !default;
|
||||||
|
// $navbar-light-active-color: rgba(var(--#{$prefix}emphasis-color-rgb), 1) !default;
|
||||||
|
// $navbar-dark-color: rgba($white, .55) !default;
|
||||||
|
// $navbar-dark-hover-color: rgba($white, .75) !default;
|
||||||
|
// $navbar-dark-active-color: $white !default;
|
||||||
|
|
||||||
|
// Dropdowns
|
||||||
|
// $dropdown-padding-x: 0 !default;
|
||||||
|
// $dropdown-padding-y: .5rem !default;
|
||||||
|
// $dropdown-spacer: .125rem !default;
|
||||||
|
// $dropdown-link-color: var(--#{$prefix}body-color) !default;
|
||||||
|
// $dropdown-link-hover-color: $dropdown-link-color !default;
|
||||||
|
// $dropdown-link-hover-bg: var(--#{$prefix}tertiary-bg) !default;
|
||||||
|
$dropdown-font-size: 0.9rem;
|
||||||
|
$dropdown-color: #a30000;
|
||||||
|
|
||||||
// Configuration
|
// Configuration
|
||||||
@import "../../node_modules/bootstrap/scss/functions";
|
@import "../../node_modules/bootstrap/scss/functions";
|
||||||
@import "../../node_modules/bootstrap/scss/variables";
|
@import "../../node_modules/bootstrap/scss/variables";
|
||||||
|
@ -44,3 +67,9 @@
|
||||||
|
|
||||||
// Utilities
|
// Utilities
|
||||||
@import "../../node_modules/bootstrap/scss/utilities/api";
|
@import "../../node_modules/bootstrap/scss/utilities/api";
|
||||||
|
|
||||||
|
// Custom Classes
|
||||||
|
.body-content {
|
||||||
|
padding-top: 120px;
|
||||||
|
padding-bottom: 70px;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user