Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wiki-js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
wiki-js
Commits
6b37797a
Commit
6b37797a
authored
Jun 26, 2017
by
NGPixel
Committed by
Nicolas Giard
Jul 09, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: Color Themes page UI + Hero theme support
parent
247d598e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
45 additions
and
13 deletions
+45
-13
color-picker.scss
client/scss/components/color-picker.scss
+19
-7
hero.scss
client/scss/components/hero.scss
+18
-1
theme.pug
server/views/pages/admin/theme.pug
+8
-5
No files found.
client/scss/components/color-picker.scss
View file @
6b37797a
...
...
@@ -4,31 +4,43 @@
height
:
60px
;
&
-choice
{
width
:
5
0px
;
height
:
5
0px
;
border
:
1px
solid
#FFF
;
width
:
4
0px
;
height
:
4
0px
;
border
:
0
solid
#FFF
;
transition
:
all
.2s
ease
;
cursor
:
pointer
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
margin-right
:
1px
;
&
:first-child
{
border-top-left-radius
:
5px
;
border-bottom-left-radius
:
5px
;
}
&
:last-child
{
border-top-right-radius
:
5px
;
border-bottom-right-radius
:
5px
;
}
&
.is-active
,
&
:hover
{
border-width
:
5px
;
border-radius
:
3
px
;
width
:
60
px
;
height
:
60
px
;
border-radius
:
5
px
;
width
:
55
px
;
height
:
55
px
;
}
&.
is-active
:
:
before
{
content
:
'
X
'
;
content
:
'
|
'
;
font-weight
:
700
;
color
:
rgba
(
255
,
255
,
255
,.
5
);
margin-bottom
:
3px
;
}
@each
$color
,
$colorvalue
in
$material-colors
{
&
.is-
#{
$color
}
{
background-color
:
mc
(
$color
,
'500'
);
background-image
:
linear-gradient
(
45deg
,
mc
(
$color
,
'400'
)
,
mc
(
$color
,
'700'
));
border-color
:
mc
(
$color
,
'500'
);
&
.is-active
,
&
:hover
{
...
...
client/scss/components/hero.scss
View file @
6b37797a
...
...
@@ -40,7 +40,7 @@
color
:
#FFF
;
display
:
inline-flex
;
align-items
:
center
;
justify-
items
:
center
;
justify-
content
:
center
;
padding
:
0
15px
;
height
:
32px
;
border
:
1px
solid
mc
(
'light-blue'
,
'600'
);
...
...
@@ -74,3 +74,20 @@
}
}
/* THEME OVERRIDE - START */
@each
$color
,
$colorvalue
in
$material-colors
{
.is-primary-
#{
$color
}
.hero
{
h1
{
color
:
mc
(
$color
,
'500'
);
}
}
.is-alternate-
#{
$color
}
.hero
{
.pageicon
{
color
:
mc
(
$color
,
'500'
);
}
}
}
/* THEME OVERRIDE - END */
server/views/pages/admin/theme.pug
View file @
6b37797a
...
...
@@ -8,17 +8,20 @@ block adminContent
.form-sections
section
label.label= t('admin:theme.primarycolor')
color-picker(current-color='indigo')
color-picker(current-color=appconfig.theme.primary)
span.desc Used for top navigation bar, headers, links, etc.
section
label.label= t('admin:theme.altcolor')
color-picker(current-color='blue-grey')
color-picker(current-color=appconfig.theme.alt)
span.desc Used for the sidebar (in a darker tone)
section
label.label= t('admin:theme.footercolor')
color-picker(current-color='blue-grey')
color-picker(current-color=appconfig.theme.footer)
span.desc Used for the foter (in a lighter tone)
section
label.label= t('admin:theme.codeblock')
toggle(
current-value='dark'
, desc='Use Dark Theme')
toggle(
current-value='dark'
, desc='Colorize code syntax')
toggle(
:current-value=appconfig.theme.code.dark.toString()
, desc='Use Dark Theme')
toggle(
:current-value=appconfig.theme.code.colorize.toString()
, desc='Colorize code syntax')
section
button.button.is-green(@click='saveUser')
i.nc-icon-outline.ui-1_check
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment