Skip to content

Commit

Permalink
Merge pull request #1323 from billyquith/feature/basic-theme
Browse files Browse the repository at this point in the history
Feature/basic theme
  • Loading branch information
RogerHaase authored Dec 19, 2022
2 parents 7870bce + a317592 commit 258d897
Show file tree
Hide file tree
Showing 4 changed files with 98 additions and 40 deletions.
83 changes: 56 additions & 27 deletions src/moin/themes/basic/static/css/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -5882,6 +5882,17 @@ button.close {
ul.moin-pull-right {
float: right !important;
}
h1,
h2,
h3,
h4,
h5,
h6 {
padding-left: 0.5em;
background-color: #E9EAEC;
border-radius: 7px;
border-bottom: 1px solid #90ADC6;
}
h1:hover .moin-permalink,
h2:hover .moin-permalink,
h3:hover .moin-permalink,
Expand All @@ -5897,6 +5908,15 @@ h6:focus .moin-permalink {
display: inline;
text-decoration: none;
}
h1 {
font-size: 1.75em;
}
h2 {
font-size: 1.5em;
}
.btn-primary {
background-color: #90ADC6;
}
.moin-permalink {
display: none;
}
Expand All @@ -5916,10 +5936,10 @@ h6:focus .moin-permalink {
padding: 10px 15px;
margin-bottom: -1px;
background-color: #fff;
text-align: left;
text-align: center;
padding: 2px 10px;
background-color: #c8ddf1;
border: 1px solid #c8ddf1;
background-color: white;
border: 1px solid #E9EAEC;
width: 100%;
color: #428bca;
border: 1px solid #ddd;
Expand All @@ -5942,7 +5962,7 @@ h6:focus .moin-permalink {
margin-right: 5px;
}
.moin-user-action-special > a {
color: #00417F;
color: white;
}
.moin-user-action-special:hover,
.moin-user-action-special:focus,
Expand All @@ -5958,7 +5978,7 @@ h6:focus .moin-permalink {
float: right;
}
a.moin-showhide {
color: #c8ddf1;
color: #90ADC6;
}
a:focus.moin-showhide {
outline-width: 0;
Expand All @@ -5967,23 +5987,26 @@ a:focus.moin-showhide {
margin: 7px 10px;
}
.list-group-item {
text-align: left;
text-align: center;
padding: 2px 10px;
background-color: #c8ddf1;
border: 1px solid #c8ddf1;
background-color: white;
border: 1px solid #E9EAEC;
}
.list-group-item > a {
color: #00417F;
color: white;
}
a.list-group-item.wikilink {
color: #90ADC6;
}
.moin-list-heading {
background-color: #00417F;
border: 1px solid #00417F;
font-variant: small-caps;
color: #c8ddf1;
border-radius: 4px;
background-color: #E9EAEC;
border: 1px solid #E9EAEC;
color: #90ADC6;
margin-bottom: 0.5em;
border-radius: 7px;
}
.moin-list-heading > a {
color: #c8ddf1;
color: #90ADC6;
}
.moin-nav {
margin-bottom: 0;
Expand Down Expand Up @@ -6061,9 +6084,10 @@ a:focus.moin-showhide {
.moin-navbar-inverse {
background-color: #222;
border-color: #080808;
background-color: #00417F;
background-color: #E9EAEC;
padding-left: 0px;
padding-right: 0px;
border-color: #E9EAEC;
}
.moin-navbar-inverse .navbar-brand {
color: #999999;
Expand Down Expand Up @@ -6151,19 +6175,24 @@ a:focus.moin-showhide {
color: #fff;
}
.moin-navbar-inverse .navbar-nav > li > a {
color: #cce6ff;
color: #90ADC6;
}
.moin-navbar-inverse .navbar-nav > li > a.active {
color: #fff;
}
.moin-navbar-inverse .navbar-text {
color: #cce6ff;
color: #90ADC6;
}
.moin-navbar-inverse .navbar-text > a {
color: #cce6ff;
color: #90ADC6;
}
.moin-navbar-inverse .navbar-brand {
color: #cce6ff;
color: #90ADC6;
}
.moin-button {
background-color: #E9EAEC;
color: #333652;
border-color: #cccccc;
}
.moin-navbar-user > ul.nav > li,
.moin-navbar-user > ul.nav > li > a {
Expand All @@ -6179,12 +6208,12 @@ a:focus.moin-showhide {
.moin-quicklink {
position: relative;
padding: 2px 10px 2px 10px;
background-color: #c8ddf1;
border: 1px solid #c8ddf1;
background-color: #90ADC6;
border: 1px solid #90ADC6;
margin-bottom: -1px;
}
.moin-quicklink > a {
color: #00417F;
color: white;
}
.moin-quicklink:last-child {
margin-bottom: 0;
Expand Down Expand Up @@ -6300,7 +6329,7 @@ a:focus.moin-showhide {
font-weight: normal;
}
a.wikilink {
color: #00417F;
color: white;
}
.moin-alias {
z-index: 500;
Expand Down Expand Up @@ -6328,7 +6357,7 @@ a.wikilink {
padding: 0px;
}
ul.moin-breadcrumb ul.moin-alias {
background-color: #00417F;
background-color: white;
border-radius: 6px;
}
ul.moin-breadcrumb,
Expand Down Expand Up @@ -6382,8 +6411,8 @@ body {
.moin-search-option-bar {
padding-left: 10px;
border: 1px solid #555555;
background-color: #00417F;
color: #c8ddf1;
background-color: white;
color: #90ADC6;
border-radius: 5px;
}
.moin-search-option-bar > span {
Expand Down
21 changes: 14 additions & 7 deletions src/moin/themes/basic/static/custom-less/moin-variables.less
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@

// https://www.canva.com/colors/color-palettes/foil-covered-sneakers/
@theme-col-1: #90ADC6; // Blue Gray
@theme-col-2: #E9EAEC; // Pewter
@theme-col-3: #FAD02C; // Yellow
@theme-col-4: #333652; // Dark Blue

// Links
// -------------------------
@link-nonexistent-color: lighten(@brand-danger, 15%);
Expand All @@ -6,26 +13,26 @@

// Moin-Inverted Navbar
//----------------------
@moin-navbar-inverse-color: #00417F;
@moin-navbar-inverse-bgcolor: #00417F;
@moin-navbar-inverse-textcolor: lighten(@moin-navbar-inverse-color, 65%);
@moin-navbar-inverse-color: @theme-col-2;
@moin-navbar-inverse-bgcolor: @theme-col-2;
@moin-navbar-inverse-textcolor: @theme-col-1;

// Large screen / wide desktop
@container-large-desktop: 1300px;
@container-tablet: 728px;

// Darker-Navbar and List heading background
@navbar-bg: #00417F;
@navbar-bg: @theme-col-2;

// Search
// -------------------------
@searchstats_color: #808080;
@search_option_bar_color: #00417F;
@search_option_bar_text_color: #c8ddf1;
@search_option_bar_color: white;
@search_option_bar_text_color: @theme-col-1;

// Bootstrap
// -------------------------
@bootstrap_default_blue: #428bca;
@bootstrap_default_blue: @theme-col-1;

// General colors
// -------------------------
Expand Down
32 changes: 27 additions & 5 deletions src/moin/themes/basic/static/custom-less/theme.less
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ ul.moin-pull-right {


h1, h2, h3, h4, h5, h6 {
padding-left: 0.5em;
background-color: @theme-col-2;
border-radius: 7px;
border-bottom: 1px solid @theme-col-1;

&:hover, &:focus {
.moin-permalink {
display: inline;
Expand All @@ -23,6 +28,13 @@ h1, h2, h3, h4, h5, h6 {
}
}

h1 { font-size: 1.75em; }
h2 { font-size: 1.5em; }

.btn-primary {
background-color: @theme-col-1;
}

.moin-permalink {
display: none;
}
Expand Down Expand Up @@ -72,21 +84,24 @@ a:focus.moin-showhide {
}

.list-group-item {
text-align: left;
text-align: center;
padding: 2px 10px;
background-color: @search_option_bar_text_color;
border: 1px solid @search_option_bar_text_color;
background-color: white;
border: 1px solid @theme-col-2;
> a {
color: @search_option_bar_color;
}
}
a.list-group-item.wikilink {
color: @theme-col-1;
}

.moin-list-heading {
background-color: @navbar-bg;
border: 1px solid @navbar-bg;
font-variant: small-caps;
color: @search_option_bar_text_color;
border-radius: 4px;
margin-bottom: 0.5em;
border-radius: 7px;
> a {
color: @search_option_bar_text_color;
}
Expand Down Expand Up @@ -138,6 +153,7 @@ a:focus.moin-showhide {
background-color: @moin-navbar-inverse-bgcolor;
padding-left: 0px;
padding-right: 0px;
border-color: @theme-col-2;
.navbar-nav {
> li > a {
color: @moin-navbar-inverse-textcolor;
Expand All @@ -157,6 +173,12 @@ a:focus.moin-showhide {
}
}

.moin-button {
background-color: @theme-col-2;
color: @theme-col-4;
border-color: #cccccc;
}

.moin-navbar-user > ul.nav > li,
.moin-navbar-user > ul.nav > li > a {
display: inline;
Expand Down
2 changes: 1 addition & 1 deletion src/moin/themes/basic/templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
<div class="container-fluid">
<div id="moin-main-wrapper" class="row">

<header class="col-md-2 col-sm-3 col-xs-4 moin-sidebar">
<header class="col-md-2 col-sm-2 col-xs-4 moin-sidebar">
<div class="moin-logo">
{% if logo %}
<a href="{{ url_for('frontend.show_item', item_name=cfg.item_root) }}">
Expand Down

0 comments on commit 258d897

Please sign in to comment.