Last active
May 28, 2018 02:23
-
-
Save mateomurphy/71636ba3f40877e29957e4a2bfd03baf to your computer and use it in GitHub Desktop.
Base css styles
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:root { | |
--font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif; | |
--font-size: 16px; | |
--primary-color: #0074d9; | |
--primary-color-dark: #005cad; | |
} | |
* { | |
box-sizing: border-box; | |
} | |
body { | |
font-family: var(--font-family); | |
font-size: var(--font-size); | |
margin: 1.5rem; | |
} | |
button { | |
align-items: center; | |
background-color: var(--primary-color); | |
border: none; | |
border-radius: .25rem; | |
color: white; | |
cursor: default; | |
display: inline-flex; | |
font-size: 1rem; | |
font-weight: bold; | |
justify-content: center; | |
margin-right: 1rem; | |
padding: .5rem 1rem; | |
text-align: center; | |
text-decoration: none; | |
transition: background-color 0.15s ease-in-out; | |
user-select: none; | |
white-space: nowrap; | |
} | |
button:hover { | |
background-color: var(--primary-color-dark); | |
} | |
form { | |
max-width: 30rem; | |
} | |
header { | |
border-bottom: 1px solid #ccc; | |
margin: 1rem 0; | |
} | |
h1 { | |
margin: .5rem 0; | |
} | |
input[type='text'], | |
select, | |
textarea { | |
background-color: white; | |
border-radius: 4px; | |
border: 1px solid #ccc; | |
color: #495057; | |
display: block; | |
font-size: var(--font-size); | |
height: 36px; | |
margin: .25rem 0; | |
padding: .5rem; | |
width: 100%; | |
} | |
label { | |
display: block; | |
margin-bottom: 16px; | |
} | |
td, th { | |
padding: 4px; | |
text-align: left; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment