Skip to content

Instantly share code, notes, and snippets.

@johnatanDM
Forked from omariosouto/ButtonLink.js
Created August 6, 2020 12:59
Show Gist options
  • Save johnatanDM/a20b890fc8768bb9d138b40f6e50ee77 to your computer and use it in GitHub Desktop.
Save johnatanDM/a20b890fc8768bb9d138b40f6e50ee77 to your computer and use it in GitHub Desktop.
Aula 01 - Códigos Extras
* {
box-sizing: border-box;
font-family: 'Roboto', sans-serif;
}
:root {
--primary: #2A7AE4;
--black: #000000;
--blackLighter: #9E9E9E;
--grayLight: #F5F5F5;
--grayMedium: #e5e5e5;
--white: #FFFFFF;
--frontEnd: #6BD1FF;
--backEnd: #00C86F;
}
html,
body {
margin: 0;
padding: 0;
}
a {
color: inherit;
}
.Logo {
max-width: 168px;
}
@media (max-width: 800px) {
.Logo {
max-width: 105px;
}
}
.Menu {
width: 100%;
height: 94px;
z-index: 100;
display: flex;
justify-content: space-between;
align-items: center;
position: fixed;
top: 0;
left: 0;
right: 0;
padding-left: 5%;
padding-right: 5%;
background: var(--black);
border-bottom: 2px solid var(--primary);
}
body {
--bodyPaddingTop: 94px;
padding-top: var(--bodyPaddingTop);
}
@media (max-width: 800px) {
.Menu {
height: 40px;
justify-content: center;
}
body {
--bodyPaddingTop: 40px;
padding-top: var(--bodyPaddingTop);
}
}
.ButtonLink {
color: var(--white);
border: 1px solid var(--white);
box-sizing: border-box;
cursor: pointer;
padding: 16px 24px;
font-style: normal;
font-weight: bold;
font-size: 16px;
outline: none;
border-radius: 5px;
text-decoration: none;
display: inline-block;
transition: opacity .3s;
}
.ButtonLink:hover,
.ButtonLink:focus {
opacity: .5;
}
@media (max-width: 800px) {
a.ButtonLink {
position: fixed;
left: 0;
right: 0;
bottom: 0;
background: var(--primary);
border-radius: 0;
border: 0;
text-align: center;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment