Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Зуев Егор
/
wiki.dev
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Authored by
Dan Brown
2016-06-12 13:37:15 +0100
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Commit
d582e76fed59ecb1e5ea438ff529e90c6b4d361c
d582e76f
1 parent
991dd8a5
Fixed theme color elements not showing on new instance
Also cleaned notification session access
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
29 deletions
config/setting-defaults.php
resources/views/partials/custom-styles.blade.php
resources/views/partials/notifications.blade.php
config/setting-defaults.php
View file @
d582e76
...
...
@@ -5,6 +5,8 @@
*/
return
[
'app-editor'
=>
'wysiwyg'
'app-editor'
=>
'wysiwyg'
,
'app-color'
=>
'#0288D1'
,
'app-color-light'
=>
'rgba(21, 101, 192, 0.15)'
];
\ No newline at end of file
...
...
resources/views/partials/custom-styles.blade.php
View file @
d582e76
@if(Setting::get('app-color'))
<style>
header
,
#back-to-top
,
.primary-background
{
background-color
:
{{
Setting
::
get
(
'app-color'
)
}
}
!
important
;
}
.faded-small
,
.primary-background-light
{
background-color
:
{{
Setting
::
get
(
'app-color-light'
)
}
}
;
}
.button-base
,
.button
,
input
[
type
=
"button"
],
input
[
type
=
"submit"
]
{
background-color
:
{{
Setting
::
get
(
'app-color'
)
}
}
;
}
.button-base
:hover
,
.button
:hover
,
input
[
type
=
"button"
]
:hover
,
input
[
type
=
"submit"
]
:hover
,
.button
:focus
{
background-color
:
{{
Setting
::
get
(
'app-color'
)
}
}
;
}
.nav-tabs
a
.selected
,
.nav-tabs
.tab-item.selected
{
border-bottom-color
:
{{
Setting
::
get
(
'app-color'
)
}
}
;
}
p
.primary
:hover
,
p
.primary
:hover
,
span
.primary
:hover
,
.text-primary
:hover
,
a
,
a
:hover
,
a
:focus
,
.text-button
,
.text-button
:hover
,
.text-button
:focus
{
color
:
{{
Setting
::
get
(
'app-color'
)
}
}
;
}
</style>
@endif
\ No newline at end of file
<style>
header
,
#back-to-top
,
.primary-background
{
background-color
:
{{
Setting
::
get
(
'app-color'
)
}
}
!
important
;
}
.faded-small
,
.primary-background-light
{
background-color
:
{{
Setting
::
get
(
'app-color-light'
)
}
}
;
}
.button-base
,
.button
,
input
[
type
=
"button"
],
input
[
type
=
"submit"
]
{
background-color
:
{{
Setting
::
get
(
'app-color'
)
}
}
;
}
.button-base
:hover
,
.button
:hover
,
input
[
type
=
"button"
]
:hover
,
input
[
type
=
"submit"
]
:hover
,
.button
:focus
{
background-color
:
{{
Setting
::
get
(
'app-color'
)
}
}
;
}
.nav-tabs
a
.selected
,
.nav-tabs
.tab-item.selected
{
border-bottom-color
:
{{
Setting
::
get
(
'app-color'
)
}
}
;
}
p
.primary
:hover
,
p
.primary
:hover
,
span
.primary
:hover
,
.text-primary
:hover
,
a
,
a
:hover
,
a
:focus
,
.text-button
,
.text-button
:hover
,
.text-button
:focus
{
color
:
{{
Setting
::
get
(
'app-color'
)
}
}
;
}
</style>
\ No newline at end of file
...
...
resources/views/partials/notifications.blade.php
View file @
d582e76
<div
class=
"notification anim pos"
@
if
(!
Session::
has
('
success
'))
style=
"display:none;"
@
endif
>
<i
class=
"zmdi zmdi-check-circle"
></i>
<span>
{!! nl2br(htmlentities(
Session::
get('success'))) !!}
</span>
<div
class=
"notification anim pos"
@
if
(!
session
()
-
>
has('success')) style="display:none;" @endif>
<i
class=
"zmdi zmdi-check-circle"
></i>
<span>
{!! nl2br(htmlentities(
session()->
get('success'))) !!}
</span>
</div>
<div
class=
"notification anim warning stopped"
@
if
(!
Session::
has
('
warning
'))
style=
"display:none;"
@
endif
>
<i
class=
"zmdi zmdi-info"
></i>
<span>
{!! nl2br(htmlentities(
Session::
get('warning'))) !!}
</span>
<div
class=
"notification anim warning stopped"
@
if
(!
session
()
-
>
has('warning')) style="display:none;" @endif>
<i
class=
"zmdi zmdi-info"
></i>
<span>
{!! nl2br(htmlentities(
session()->
get('warning'))) !!}
</span>
</div>
<div
class=
"notification anim neg stopped"
@
if
(!
Session::
has
('
error
'))
style=
"display:none;"
@
endif
>
<i
class=
"zmdi zmdi-alert-circle"
></i>
<span>
{!! nl2br(htmlentities(
Session::
get('error'))) !!}
</span>
<div
class=
"notification anim neg stopped"
@
if
(!
session
()
-
>
has('error')) style="display:none;" @endif>
<i
class=
"zmdi zmdi-alert-circle"
></i>
<span>
{!! nl2br(htmlentities(
session()->
get('error'))) !!}
</span>
</div>
...
...
Please
register
or
sign in
to post a comment