Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <style>
- .topnave {
- position: absolute;
- left: 0;
- top: 10px;
- width: 100%;
- }
- .topnave a {
- color: red;
- margin: 0 5px;
- text-decoration: underline;
- font-family: verdana;
- font-weight: 900;
- font-size: 3vw;
- }
- .avatar {
- width: 100px;
- display: block;
- margin: 20px auto;
- border-radius: 50%;
- border: 4px double navy;
- }
- body {
- margin: 0;
- }
- .top {
- width: 100%;
- height: 100vh;
- border: 0;
- outline: 0;
- background-color: white;
- }
- #input {
- box-sizing: border-box;
- height: 50px;
- width: 50%;
- font-size: 2vw;
- padding: 0 10px;
- outline: 0;
- border: 0;
- background-color: red;
- border-radius: 10px 0 0 10px;
- }
- .search {
- outline: 0;
- height: 50px;
- font-size: 2vw;
- width: 150px;
- text-align: center;
- border: 0;
- color: red;
- background-color: red;
- color: white;
- border-radius: 0 10px 10px 0;
- }
- #input::placeholder {
- color: white;
- }
- h1 {
- font-size: 3vw;
- font-family: verdana;
- }
- @media all and (orientation:portrait) and (max-width:425px) {
- h1 {
- font-size: 9vw;
- }
- #input {
- width: 100%;
- height: 40px;
- font-size: 16px;
- border-radius: 10px;
- }
- .search {
- font-size: 16px;
- height: 40px;
- margin: 5px 0;
- width: 150px;
- border-radius: 10px;
- }
- .topnave a {
- color: red;
- text-decoration: underline;
- font-family: verdana;
- font-weight: 900;
- font-size: 20px;
- }
- }
- @media all and (orientation:landscape) and (max-width:768px) {
- .avatar {
- display: none;
- }
- h1 {
- font-size: 5vw;
- }
- #input {
- width: 90%;
- font-size: 4vw;
- border-radius: 10px;
- }
- .search {
- font-size: 4vw;
- margin: 5px 0;
- width: 150px;
- border-radius: 10px;
- }
- .topnave a {
- color: red;
- text-decoration: underline;
- font-family: verdana;
- font-weight: 900;
- font-size: 5vw;
- }
- }
- </style>
- </head>
- <body>
- <audio id='audio' loop src='https://1xpto.netlify.app/audio/mediauto.mp3'></audio>
- <button class='top'>
- <div class='topnave'>
- <a href='https://1xpto.netlify.app/'>Site</a>
- <a href='https://1xpto.netlify.app/media/'>Media</a>
- <img class='avatar' src='https://1xpto.netlify.app/pic/moi.jpg' />
- </div>
- <h1>Organic Search</h1>
- <input id='input' type='text' placeholder='Dropdown menu + close button (CSS only)' readonly />
- <input class='search' onclick='foo()' type='button' value='Search' />
- </button>
- <script>
- function foo() {
- window.open('https://1xpto.netlify.app/posts/Dropdown menu + close button (CSS only)/local/index.html');
- audio.play();
- }
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement