Commit 9e2e00e0 authored by mahogony's avatar mahogony
Browse files

Merge branch '7-tags-should-get-a-different-color' into 'master'

Resolve "tags should get a different color"

Closes #7

See merge request !5
parents 1e51a9b0 c7da5828
Pipeline #1920 passed with stages
in 54 seconds
:root{ :root {
--MAIN-TEXT-color:#323232; /* Color of text by default */ --MAIN-TEXT-color: #323232; /* Color of text by default */
--MAIN-TITLES-TEXT-color: #5e5e5e; /* Color of titles h2-h3-h4-h5 */ --MAIN-TITLES-TEXT-color: #5e5e5e; /* Color of titles h2-h3-h4-h5 */
--MAIN-LINK-color:#7ACE11; /* Color of links */ --MAIN-LINK-color: #7ACE11; /* Color of links */
--MAIN-LINK-HOVER-color:#4a7a0b; /* Color of hovered links */ --MAIN-LINK-HOVER-color: #4a7a0b; /* Color of hovered links */
--MAIN-ANCHOR-color: #1C90F3; /* color of anchors on titles */ --MAIN-ANCHOR-color: #1C90F3; /* color of anchors on titles */
--MENU-HEADER-BG-color:#202020; /* Background color of menu header */ --MENU-HEADER-BG-color: #202020; /* Background color of menu header */
--MENU-HEADER-BORDER-color:#202020; /*Color of menu header border */ --MENU-HEADER-BORDER-color: #202020; /*Color of menu header border */
--MENU-SEARCH-BG-color:#ddd; /* Search field background color (by default borders + icons) */ --MENU-SEARCH-BG-color: #ddd; /* Search field background color (by default borders + icons) */
--MENU-SEARCH-BOX-color:#7ACE11; /* Override search field border color */ --MENU-SEARCH-BOX-color: #7ACE11; /* Override search field border color */
--MENU-SEARCH-BOX-ICONS-color: #000; /* Override search field icons color */ --MENU-SEARCH-BOX-ICONS-color: #000; /* Override search field icons color */
--MENU-SECTIONS-ACTIVE-BG-color:#222; /* Background color of the active section and its childs */ --MENU-SECTIONS-ACTIVE-BG-color: #222; /* Background color of the active section and its childs */
--MENU-SECTIONS-BG-color:#222; /* Background color of other sections */ --MENU-SECTIONS-BG-color: #222; /* Background color of other sections */
--MENU-SECTIONS-LINK-color: #ddd; /* Color of links in menu */ --MENU-SECTIONS-LINK-color: #ddd; /* Color of links in menu */
--MENU-SECTIONS-LINK-HOVER-color: #fff; /* Color of links in menu, when hovered */ --MENU-SECTIONS-LINK-HOVER-color: #fff; /* Color of links in menu, when hovered */
--MENU-SECTION-ACTIVE-CATEGORY-color: #000; /* Color of active category text */ --MENU-SECTION-ACTIVE-CATEGORY-color: #000; /* Color of active category text */
...@@ -28,7 +28,7 @@ body { ...@@ -28,7 +28,7 @@ body {
} }
textarea:focus, input[type="email"]:focus, input[type="number"]:focus, input[type="password"]:focus, input[type="search"]:focus, input[type="tel"]:focus, input[type="text"]:focus, input[type="url"]:focus, input[type="color"]:focus, input[type="date"]:focus, input[type="datetime"]:focus, input[type="datetime-local"]:focus, input[type="month"]:focus, input[type="time"]:focus, input[type="week"]:focus, select[multiple=multiple]:focus { textarea:focus, input[type="email"]:focus, input[type="number"]:focus, input[type="password"]:focus, input[type="search"]:focus, input[type="tel"]:focus, input[type="text"]:focus, input[type="url"]:focus, input[type="color"]:focus, input[type="date"]:focus, input[type="datetime"]:focus, input[type="datetime-local"]:focus, input[type="month"]:focus, input[type="time"]:focus, input[type="week"]:focus, select[multiple=multiple]:focus {
border-color: none; border-color: transparent;
box-shadow: none; box-shadow: none;
} }
...@@ -57,28 +57,33 @@ a:hover { ...@@ -57,28 +57,33 @@ a:hover {
display: block; display: block;
content: ""; content: "";
height: 1px; height: 1px;
width: 0%; width: 0;
-webkit-transition: width 0.5s ease; -webkit-transition: width 0.5s ease;
-moz-transition: width 0.5s ease; -moz-transition: width 0.5s ease;
-ms-transition: width 0.5s ease; -o-transition: width 0.5s ease;
transition: width 0.5s ease; transition: width 0.5s ease;
background-color: var(--MAIN-LINK-HOVER-color); background-color: var(--MAIN-LINK-HOVER-color);
} }
#sidebar { #sidebar {
background-color: var(--MENU-SECTIONS-BG-color); background-color: var(--MENU-SECTIONS-BG-color);
} }
#sidebar #header-wrapper { #sidebar #header-wrapper {
background: var(--MENU-HEADER-BG-color); background: var(--MENU-HEADER-BG-color);
color: var(--MENU-SEARCH-BOX-color); color: var(--MENU-SEARCH-BOX-color);
border-color: var(--MENU-HEADER-BORDER-color); border-color: var(--MENU-HEADER-BORDER-color);
} }
#sidebar .searchbox { #sidebar .searchbox {
border-color: var(--MENU-SEARCH-BOX-color); border-color: var(--MENU-SEARCH-BOX-color);
background: var(--MENU-SEARCH-BG-color); background: var(--MENU-SEARCH-BG-color);
} }
#sidebar ul.topics > li.parent, #sidebar ul.topics > li.active { #sidebar ul.topics > li.parent, #sidebar ul.topics > li.active {
background: var(--MENU-SECTIONS-ACTIVE-BG-color); background: var(--MENU-SECTIONS-ACTIVE-BG-color);
} }
#sidebar .searchbox * { #sidebar .searchbox * {
color: var(--MENU-SEARCH-BOX-ICONS-color); color: var(--MENU-SEARCH-BOX-ICONS-color);
} }
...@@ -111,6 +116,7 @@ a:hover { ...@@ -111,6 +116,7 @@ a:hover {
padding: 3em 0; padding: 3em 0;
max-width: 800px; max-width: 800px;
} }
.children li { .children li {
display: block; display: block;
padding: 1em; padding: 1em;
...@@ -118,3 +124,35 @@ a:hover { ...@@ -118,3 +124,35 @@ a:hover {
min-width: 160px; min-width: 160px;
font-size: 1.1em; font-size: 1.1em;
} }
/** Style tag flags **/
#body .tags a.tag-link {
background: var(--MAIN-LINK-color);
-webkit-transition: background-color 0.5s ease;
-moz-transition: background-color 0.5s ease;
-o-transition: background-color 0.5s ease;
transition: background-color 500ms ease;
}
#body .tags a.tag-link::before {
border-color: transparent var(--MAIN-LINK-color) transparent transparent;
-webkit-transition: border 0.5s ease;
-moz-transition: border 0.5s ease;
-o-transition: border 0.5s ease;
transition: border 500ms ease;
}
#body .tags a.tag-link::after {
background-color: transparent;
width: 0;
height: 0;
}
#body .tags a.tag-link:hover {
background: var(--MAIN-LINK-HOVER-color);
}
#body .tags a.tag-link:hover::before {
border-color: transparent var(--MAIN-LINK-HOVER-color) transparent transparent;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment