Skip to content

Commit 0b06cd1

Browse files
committed
Optimize some code
1 parent b09be9e commit 0b06cd1

50 files changed

Lines changed: 306 additions & 234 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
#Point
22
A flexible CSS Framework for building modern responsive web apps.
33

4+
- Built with Flexbox
5+
- Mobile-First
6+
- BEM, Namespaces, Modular, Beautiful code
7+
- 14KB gzipped
8+
49
## Setup
510
There are two ways to start
611

@@ -23,7 +28,7 @@ yarn
2328
```
2429

2530
### 2. Override variables
26-
All initial variables are located in `src/_vars.scss`.
31+
All initial variables are located in `scss/_vars.scss`.
2732

2833
### 3. Compile
2934
Run the command below to start compiling your own customized **Point**, you can

dist/point.css

Lines changed: 45 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/*
2+
* Point
3+
* version: 0.8.4
4+
* url: http://getpoint.io
5+
* Copyright 2017 moyu
6+
* Licensed under MIT (https://github.com/moyus/point/blob/master/LICENSE)
7+
*/
18
/*! normalize.css v5.0.0 | MIT License | github.com/necolas/normalize.css */
29
/**
310
* 1. Change the default font family in all browsers (opinionated).
@@ -524,7 +531,7 @@ hr {
524531
margin: 32px 0;
525532
height: 0;
526533
border: 0;
527-
border-top: 1px solid rgba(0, 0, 0, 0.1);
534+
border-top: 1px solid #e5e5e5;
528535
box-sizing: content-box;
529536
}
530537

@@ -1635,7 +1642,7 @@ abbr[title] {
16351642
.form-select[disabled],
16361643
.form-textarea[readonly],
16371644
.form-textarea[disabled] {
1638-
background-color: #f2f2f2;
1645+
background-color: #f5f5f5;
16391646
opacity: 1;
16401647
}
16411648

@@ -1758,7 +1765,7 @@ input[type="checkbox"].form-checkbox:checked:after {
17581765
label.form-checkbox input[type="checkbox"]:disabled,
17591766
input[type="checkbox"].form-checkbox:disabled {
17601767
opacity: 0.75;
1761-
background-color: #f2f2f2;
1768+
background-color: #f5f5f5;
17621769
}
17631770

17641771
label.form-checkbox {
@@ -1783,7 +1790,7 @@ label.form-checkbox.is-disabled {
17831790

17841791
label.form-checkbox.is-disabled input {
17851792
pointer-events: none;
1786-
background-color: #f2f2f2;
1793+
background-color: #f5f5f5;
17871794
}
17881795

17891796
label.form-radio input[type="radio"],
@@ -1822,7 +1829,7 @@ input[type="radio"].form-radio:checked:after {
18221829
label.form-radio input[type="radio"]:disabled,
18231830
input[type="radio"].form-radio:disabled {
18241831
opacity: 0.75;
1825-
background-color: #f2f2f2;
1832+
background-color: #f5f5f5;
18261833
}
18271834

18281835
label.form-radio {
@@ -1847,7 +1854,7 @@ label.form-radio.is-disabled {
18471854

18481855
label.form-radio.is-disabled input {
18491856
pointer-events: none;
1850-
background-color: #f2f2f2;
1857+
background-color: #f5f5f5;
18511858
}
18521859

18531860
input[type="checkbox"].form-switch {
@@ -2036,7 +2043,7 @@ input[type="checkbox"].form-switch:checked:after {
20362043
font-size: 14px;
20372044
border: 1px solid #ccc;
20382045
border-radius: 3px;
2039-
background-color: #f2f2f2;
2046+
background-color: #f5f5f5;
20402047
}
20412048

20422049
.form-static {
@@ -2738,11 +2745,11 @@ fieldset[disabled] .btn--warning.btn--outline.is-active {
27382745
}
27392746

27402747
.table--striped tbody tr:nth-of-type(odd) {
2741-
background-color: #f2f2f2;
2748+
background-color: #f5f5f5;
27422749
}
27432750

27442751
.table--hover tbody tr:hover {
2745-
background-color: rgba(0, 0, 0, 0.06);
2752+
background-color: #f5f5f5;
27462753
}
27472754

27482755
@media (max-width: 1024px) {
@@ -2753,7 +2760,7 @@ fieldset[disabled] .btn--warning.btn--outline.is-active {
27532760
display: block;
27542761
}
27552762
.table--responsive tr:not(:last-child) {
2756-
border-bottom: 3px solid rgba(0, 0, 0, 0.1);
2763+
border-bottom: 3px solid #e5e5e5;
27572764
}
27582765
.table--responsive th, .table--responsive td {
27592766
display: block;
@@ -2777,7 +2784,7 @@ fieldset[disabled] .btn--warning.btn--outline.is-active {
27772784
font-size: 12px;
27782785
line-height: 1;
27792786
color: #333333;
2780-
background-color: #f2f2f2;
2787+
background-color: #f5f5f5;
27812788
text-align: center;
27822789
vertical-align: middle;
27832790
padding: 4px 8px;
@@ -3021,15 +3028,15 @@ fieldset[disabled] .btn--warning.btn--outline.is-active {
30213028
}
30223029

30233030
.progress[value] {
3024-
background-color: rgba(0, 0, 0, 0.04);
3031+
background-color: #f5f5f5;
30253032
}
30263033

30273034
.progress[value]::-moz-progress-bar {
3028-
background-color: rgba(0, 0, 0, 0.04);
3035+
background-color: #f5f5f5;
30293036
}
30303037

30313038
.progress[value]::-webkit-progress-bar {
3032-
background-color: rgba(0, 0, 0, 0.04);
3039+
background-color: #f5f5f5;
30333040
}
30343041

30353042
.progress[value]::-moz-progress-value {
@@ -3473,7 +3480,7 @@ fieldset[disabled] .btn--warning.btn--outline.is-active {
34733480
margin-bottom: 32px;
34743481
color: #333333;
34753482
border: 1px solid #ddd;
3476-
background-color: #f2f2f2;
3483+
background-color: #f5f5f5;
34773484
}
34783485

34793486
.c-note.has-close {
@@ -3530,7 +3537,7 @@ fieldset[disabled] .btn--warning.btn--outline.is-active {
35303537
color: #333333;
35313538
line-height: 1.2;
35323539
padding: 8px 16px;
3533-
background-color: #f2f2f2;
3540+
background-color: #f5f5f5;
35343541
border: 1px solid #ddd;
35353542
border-top-left-radius: 3px;
35363543
border-top-right-radius: 3px;
@@ -3621,7 +3628,7 @@ fieldset[disabled] .btn--warning.btn--outline.is-active {
36213628
.c-list__item.is-disabled,
36223629
.c-list__link.is-disabled {
36233630
cursor: not-allowed;
3624-
color: rgba(51, 51, 51, 0.5);
3631+
opacity: .65;
36253632
}
36263633

36273634
.c-list__link {
@@ -3630,13 +3637,13 @@ fieldset[disabled] .btn--warning.btn--outline.is-active {
36303637
}
36313638

36323639
.c-list__link:hover {
3633-
background-color: rgba(0, 0, 0, 0.06);
3640+
background-color: #f5f5f5;
36343641
}
36353642

36363643
.c-list__link.is-active {
3637-
color: #fff;
3638-
background-color: #7872ff !important;
3639-
border-color: #7872ff !important;
3644+
color: #fff !important;
3645+
background-color: #7872ff !important !important;
3646+
border-color: #7872ff !important !important;
36403647
z-index: 2;
36413648
}
36423649

@@ -3731,7 +3738,7 @@ fieldset[disabled] .btn--warning.btn--outline.is-active {
37313738
}
37323739

37333740
.c-nav--menus > .c-nav__item > .c-nav__link:hover {
3734-
background-color: rgba(0, 0, 0, 0.06);
3741+
background-color: #f5f5f5;
37353742
}
37363743

37373744
.c-nav--menus > .c-nav__item > .c-nav__link.is-active {
@@ -3743,7 +3750,7 @@ fieldset[disabled] .btn--warning.btn--outline.is-active {
37433750
height: 1px;
37443751
margin-top: 4px;
37453752
margin-bottom: 4px;
3746-
background-color: rgba(0, 0, 0, 0.1);
3753+
background-color: #e5e5e5;
37473754
}
37483755

37493756
.c-nav--pills {
@@ -3763,7 +3770,7 @@ fieldset[disabled] .btn--warning.btn--outline.is-active {
37633770
}
37643771

37653772
.c-nav--pills > .c-nav__item > .c-nav__link:hover {
3766-
background-color: rgba(0, 0, 0, 0.06);
3773+
background-color: #f5f5f5;
37673774
}
37683775

37693776
.c-nav--pills > .c-nav__item > .c-nav__link.is-active {
@@ -3785,14 +3792,14 @@ fieldset[disabled] .btn--warning.btn--outline.is-active {
37853792
}
37863793

37873794
.c-nav--tabs > .c-nav__item > .c-nav__link {
3788-
color: #333333;
3795+
color: #888888;
37893796
padding: 6px 12px;
37903797
border-radius: 3px 3px 0 0;
37913798
border: 1px solid transparent;
37923799
}
37933800

37943801
.c-nav--tabs > .c-nav__item > .c-nav__link:hover {
3795-
background-color: rgba(0, 0, 0, 0.06);
3802+
background-color: #f5f5f5;
37963803
}
37973804

37983805
.c-nav--tabs > .c-nav__item .c-nav__link.is-active {
@@ -3897,7 +3904,6 @@ fieldset[disabled] .btn--warning.btn--outline.is-active {
38973904
margin: 0;
38983905
padding: 0;
38993906
list-style: none;
3900-
font-size: 14px;
39013907
color: #888888;
39023908
}
39033909

@@ -3948,6 +3954,10 @@ fieldset[disabled] .btn--warning.btn--outline.is-active {
39483954
z-index: 400;
39493955
}
39503956

3957+
.c-drop__content--always {
3958+
display: block;
3959+
}
3960+
39513961
.c-drop__content--topStart {
39523962
top: auto;
39533963
right: auto;
@@ -4067,14 +4077,15 @@ fieldset[disabled] .btn--warning.btn--outline.is-active {
40674077
min-width: 34px;
40684078
font-size: 14px;
40694079
line-height: 1.42857143;
4080+
color: #0073AA;
40704081
padding: 6px 12px;
40714082
border-radius: 3px;
40724083
border: 1px solid transparent;
40734084
background-color: #fff;
40744085
}
40754086

40764087
.c-pagination__item:hover {
4077-
background-color: rgba(0, 0, 0, 0.06);
4088+
background-color: #f5f5f5;
40784089
}
40794090

40804091
.c-pagination__item.is-active {
@@ -4086,7 +4097,9 @@ fieldset[disabled] .btn--warning.btn--outline.is-active {
40864097
}
40874098

40884099
.c-pagination__item.is-disabled {
4089-
color: #888888;
4100+
color: rgba(0, 115, 170, 0.65);
4101+
cursor: not-allowed;
4102+
background-color: #fff;
40904103
}
40914104

40924105
.c-pagination--bordered .c-pagination__item {
@@ -4110,7 +4123,7 @@ fieldset[disabled] .btn--warning.btn--outline.is-active {
41104123
}
41114124

41124125
.c-pagination--bordered .c-pagination__item.is-disabled {
4113-
background-color: #f7f7f7;
4126+
background-color: #f5f5f5;
41144127
}
41154128

41164129
.c-pagination--sm .c-pagination__item {
@@ -4189,7 +4202,7 @@ fieldset[disabled] .btn--warning.btn--outline.is-active {
41894202
-ms-flex-align: center;
41904203
align-items: center;
41914204
padding: 16px;
4192-
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
4205+
border-bottom: 1px solid #e5e5e5;
41934206
}
41944207

41954208
.c-modalCard__header::after {
@@ -4234,7 +4247,7 @@ fieldset[disabled] .btn--warning.btn--outline.is-active {
42344247
-ms-flex-negative: 0;
42354248
flex-shrink: 0;
42364249
padding: 16px;
4237-
border-top: 1px solid rgba(0, 0, 0, 0.1);
4250+
border-top: 1px solid #e5e5e5;
42384251
text-align: right;
42394252
}
42404253

dist/point.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/_templates/default.njk

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525
<!-- END .c-navbar__left -->
2626
<div class="c-navbar__right is-auto">
2727
<a href="{{site.url}}getting-started" class="c-navbar__item">Documentation</a>
28-
<a href="https://github.com/moyus/point" class="c-navbar__item">Github</a>
28+
<a href="{{site.github}}" class="c-navbar__item">Github</a>
2929
<div class="c-navbar__item">
30-
<a href="https://github.com/moyus/point" class="btn btn--outline btn--primary">Download</a>
30+
<a href="{{site.download}}" class="btn btn--outline btn--primary">Download</a>
3131
</div>
3232
</div>
3333
<!-- END .c-navbar__right -->
@@ -47,8 +47,8 @@
4747
</div>
4848
<!-- END .docs-l-content -->
4949
<footer id="colophon" class="docs-l-footer" role="contentinfo">
50-
<p>Designed and built by <a href="http://liuxinyu.me">moyu</a></p>
51-
<p>Licensed under the <a href="https://github.com/moyus/point.css/blob/master/LICENSE">MIT License</a>.</p>
50+
<p>Designed and built by <a href="{{site.author}}">moyu</a></p>
51+
<p>Licensed under the <a href="{{site.license}}">MIT License</a>.</p>
5252
</footer>
5353
</div>
5454
<script src="{{site.url}}js/main.js"></script>

docs/_templates/menus.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<nav id="sidenav" class="docs-c-sidenav">
22
<ul class="docs-c-sidenav__group">
3-
<li class="docs-c-sidenav__label">Get started</li>
3+
<li class="docs-c-sidenav__label">Getting started</li>
44
<li class="docs-c-sidenav__item">
55
<a href="{{site.url}}getting-started/index.html#introduction" class="docs-c-sidenav__link">Introduction</a>
66
</li>

docs/assets/images/logo-head.png

-1.06 KB
Loading

docs/assets/images/logo.svg

Lines changed: 3 additions & 6 deletions
Loading

docs/components/note.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ title: "Note"
88
- [Types](#types)
99

1010
## Basic
11-
Note component provide prompt messages in a page for users to take note.
11+
Note component provide prompt messages in a page for users to take notice.
1212

1313
<div class="c-note has-close">
1414
<a role="button" class="c-note__close">

docs/data.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22
"site": {
33
"title": "Point",
44
"url": "/",
5+
"version": "0.8.4",
56
"description": "A flexible CSS Framework for building modern responsive web apps",
6-
"keywords": "css,sass,flexbox,responsive,front-end,mobile-first,framework,web"
7+
"keywords": "css,sass,flexbox,responsive,front-end,mobile-first,framework,web",
8+
"download": "https://github.com/moyus/point/releases",
9+
"github": "https://github.com/moyus/point",
10+
"license": "https://github.com/moyus/point.css/blob/master/LICENSE",
11+
"author": "http://moyu.io"
712
}
813
}

docs/getting-started/index.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,16 @@ layout: default
33
title: "Getting started"
44
---
55

6+
# Getting started
7+
68
## Introduction
79
Point is a flexible CSS Framework for building modern responsive web apps.
810

11+
- Built with Flexbox
12+
- Mobile-First
13+
- BEM, Namespaces, Modular, Beautiful code
14+
- 14KB gzipped
15+
916
## Setup
1017
There are two ways to start
1118
### 1. Install with Yarn

0 commit comments

Comments
 (0)