Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
3ca8e8a6
Commit
3ca8e8a6
authored
Feb 20, 2016
by
Matt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a mixin to handle vendor prefixes for animations. Trying out slight opacity on menu
parent
1f28ff68
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
35 additions
and
5 deletions
+35
-5
public/sass/_grafana.scss
+1
-0
public/sass/_variables.dark.scss
+1
-0
public/sass/_variables.light.scss
+2
-0
public/sass/components/_sidemenu.scss
+5
-5
public/sass/mixins/_animations.scss
+26
-0
No files found.
public/sass/_grafana.scss
View file @
3ca8e8a6
// MIXINS
// MIXINS
@import
"mixins/mixins"
;
@import
"mixins/mixins"
;
@import
"mixins/animations"
;
@import
"mixins/buttons"
;
@import
"mixins/buttons"
;
@import
"mixins/breakpoints"
;
@import
"mixins/breakpoints"
;
@import
"mixins/grid"
;
@import
"mixins/grid"
;
...
...
public/sass/_variables.dark.scss
View file @
3ca8e8a6
...
@@ -207,6 +207,7 @@ $navbarButtonBackgroundHighlight: lighten($navbarBackground, 5%);
...
@@ -207,6 +207,7 @@ $navbarButtonBackgroundHighlight: lighten($navbarBackground, 5%);
// -------------------------
// -------------------------
$side-menu-bg
:
$body-bg
;
$side-menu-bg
:
$body-bg
;
$side-menu-item-hover-bg
:
$dark-4
;
$side-menu-item-hover-bg
:
$dark-4
;
$side-menu-opacity
:
0
.97
;
// Pagination
// Pagination
// -------------------------
// -------------------------
...
...
public/sass/_variables.light.scss
View file @
3ca8e8a6
...
@@ -162,6 +162,8 @@ $input-label-bg: $gray-5;
...
@@ -162,6 +162,8 @@ $input-label-bg: $gray-5;
// -------------------------
// -------------------------
$side-menu-bg
:
$body-bg
;
$side-menu-bg
:
$body-bg
;
$side-menu-item-hover-bg
:
$gray-6
;
$side-menu-item-hover-bg
:
$gray-6
;
$side-menu-opacity
:
0
.97
;
// search
// search
$search-shadow
:
0
5px
30px
0
lighten
(
$gray-2
,
30%
);
$search-shadow
:
0
5px
30px
0
lighten
(
$gray-2
,
30%
);
...
...
public/sass/components/_sidemenu.scss
View file @
3ca8e8a6
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
top
:
52px
;
top
:
52px
;
left
:
0
;
left
:
0
;
width
:
$side-menu-width
;
width
:
$side-menu-width
;
background-color
:
$side-menu-bg
;
background-color
:
rgba
(
$side-menu-bg
,
$side-menu-opacity
)
;
z-index
:
101
;
z-index
:
101
;
transform
:
translate3d
(
0
,
-100%
,
0
);
transform
:
translate3d
(
0
,
-100%
,
0
);
visibility
:
hidden
;
visibility
:
hidden
;
...
@@ -65,15 +65,15 @@
...
@@ -65,15 +65,15 @@
opacity
:
0
;
opacity
:
0
;
top
:
0px
;
top
:
0px
;
left
:
$side-menu-width
;
left
:
$side-menu-width
;
background-color
:
$side-menu-bg
;
background-color
:
rgba
(
$side-menu-bg
,
$side-menu-opacity
)
;
animation
:
dropdown-anim
100ms
ease-in-out
150ms
forwards
;
@include
animation
(
'dropdown-anim 100ms ease-in-out 100ms forwards'
)
;
z-index
:
-9999
;
z-index
:
-9999
;
}
}
}
}
}
}
}
}
@
keyframes
dropdown-anim
{
@
include
keyframes
(
dropdown-anim
)
{
0
%
{
0
%
{
display
:
none
;
display
:
none
;
opacity
:
0
;
opacity
:
0
;
...
@@ -85,7 +85,7 @@
...
@@ -85,7 +85,7 @@
}
}
100
%
{
100
%
{
opacity
:
1
;
opacity
:
1
;
transform
:
translate3d
(
0
,
0
,
0
)
transform
:
translate3d
(
0
,
0
,
0
)
;
}
}
}
}
...
...
public/sass/mixins/_animations.scss
0 → 100644
View file @
3ca8e8a6
@mixin
keyframes
(
$animation-name
)
{
@-webkit-keyframes
#{
$animation-name
}
{
@content
;
}
@-moz-keyframes
#{
$animation-name
}
{
@content
;
}
@-ms-keyframes
#{
$animation-name
}
{
@content
;
}
@-o-keyframes
#{
$animation-name
}
{
@content
;
}
@keyframes
#{
$animation-name
}
{
@content
;
}
}
@mixin
animation
(
$str
)
{
-webkit-animation
:
#{
$str
}
;
-moz-animation
:
#{
$str
}
;
-ms-animation
:
#{
$str
}
;
-o-animation
:
#{
$str
}
;
animation
:
#{
$str
}
;
}
\ No newline at end of file
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