Adds new material theme

This commit is contained in:
Alicia Sykes
2021-06-02 16:05:42 +01:00
parent 9cf720e711
commit 453b162cac
6 changed files with 198 additions and 110 deletions

View File

@@ -144,7 +144,7 @@ html[data-theme='nord-frost'] {
.collapsable:nth-child(4n) { background: #5E81AC; }
}
html[data-theme='material'] {
html[data-theme='material-original'] {
--primary: #29B6F6;
--settings-text-color: #01579b;
--background: #e2e1e0;
@@ -210,106 +210,6 @@ html[data-theme='material-dark'] {
}
}
html[data-theme='material-2'] {
--font-body: 'Roboto', serif;
--font-headings: 'Francois One', serif;
--primary: #363636;
--background: #e2e1e0;
--background-darker: #4285f4;
--item-group-outer-background: none;
--item-group-shadow: none;
--item-group-background: none;
--item-background: #fff;
--item-background-hover: #fff;
--item-shadow: 0 1px 3px #0000001f, 0 1px 2px #0000003d;
--item-hover-shadow: 0 1px 4px #00000029, 0 2px 4px #0000002a;
--item-text-color: #363636;
--item-group-heading-text-color-hover: #363636;
--item-icon-transform-hover: none;
--nav-link-border-color-hover: #1341a6;
--settings-text-color: #363636;
--config-code-color: #363636;
--heading-text-color: #fff;
--curve-factor: 4px;
--curve-factor-navbar: 8px;
--search-container-background: linear-gradient(to bottom, #3367d6 0%,#4285f4 5%);
header {
background: #3367d6;
color: #fff;
.page-titles span.subtitle {
text-shadow: none;
}
}
footer {
opacity: 1;
color: #fff;
}
section.filter-container form label {
color: var(--primary);
}
.item:not(.size-small) {
display: flex;
flex-direction: row-reverse;
justify-content: flex-end;
text-align: left;
overflow: hidden;
align-items: end;
width: 15rem;
min-width: 15rem;
max-height: 4rem;
margin: 0.2rem;
.overflow-dots {
display: none;
}
img {
padding: 0.1rem 0.25rem;
}
.tile-title {
height: auto;
padding: 0.1rem 0.25rem;
span.text {
position: relative;
font-weight: bold;
font-size: 1.1rem;
width: 100%;
}
p.description {
display: block;
margin: 0;
white-space: pre-wrap;
}
}
}
.item.size-large {
width: 18rem;
min-width: 18rem;
max-height: 5rem;
margin: 0.4rem;
img {
padding: 0.2rem 0.5rem;
}
}
.tooltip {
display: none !important;
}
.orientation-horizontal {
display: flex;
flex-direction: column;
.there-are-items {
display: grid;
grid-template-columns: repeat(5, 1fr);
@include phone { grid-template-columns: repeat(1, 1fr); }
@include tablet { grid-template-columns: repeat(2, 1fr); }
@include laptop { grid-template-columns: repeat(3, 1fr); }
@include monitor { grid-template-columns: repeat(4, 1fr); }
@include big-screen { grid-template-columns: repeat(5, 1fr); }
@include big-screen-up { grid-template-columns: repeat(6, 1fr); }
}
}
}
html[data-theme='colorful'] {
--font-headings: 'Podkova', monospace;
--primary: #e8eae1;
@@ -375,6 +275,177 @@ html[data-theme='minimal-light'], html[data-theme='minimal-dark'] {
}
}
html[data-theme='material'] {
--font-body: 'Raleway', serif;
--font-headings: 'Francois One', serif;
--primary: #363636;
--background: #f5f5f5;
--background-darker: #4285f4;
--item-group-outer-background: none;
--item-group-shadow: none;
--item-group-background: none;
--item-background: #fff;
--item-background-hover: #fff;
--item-shadow: 0 1px 3px #0000001f, 0 1px 2px #0000003d;
--item-hover-shadow: 0 1px 4px #00000029, 0 2px 4px #0000002a;
--item-text-color: #363636;
--item-group-heading-text-color-hover: #363636;
--item-icon-transform-hover: none;
--nav-link-background-color: #0c4eba;
--nav-link-text-color: #fff;
--nav-link-border-color: #0c4eba;
--settings-text-color: #363636;
--config-code-color: #363636;
--config-settings-background: #fff;
--config-settings-color: #363636;
--heading-text-color: #fff;
--curve-factor: 4px;
--curve-factor-navbar: 8px;
--search-container-background: #4285f4;
header {
background: #4285f4;
color: #fff;
.page-titles span.subtitle {
text-shadow: none;
}
}
footer {
opacity: 1;
color: #fff;
}
section.filter-container form label {
color: #fff;
}
.prism-editor-wrapper {
background: #f5f5f5;
}
.collapsable {
margin: 0;
padding: 0;
}
/* Custom layout for medium and large icons */
.item:not(.size-small) {
display: flex;
flex-direction: row-reverse;
justify-content: flex-end;
text-align: left;
overflow: hidden;
align-items: center;
width: 15rem;
min-width: 15rem;
max-height: 6rem;
margin: 0.2rem;
padding: 0.5rem;
.overflow-dots {
display: none;
}
img {
padding: 0.1rem 0.25rem;
}
.tile-title {
height: auto;
padding: 0.1rem 0.25rem;
span.text {
position: relative;
font-weight: bold;
font-size: 1.1rem;
width: 100%;
}
p.description {
display: block;
margin: 0;
white-space: pre-wrap;
font-size: .9em;
text-overflow: ellipsis;
}
}
&.size-large {
width: 18rem;
min-width: 18rem;
max-height: 5rem;
margin: 0.4rem;
img {
padding: 0.2rem 0.5rem;
}
}
}
.tooltip {
display: none !important;
}
.orientation-horizontal {
display: flex;
flex-direction: column;
.there-are-items {
display: grid;
grid-template-columns: repeat(5, 1fr);
@include phone { grid-template-columns: repeat(1, 1fr); }
@include tablet { grid-template-columns: repeat(2, 1fr); }
@include laptop { grid-template-columns: repeat(3, 1fr); }
@include monitor { grid-template-columns: repeat(4, 1fr); }
@include big-screen { grid-template-columns: repeat(5, 1fr); }
@include big-screen-up { grid-template-columns: repeat(6, 1fr); }
}
}
a.item {
position: relative;
overflow: hidden;
transition: all 0.2s linear 0s;
div {
transition: all 0.2s linear 0s;
}
&:before {
content: "\f054";
font-family: FontAwesome;
display: flex;
align-items: center;
justify-content: center;
position: absolute;
top: 0;
left: 0px;
height: 100%;
width: 1rem;
background-color: #ccd3dd80;
border-radius: 0 60% 60% 0;
transform: scale(0,1);
transform-origin: left center;
transition: all 0.2s linear 0s;
padding: 0 0.2rem;
}
&:hover {
div.icon-container {
text-indent: 1rem;
}
&:before {
transform: scale(1,1);
text-indent: 0;
}
.opening-method-icon {
display: none;
}
}
&:active {
background: #c7c7c754;
}
span.text {
transition: none;
}
&.size-small {
padding-left: 0.5rem;
min-width: 11rem;
}
&.size-large {
&:before {
width: 1.5rem;
}
&:hover {
div:nth-child(2) {
text-indent: 1.5rem;
}
}
}
}
}
html[data-theme='minimal-light'] {
--primary: #a5a5a5;
--background: #ffffff;