2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-04 20:51:00 +00:00

Add tabs to part detail view

- Currently each "tab" reloads the entire page but with the new tab selected
- We could use bootstrap js to do this without reloading (load ALL part data)
This commit is contained in:
Oliver
2018-04-14 21:58:01 +10:00
parent 830d33763e
commit 0e2c5e6af5
13 changed files with 134 additions and 22 deletions

View File

@ -19,14 +19,18 @@ table tr:nth-child(odd) {
}
.part-thumb {
width: 250px;
height: 250px;
width: 150px;
height: 150px;
border: 1px black solid;
margin: 5px;
padding: 5px;
object-fit: contain;
}
.media {
padding-top: 15px;
}
.media-body {
padding-top: 10px;
}
@ -40,4 +44,65 @@ table tr:nth-child(odd) {
.inventree-content {
padding-left: 15px;
padding-right: 15px;
}
.nav-tabs>.active li {
border-color: #d45500;
border-bottom-color: transparent;
}
.nav-tabs li {
padding-left: 10px;
padding-right: 10px;
border-bottom: 1px solid #d45500;
}
.tab-content {
color : white;
background-color: #428bca;
padding : 5px 15px;
}
.nav-tabs:after,
.nav-pills:after {
clear: both;
}
.nav-tabs > li,
.nav-pills > li {
float: left;
}
.nav-tabs > li > a,
.nav-pills > li > a {
padding-right: 12px;
padding-left: 12px;
margin-right: 2px;
line-height: 14px;
}
.nav-tabs {
border-bottom: 1px solid #ddd;
padding-top: 15px;
padding-bottom: 15px;
}
.nav-tabs > li {
margin-bottom: -1px;
}
.nav-tabs > li > a {
padding-top: 8px;
padding-bottom: 8px;
line-height: 20px;
border: 1px solid transparent;
border-radius: 4px 4px 0 0;
}
.nav-tabs > li > a:hover,
.nav-tabs > li > a:focus {
border-color: #eeeeee #eeeeee #dddddd;
}
.nav-tabs > .active > a,
.nav-tabs > .active > a:hover,
.nav-tabs > .active > a:focus {
color: #555555;
background-color: #ffffff;
border: 1px solid #ddd;
border-bottom-color: transparent;
cursor: default;
}