Last active
January 28, 2021 12:21
-
-
Save arnoclr/bb18f2b53def7e307adbe88ae9ee5549 to your computer and use it in GitHub Desktop.
New Material Design theme for Materializecss
This file contains hidden or 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
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&family=Material+Icons&display=swap'); | |
/* Colors */ | |
:root { | |
--bg-color: #fff; | |
--accent: #f44336 ; | |
--colored: #673ab7; | |
--error: #f44336; | |
--trans: rgba(103, 58, 183, 0.2); | |
} | |
.accent { | |
background-color: var(--accent) !important; | |
color: white !important; | |
} | |
.accent-text { | |
color: var(--accent); | |
} | |
.colored { | |
background-color: var(--colored) !important; | |
color: white !important; | |
} | |
.colored-text { | |
color: var(--colored) !important; | |
} | |
/* Misc */ | |
hr { | |
border-color: var(--bg-color); | |
} | |
blockquote { | |
border-left: 5px solid var(--colored); | |
} | |
/* Cards */ | |
.card-panel, .card { | |
border-radius: 5px !important; | |
} | |
.card-panel.outlined, .card.outlined { | |
-webkit-box-shadow: none !important; | |
box-shadow: none !important; | |
border: 1px solid #ccc; | |
} | |
.card-action { | |
border-top: 0px !important; | |
} | |
.card-action a { | |
color: var(--colored) !important; | |
} | |
/* Typeface */ | |
body { | |
font-family: 'Poppins', sans-serif; | |
} | |
/* Forms */ | |
.input-field input { | |
box-sizing: border-box !important; | |
} | |
.input-field i.active { | |
color: var(--colored) !important; | |
} | |
.input-field input:focus, | |
.input-field textarea:focus { | |
background-color: #c4c4c4; | |
border-bottom: 2px solid var(--colored) !important; | |
box-shadow: none !important; | |
} | |
.input-field input, | |
.input-field textarea { | |
background-color: #f5f5f5 !important; | |
border-radius: 5px 5px 0px 0px !important; | |
padding-left: 15px !important; | |
} | |
.input-field input.invalid, | |
.input-field textarea.invalid { | |
border-bottom: 2px solid var(--error) !important; | |
} | |
label { | |
left: 1.75rem !important; | |
} | |
label.active:not(.inline) { | |
transform: translateY(-1px) scale(0.75) !important; | |
color: var(--colored) !important; | |
} | |
.outlined textarea:focus, | |
.outlined input:focus { | |
background-color: transparent !important; | |
border: 2px solid var(--colored) !important; | |
box-shadow: none !important; | |
} | |
.outlined textarea:hover:not(:focus), | |
.outlined input:hover:not(:focus) { | |
border: 1px solid black !important; | |
box-shadow: none !important; | |
} | |
.outlined textarea, | |
.outlined input { | |
background-color: transparent !important; | |
border-radius: 5px !important; | |
border: 1px solid #888 !important; | |
padding-left: 15px !important; | |
} | |
.outlined textarea.invalid, | |
.outlined input.invalid { | |
border: 2px solid var(--error) !important; | |
} | |
.outlined label { | |
left: 1.75rem !important; | |
width: auto !important; | |
padding-left: 5px; | |
padding-right: 5px; | |
background-color: var(--bg-color); | |
} | |
.outlined.col label.active { | |
transform: translateY(-10px) !important; | |
} | |
.outlined label.active { | |
transform: translateY(-10px) translateX(-15px) !important; | |
color: var(--colored) !important; | |
} | |
input[type="checkbox"].filled-in:checked+span:not(.lever):after { | |
background-color: var(--colored); | |
border: 2px solid var(--colored); | |
} | |
/* Dropdown */ | |
.dropdown-content li>a, | |
.dropdown-content li>span { | |
color: var(--colored); | |
} | |
/* Pickers */ | |
.timepicker-close, | |
.datepicker-cancel, | |
.datepicker-clear, | |
.datepicker-today, | |
.datepicker-done, | |
.month-prev, | |
.month-next { | |
border-radius: 3px; | |
color: black; | |
} | |
.datepicker-date-display, | |
.timepicker-digital-display { | |
background-color: var(--colored); | |
} | |
.timepicker-canvas line { | |
stroke: var(--colored); | |
} | |
.timepicker-canvas-bg, | |
.timepicker-canvas-bearing { | |
fill: var(--colored); | |
} | |
.timepicker-tick:hover, | |
.datepicker-table td.is-selected { | |
background-color: var(--trans); | |
} | |
.datepicker-controls .select-wrapper input { | |
border: none !important; | |
} | |
/* Switchs */ | |
.switch label input[type=checkbox]:checked+.lever { | |
background-color: var(--trans); | |
} | |
.switch label input[type=checkbox]:checked+.lever:after { | |
background-color: var(--colored); | |
} | |
/* Radio */ | |
[type="radio"]:checked+span:after, [type="radio"]:checked+span:after { | |
background-color: var(--colored) !important; | |
border: none !important; | |
} | |
[type="radio"]:checked+span:before { | |
border: 2px solid var(--colored) !important; | |
} | |
/* Navbar */ | |
.nav-wrapper { | |
background-color: var(--colored); | |
} | |
.outlined .nav-wrapper { | |
background-color: white; | |
} | |
.outlined .nav-wrapper li a:hover{ | |
border-bottom: 2px solid var(--colored); | |
box-sizing: border-box !important; | |
} | |
div.sticky { | |
position: -webkit-sticky; /* Safari */ | |
position: sticky; | |
top: 0; | |
} | |
/* Progress */ | |
.progress .indeterminate { | |
background-color: var(--colored) !important; | |
} | |
.preloader-wrapper .spinner-layer .circle { | |
border-color: var(--colored); | |
} | |
/* Buttons */ | |
a.btn, | |
button.btn { | |
border-radius: 3px; | |
background-color: #ddd; | |
color: black; | |
} | |
a.btn:hover { | |
background-color: #ddd; | |
} | |
button.btn:hover { | |
background-color: #ddd; | |
} | |
a.btn[disabled], button[disabled], button.btn.disabled { | |
cursor: not-allowed !important; | |
} | |
/* Sidenav */ | |
.sidenav li>a { | |
border-radius: 0 25px 25px 0 !important; | |
} | |
.sidenav li>a:hover { | |
background-color: var(--trans) !important; | |
} | |
main.margined, footer.margined { | |
padding-left: 300px; | |
} | |
@media only screen and (max-width : 992px) { | |
main.margined, footer.margined { | |
padding-left: 0; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment