mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-11-15 17:21:25 -10:00
On desktop, the navigation bar is too thin: the Download button barely fits in it. Its content also has the same width as the page content, and the brand and the menu items are small. Rework it with the Bootstrap utilities: - use a container-xxl with a larger horizontal padding, so that the bar is wider than the page content - make the brand (fs-2) and the menu items (fs-5) bigger, and add some space after the brand - spread the menu items over the whole bar with flex, so that the spacing between them follows the width of the screen and the bar never wraps on two lines - raise the height of the bar so that the Download button has 12px above and below it, and add the same space below it in the collapsed menu Signed-off-by: Angelo Compagnucci <angelo.compagnucci@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
84 lines
1.4 KiB
CSS
84 lines
1.4 KiB
CSS
/*
|
|
* Author: Carlos Alvarez
|
|
* URL: http://alvarez.is
|
|
*
|
|
* Project Name: FLATTY - Free Bootstrap 3 Theme
|
|
* Version: 1.0
|
|
* URL: http://blacktie.co
|
|
*/
|
|
|
|
a {
|
|
text-decoration: none;
|
|
}
|
|
|
|
.navbar[data-bs-theme=dark] {
|
|
--bs-gradient: none;
|
|
--bs-navbar-color: #fff;
|
|
--bs-navbar-hover-color: var(--bs-dark);
|
|
--bs-navbar-active-color: var(--bs-dark);
|
|
}
|
|
|
|
.navbar .nav-link {
|
|
padding-top: 10px;
|
|
padding-bottom: 10px;
|
|
}
|
|
|
|
@media (min-width: 1200px) {
|
|
.navbar .nav-link {
|
|
padding-top: 22px;
|
|
padding-bottom: 22px;
|
|
}
|
|
}
|
|
|
|
/* entire container, keeps perspective */
|
|
.flip-container {
|
|
perspective: 1000;
|
|
}
|
|
/* flip the pane when hovered */
|
|
.flip-container:hover .flipper, .flip-container.hover .flipper {
|
|
transform: rotateY(180deg);
|
|
}
|
|
|
|
.flip-container, .front, .back {
|
|
width: 180px;
|
|
height: 180px;
|
|
}
|
|
|
|
/* flip speed goes here */
|
|
.flipper {
|
|
transition: 0.6s;
|
|
transform-style: preserve-3d;
|
|
|
|
position: relative;
|
|
}
|
|
|
|
/* hide back of pane during swap */
|
|
.front, .back {
|
|
backface-visibility: hidden;
|
|
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
}
|
|
|
|
/* front pane, placed above back */
|
|
.front {
|
|
z-index: 2;
|
|
/* for firefox 31 */
|
|
transform: rotateY(0deg);
|
|
}
|
|
|
|
/* back, initially hidden pane */
|
|
.back {
|
|
transform: rotateY(180deg);
|
|
}
|
|
|
|
.back img {
|
|
-moz-transform: scaleX(-1);
|
|
-o-transform: scaleX(-1);
|
|
-webkit-transform: scaleX(-1);
|
|
transform: scaleX(-1);
|
|
filter: FlipH;
|
|
-ms-filter: "FlipH";
|
|
}
|