Sticky navigation buttons
This commit is contained in:
parent
9436143188
commit
5a1d8553da
@ -285,23 +285,34 @@ body {
|
|||||||
|
|
||||||
.button {
|
.button {
|
||||||
filter: invert(100%) drop-shadow(0 0 .1em black);
|
filter: invert(100%) drop-shadow(0 0 .1em black);
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: center;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav:hover > .button{
|
||||||
|
filter: invert(90%) drop-shadow(0 0 .1em black);
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav {
|
||||||
|
position: sticky;
|
||||||
|
top: 0;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
font-family: sans-serif;
|
font-family: sans-serif;
|
||||||
font-size: calc(.5em + .25vw);
|
font-size: calc(.5em + .25vw);
|
||||||
outline: 0;
|
outline: 0;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
background-repeat: no-repeat;
|
|
||||||
background-position: center;
|
|
||||||
width: 33.33%;
|
width: 33.33%;
|
||||||
height: 2em;
|
height: 4em;
|
||||||
padding: 0;
|
/* padding: 0; */
|
||||||
margin: 1em auto;
|
padding: 1em;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
}
|
background-color: black;
|
||||||
|
-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
|
||||||
.button:hover, #grid:target.button:hover, #list:target.button:hover {
|
-moz-box-sizing: border-box; /* Firefox, other Gecko */
|
||||||
filter: invert(90%) drop-shadow(0 0 .1em black);
|
box-sizing: border-box; /* Opera/IE 8+ */
|
||||||
}
|
}
|
||||||
|
|
||||||
#footer {
|
#footer {
|
||||||
@ -319,14 +330,14 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Icons */
|
/* Icons */
|
||||||
#home {
|
.home {
|
||||||
background-image: url("data:image/svg+xml;base64,PHN2ZyBhcmlhLWhpZGRlbj0idHJ1ZSIg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IxLjUtNDgtNDgtNDh6Ij48L3BhdGg+PC9zdmc+")
|
background-image: url("data:image/svg+xml;base64,PHN2ZyBhcmlhLWhpZGRlbj0idHJ1ZSIgZm9jdXNhYmxlPSJmYWxzZSIgZGF0YS1wcmVmaXg9ImZhcyIgZGF0YS1pY29uPSJzdG9wIiBjbGFzcz0ic3ZnLWlubGluZS0tZmEgZmEtc3RvcCBmYS13LTE0IiByb2xlPSJpbWciIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDQ0OCA1MTIiPjxwYXRoIGZpbGw9ImN1cnJlbnRDb2xvciIgZD0iTTQwMCAzMkg0OEMyMS41IDMyIDAgNTMuNSAwIDgwdjM1MmMwIDI2LjUgMjEuNSA0OCA0OCA0OGgzNTJjMjYuNSAwIDQ4LTIxLjUgNDgtNDhWODBjMC0yNi41LTIxLjUtNDgtNDgtNDh6Ij48L3BhdGg+PC9zdmc+")
|
||||||
}
|
}
|
||||||
|
@ -16,9 +16,9 @@
|
|||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<a id="home" class="button" href="https://www.delkappa.com" alt="Home"></a><!--
|
<a id="home" class="nav" href="https://www.delkappa.com" alt="Home"><div class="button home"></div></a><!--
|
||||||
--><a id="grid" class="button" href="#grid" alt="Grid"></a><!--
|
--><a id="grid" class="nav" href="#grid" alt="Grid"><div class="button grid"></div></a><!--
|
||||||
--><a id="list" class="button list" href="#list" alt="List"></a>
|
--><a id="list" class="nav" href="#list" alt="List"><div class="button list"></div></a>
|
||||||
<div id="photos" class="photos">
|
<div id="photos" class="photos">
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user