I recently made the switch to Bootstrap V4 and I am currently customizing the starter template provided at:
My goal is to make the navbar
transparent, but have it change to a dark color when the viewport size is sm
or xs
.
Despite my efforts to achieve this by using a breakpoint and adding a 'navbar-custom' class, the appearance remains unchanged.
html {
overflow: hidden;
height: 100%;
}
// Additional CSS code snippets are included but are too lengthy to be rewritten verbatim for this output
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1 shrink-to-fit=no">
<title>Randomood says: Welcome!</title>
<!-- Bootstrap 4.0 cdn -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" integrity="sha384-/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M" crossorigin="anonymous">
<!--custom styles for this page -->
<link href="css/home.css" rel="stylesheet">
</head>
<body>
// Other HTML markup and scripts follow from here...