This repository has been archived on 2025-11-02. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
portfolio/assets/global.css
2018-11-19 09:01:53 +00:00

85 lines
1.6 KiB
CSS

/* change them */
:root {
--mdc-theme-primary: #00adb4;
--mdc-theme-secondary: #d84315;
}
/* implement colour theme on elements that don't have it applied by default */
.mdc-text-field--focused:not(.mdc-text-field--disabled) .mdc-floating-label, .mdc-list-item--activated .mdc-list-item__text, .mdc-drawer .mdc-list-item--activated .mdc-list-item__graphic {
color: var(--mdc-theme-primary);
}
.mdc-fab {
background-color: var(--mdc-theme-secondary);
}
/* hide unwanted overflow from mdc-text-field :before & :after */
.mdc-text-field-container {
overflow: hidden;
}
/* give space for mdc-text-field label to show properly when field is selected */
.mdc-text-field {
margin-top: 5px;
}
body {
font-family: 'Roboto', sans-serif;
text-align: center;
}
.mdc-text-field-helper-text {
margin-bottom: 10px;
}
.source-code-link {
position: fixed;
bottom: 15px;
right: 25px;
}
a {
color: var(--mdc-theme-secondary);
}
/* for MDC navbar */
body {
display: flex;
height: 100vh;
margin: 0;
}
.mdc-drawer-app-content {
flex: auto;
overflow: auto;
}
.main-content {
overflow: auto;
}
.app-bar {
position: absolute;
}
.main-content, footer {
margin: 20px;
}
/* for cookie notice */
#cookies {
display: none;
width: 100%;
position: fixed;
background: var(--mdc-theme-primary);
color: var(--mdc-theme-background);
text-align: center;
bottom: -100px;
left: 0;
z-index: 9999;
}
#cookies p {
margin: 10px;
}
#cookies p a {
color: var(--mdc-theme-secondary);
text-decoration: none;
}