Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
See what's new at GitLab
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
T
Telegram chart contest
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vasily Belolapotkov
Telegram chart contest
Commits
e6b76d1e
Commit
e6b76d1e
authored
Mar 23, 2019
by
Vasily Belolapotkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor: reorganize styles
parent
67541ec4
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
107 additions
and
101 deletions
+107
-101
src/chart/index.ts
src/chart/index.ts
+0
-1
src/index.ts
src/index.ts
+1
-0
src/styles/app.scss
src/styles/app.scss
+37
-0
src/styles/chart.scss
src/styles/chart.scss
+1
-100
src/styles/common.scss
src/styles/common.scss
+35
-0
src/styles/index.scss
src/styles/index.scss
+3
-0
src/styles/theme-switcher.scss
src/styles/theme-switcher.scss
+30
-0
No files found.
src/chart/index.ts
View file @
e6b76d1e
import
'
./chart.scss
'
;
import
{
makeHtmlElement
}
from
'
./ui-utils
'
;
import
{
makeChartPreview
}
from
'
./chart-preview
'
;
import
{
...
...
src/index.ts
View file @
e6b76d1e
import
'
./styles/index.scss
'
;
import
chartsData
from
'
./data/chart_data.json
'
;
import
{
makeChart
}
from
'
./chart
'
;
import
{
IChartData
,
ChartType
}
from
'
./chart/chart-state
'
;
...
...
src/styles/app.scss
0 → 100644
View file @
e6b76d1e
@import
'common'
;
body
,
h1
{
font-family
:
Helvetica
,
sans-serif
;
margin
:
0
;
}
body
{
color
:
$fontMainLight
;
background-color
:
$bodyBgLight
;
}
body
.dark
{
color
:
$fontMainDark
;
background-color
:
$bodyBgDark
;
}
a
{
text-decoration
:
none
;
@include
linkColor
(
$linkColor
);
}
body
.dark
a
{
@include
linkColor
(
$darkLinkColor
);
}
#root
{
max-width
:
600px
;
padding
:
10px
10px
75px
;
position
:
relative
;
margin
:
0
auto
;
@include
tablet
{
padding-bottom
:
10px
;
}
}
src/
chart
/chart.scss
→
src/
styles
/chart.scss
View file @
e6b76d1e
$bodyBgLight
:
#fff
;
$bodyBgDark
:
rgb
(
36
,
47
,
61
);
$grey
:
rgb
(
165
,
175
,
182
);
$lightgrey
:
rgb
(
221
,
234
,
242
);
$darkgrey
:
rgb
(
51
,
64
,
79
);
$fontMainLight
:
rgb
(
67
,
72
,
75
);
$fontMainDark
:
#fff
;
$linkColor
:
rgb
(
41
,
145
,
225
);
$darkLinkColor
:
rgb
(
62
,
171
,
241
);
body
,
h1
{
font-family
:
Helvetica
,
sans-serif
;
margin
:
0
;
}
body
{
color
:
$fontMainLight
;
background-color
:
$bodyBgLight
;
}
body
.dark
{
color
:
$fontMainDark
;
background-color
:
$bodyBgDark
;
}
@mixin
linkColor
(
$color
)
{
color
:
$color
;
&
:hover
,
&
:active
,
&
:focus
{
color
:
darken
(
$color
,
15
);
}
}
$tablet-width
:
768px
;
@mixin
mobile
{
@media
(
max-width
:
#{
$tablet-width
-
1
}
)
{
@content
;
}
}
@mixin
tablet
{
@media
(
min-width
:
#{
$tablet-width
}
)
{
@content
;
}
}
a
{
text-decoration
:
none
;
@include
linkColor
(
$linkColor
);
}
body
.dark
a
{
@include
linkColor
(
$darkLinkColor
);
}
#root
{
max-width
:
600px
;
padding
:
10px
10px
75px
;
position
:
relative
;
margin
:
0
auto
;
@include
tablet
{
padding-bottom
:
10px
;
}
}
.theme-switcher
{
position
:
fixed
;
bottom
:
0
;
left
:
0
;
right
:
0
;
padding
:
10px
10px
40px
;
background-color
:
$bodyBgLight
;
z-index
:
1
;
text-align
:
center
;
font-size
:
1
.25rem
;
@include
tablet
{
position
:
absolute
;
top
:
10px
;
right
:
0
;
bottom
:
auto
;
left
:
auto
;
padding
:
15px
10px
;
text-align
:
left
;
font-size
:
1rem
;
}
}
body
.dark
.theme-switcher
{
background-color
:
$bodyBgDark
;
}
@import
'common'
;
.chart-container
{
margin-top
:
1rem
;
...
...
src/styles/common.scss
0 → 100644
View file @
e6b76d1e
$bodyBgLight
:
#fff
;
$bodyBgDark
:
rgb
(
36
,
47
,
61
);
$grey
:
rgb
(
165
,
175
,
182
);
$lightgrey
:
rgb
(
221
,
234
,
242
);
$darkgrey
:
rgb
(
51
,
64
,
79
);
$fontMainLight
:
rgb
(
67
,
72
,
75
);
$fontMainDark
:
#fff
;
$linkColor
:
rgb
(
41
,
145
,
225
);
$darkLinkColor
:
rgb
(
62
,
171
,
241
);
$tablet-width
:
768px
;
@mixin
linkColor
(
$color
)
{
color
:
$color
;
&
:hover
,
&
:active
,
&
:focus
{
color
:
darken
(
$color
,
15
);
}
}
@mixin
mobile
{
@media
(
max-width
:
#{
$tablet-width
-
1
}
)
{
@content
;
}
}
@mixin
tablet
{
@media
(
min-width
:
#{
$tablet-width
}
)
{
@content
;
}
}
src/styles/index.scss
0 → 100644
View file @
e6b76d1e
@import
'app'
;
@import
'theme-switcher'
;
@import
'chart'
;
src/styles/theme-switcher.scss
0 → 100644
View file @
e6b76d1e
@import
'common'
;
.theme-switcher
{
position
:
fixed
;
bottom
:
0
;
left
:
0
;
right
:
0
;
padding
:
10px
10px
40px
;
background-color
:
$bodyBgLight
;
z-index
:
1
;
text-align
:
center
;
font-size
:
1
.25rem
;
@include
tablet
{
position
:
absolute
;
top
:
10px
;
right
:
0
;
bottom
:
auto
;
left
:
auto
;
padding
:
15px
10px
;
text-align
:
left
;
font-size
:
1rem
;
}
}
body
.dark
.theme-switcher
{
background-color
:
$bodyBgDark
;
}
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