Make the default theme use Lexiconga colors!

This commit is contained in:
Robbie Antenesse 2019-05-30 17:06:57 -06:00 committed by Robbie Antenesse
parent 06bac52c36
commit 227d7f59f9
4 changed files with 176 additions and 94 deletions

View File

@ -13,7 +13,7 @@ main {
width: 90%; width: 90%;
max-width: 1000px; max-width: 1000px;
min-height: 400px; min-height: 400px;
margin: 0 auto $header-height; margin: 0 auto ($header-height * 1.25);
#sideColumn, #sideColumn,
#mainColumn { #mainColumn {
@ -28,7 +28,7 @@ main {
#mainColumn { #mainColumn {
width: 64%; width: 64%;
margin: 0; margin: $general-padding 0 0;
} }
article { article {

View File

@ -1,3 +1,7 @@
a {
text-decoration: underline;
}
p, span { p, span {
&.bold { &.bold {
font-weight: bold; font-weight: bold;
@ -30,24 +34,42 @@ label {
} }
.label-button { .label-button {
@extend .button; display: inline-block;
padding: 3px 9px;
border-radius: 3px;
line-height: 30px;
cursor: pointer;
user-select: none;
font-size: 80%; font-size: 80%;
font-weight: normal; font-weight: normal;
float: right; float: right;
cursor: pointer; cursor: pointer;
line-height: 80% !important; line-height: 80% !important;
padding: 3px 3px 5px; padding: 3px 3px 5px;
&.small {
font-size: 80%;
line-height: 25px;
}
} }
.label-help-button { .label-help-button {
@extend .button; display: inline-block;
padding: 3px 9px;
border-radius: 3px;
line-height: 30px;
cursor: pointer;
user-select: none;
font-size: 70%; font-size: 70%;
font-weight: normal; font-weight: normal;
cursor: pointer; cursor: pointer;
line-height: 70% !important; line-height: 70% !important;
padding: 2px 2px 4px; padding: 2px 2px 4px;
&.small {
font-size: 80%;
line-height: 25px;
}
} }
} }
@ -55,34 +77,50 @@ ul {
padding-left: $general-padding; padding-left: $general-padding;
} }
// .tag { .tag {
// display: inline-block; display: inline-block;
// padding: 3px 9px; padding: 3px 9px;
// border-radius: 3px; border-radius: 3px;
// line-height: 30px; line-height: 30px;
// &.small { &.small {
// font-size: 80%; font-size: 80%;
// line-height: 25px; line-height: 25px;
// } }
// } }
// span .tag { span .tag {
// @extend .tag; border-radius: 3px 0 0 3px;
// border-radius: 3px 0 0 3px; display: inline-block;
padding: 3px 9px;
border-radius: 3px;
line-height: 30px;
// &+.tag { &.small {
// border-left: none; font-size: 80%;
// border-radius: 0 3px 3px 0; line-height: 25px;
// } }
// }
// .button { &+.tag {
// @extend .tag; border-left: none;
// cursor: pointer; border-radius: 0 3px 3px 0;
// user-select: none; }
// } }
.button {
display: inline-block;
padding: 3px 9px;
border-radius: 3px;
line-height: 30px;
cursor: pointer;
user-select: none;
&.small {
font-size: 80%;
line-height: 25px;
}
}
.modal { .modal {
position: fixed; position: fixed;

View File

@ -99,14 +99,13 @@
#wordForm { #wordForm {
position: fixed; position: fixed;
top: auto; top: $header-height + $general-padding;
width: 31%; width: 31%;
max-width: 320px; max-width: 320px;
padding: 10px; padding: 10px;
border-radius: 5px; border-radius: 5px;
max-height: 80%; max-height: 80%;
overflow-y: auto; overflow-y: auto;
box-shadow: 4px 4px 5px 0px rgba(50, 50, 50, 0.75);
} }
.edit-form { .edit-form {
@ -114,9 +113,12 @@
max-width: 500px; max-width: 500px;
} }
#detailsSection { #mainColumn {
padding: $general-padding;
border-radius: 5px; border-radius: 5px;
}
#detailsSection {
padding: $general-padding $general-padding 0;
#dictionaryName { #dictionaryName {
margin-top: 0; margin-top: 0;

View File

@ -4,27 +4,58 @@
$light: #efefef; $light: #efefef;
$white: #ffffff; $white: #ffffff;
$red: #b42032; $red: #b42032;
$header-color: #eacc9d;
$background-color: #e6cfaa;
$footer-color: #cb6318;
$link-color: #a01000;
$button-color: #dcb078;
$message-color: #c0c088;
$word-form-color: #ba5536;
$dictionary-color: #bd7251;
$entry-color: #d7ad7d;
$input-color: #efdfc0;
$details-color: #f2d5b2;
$modal-color: #f2d5b2;
$border: 1px solid $dark; $border: 1px solid $dark;
background-color: $background-color;
a {
color: $link-color;
}
p, span { p, span {
&.red { &.red {
color: $red; color: $red;
} }
} }
.tag { label {
display: inline-block; .label-button {
padding: 3px 9px; border: 1px solid darken($button-color, 2);
border-radius: 3px; background-color: $button-color;
line-height: 30px; color: #000000;
border: $border; text-decoration: none;
background-color: $light;
&.small {
font-size: 80%;
line-height: 25px;
} }
.label-help-button {
border: 1px solid darken($button-color, 2);
background-color: $button-color;
color: #000000;
text-decoration: none;
}
}
input, textarea, select, option {
background-color: $input-color;
}
.tag {
border: $border;
background-color: $button-color;
&.red { &.red {
background-color: $red; background-color: $red;
color: $white; color: $white;
@ -32,21 +63,25 @@
} }
span .tag { span .tag {
@extend .tag; border: $border;
background-color: $button-color;
border-radius: 3px 0 0 3px;
&+.tag { &+.tag {
background-color: $white; background-color: lighten($button-color, 25);
border-left: none; border-left: none;
border-radius: 0 3px 3px 0;
} }
} }
.button { .button {
@extend .tag; border: 1px solid darken($button-color, 2);
cursor: pointer; background-color: $button-color;
user-select: none; color: #000000;
text-decoration: none;
font-weight: bold;
&.red {
background-color: $red;
color: $white;
}
} }
.modal { .modal {
@ -54,8 +89,8 @@
background-color: #000000; background-color: #000000;
} }
.modal-content { .modal-content {
background-color: $white; background-color: $modal-color;
border: $border; border: 1px solid darken($modal-color, 10);
} }
} }
@ -67,11 +102,11 @@
border-top: $border; border-top: $border;
border-left: $border; border-left: $border;
border-right: $border; border-right: $border;
background-color: $mid; background-color: $button-color;
&.active { &.active {
background-color: $white; background-color: $modal-color;
border-bottom: 1px solid $white; border-bottom: 1px solid $modal-color;
} }
} }
} }
@ -91,6 +126,10 @@
} }
#top { #top {
background-color: $header-color;
border-bottom: 1px solid darken($header-color, 2);
box-shadow: 0px 4px 5px 0px rgba(50, 50, 50, 0.75);
#title { #title {
display: inline-block; display: inline-block;
margin: 3px $general-padding 3px 0; margin: 3px $general-padding 3px 0;
@ -103,57 +142,75 @@
#searchModal { #searchModal {
.modal-content { .modal-content {
section+footer { section+footer {
background-color: $white; background-color: $modal-color;
} }
} }
} }
} }
#wordForm { #wordForm {
background-color: $light; background-color: $word-form-color;
border: $border; border: 1px solid darken($word-form-color, 2);
box-shadow: 4px 4px 5px 0px rgba(50, 50, 50, 0.75);
}
#mainColumn {
background-color: $dictionary-color;
border: 1px solid darken($dictionary-color, 2);
box-shadow: 4px 4px 5px 0px rgba(50, 50, 50, 0.75);
} }
#detailsSection { #detailsSection {
background-color: $white;
border: $border;
nav ul { nav ul {
li { li {
border: $border; border: 1px solid darken($button-color, 20);
background-color: $light; background-color: $button-color;
&.active { &.active {
background-color: #bababa; background-color: lighten($button-color, 15);
} }
} }
} }
#detailsPanel { #detailsPanel {
background-color: $white; background-color: $details-color;
} }
} }
.entry { .entry {
background-color: $light; background-color: $entry-color;
border: 1px solid darken($entry-color, 20);
header { header {
border-bottom: 1px solid darken($entry-color, 20);
.word-option-button {
background-color: darken($entry-color, 10);
border: 1px solid darken($entry-color, 20);
}
.word-option-list { .word-option-list {
background-color: $white; background-color: darken($entry-color, 5);
border: $border; border: 1px solid darken($entry-color, 10);
.word-option { .word-option {
&:hover { &:hover {
background-color: $light; background-color: lighten($entry-color, 5);
} }
} }
} }
} }
.edit-form {
.button {
background-color: darken($button-color, 10);
}
}
} }
#messagingSection { #messagingSection {
.message { .message {
background-color: $light; background-color: $message-color;
border: $border; border: $border;
&.error { &.error {
@ -169,7 +226,9 @@
} }
#bottom { #bottom {
background-color: $light; background-color: $footer-color;
border-top: 1px solid darken($footer-color, 2);
box-shadow: 0px -4px 5px 0px rgba(50, 50, 50, 0.75);
a { a {
color: #000000; color: #000000;
@ -192,22 +251,5 @@
border: $border; border: $border;
color: $white; color: $white;
} }
.tag {
padding: 2px 6px;
font-size: 90%;
line-height: 120%;
&.small {
font-size: 70%;
line-height: 100%;
}
}
.button {
@extend .tag;
cursor: pointer;
user-select: none;
}
} }
} }