system-clients 3.2.4 → 3.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +16 -16
- package/SystemClient.iml +2 -5
- package/build/webpack.base.conf.js +21 -11
- package/package.json +6 -4
- package/src/App.vue +24 -24
- package/src/components/Main.vue +626 -476
- package/src/components/TabButton.vue +201 -0
- package/src/components/Tabs.vue +67 -0
- package/src/components/addressManage/AddressCascadingMenu.vue +145 -0
- package/src/components/equipment/EquipmentManage.vue +1 -1
- package/src/components/equipment/PcAdd.vue +5 -5
- package/src/components/equipment/PcList.vue +5 -5
- package/src/components/equipment/PhoneAdd.vue +26 -13
- package/src/components/equipment/PhoneList.vue +31 -21
- package/src/components/equipment/PosAdd.vue +231 -45
- package/src/components/equipment/PosList.vue +198 -68
- package/src/components/equipment/PosManage.vue +80 -9
- package/src/components/equipment/PosManageBoth.vue +125 -0
- package/src/components/equipment/PosParamAdd.vue +236 -0
- package/src/components/equipment/PosParamList.vue +121 -0
- package/src/components/equipment/PosParamManage.vue +51 -0
- package/src/components/parammanage/ParamManage.vue +2 -2
- package/src/components/parammanage/ParamPage.vue +30 -8
- package/src/components/parammanage/SinglePage.vue +4 -4
- package/src/components/server/ImageVieweTest.vue +56 -0
- package/src/components/server/ImageViewer.vue +350 -0
- package/src/components/server/LoadData.vue +21 -2
- package/src/components/server/Login.vue +889 -625
- package/src/components/server/ModifyPw.vue +12 -7
- package/src/components/server/PcdBuildingSelect.vue +241 -0
- package/src/components/server/ResSelect.vue +5 -0
- package/src/components/server/ResSelectGroup.vue +159 -103
- package/src/components/server/RightTree.vue +289 -204
- package/src/filiale/dongguan/Main.vue +715 -0
- package/src/filiale/dongguan/system.js +5 -0
- package/src/filiale/konggang/Login.vue +840 -0
- package/src/filiale/konggang/system.js +7 -0
- package/src/filiale/qianneng/ModifyPw.vue +107 -0
- package/src/filiale/qianneng/system.js +7 -0
- package/src/filiale/rizhao/LeftTree.vue +111 -0
- package/src/filiale/rizhao/Login.vue +791 -0
- package/src/filiale/rizhao/Main.vue +606 -0
- package/src/filiale/rizhao/system.js +14 -0
- package/src/filiale/yuchuan/Login.vue +889 -0
- package/src/filiale/yuchuan/Main.vue +773 -0
- package/src/filiale/yuchuan/system.js +10 -0
- package/src/plugins/EncryptUtil.js +53 -0
- package/src/plugins/GetLoginInfoService.js +76 -70
- package/src/plugins/HeatGetLoginInfoService.js +491 -0
- package/src/plugins/validation.js +9 -1
- package/src/stores/HeatAppData.js +38 -0
- package/src/styles/fonts/PINGFANG LIGHT.TTF +0 -0
- package/src/styles/fonts/PingFangSC-Regular.ttf +0 -0
- package/src/styles/fonts/glyphicons-halflings-regular.eot +0 -0
- package/src/styles/fonts/glyphicons-halflings-regular.svg +288 -0
- package/src/styles/fonts/glyphicons-halflings-regular.ttf +0 -0
- package/src/styles/fonts/glyphicons-halflings-regular.woff +0 -0
- package/src/styles/fonts/glyphicons-halflings-regular.woff2 +0 -0
- package/src/styles/fonts/pingfang-bold.ttf +0 -0
- package/src/styles/fonts/pingfang-medium.ttf +0 -0
- package/src/styles/fonts/pingfang-regular.ttf +0 -0
- package/src/styles/fonts/trendstrends.ttf +0 -0
- package/src/styles/fonts//346/261/211/344/273/252/350/217/261/345/277/203/344/275/223/347/256/200.ttf +0 -0
- package/src/styles/less/.csscomb.json +304 -0
- package/src/styles/less/.csslintrc +19 -0
- package/src/styles/less/alerts.less +73 -0
- package/src/styles/less/aofeng/animate.min.css +11 -0
- package/src/styles/less/aofeng/expandcss.less +569 -0
- package/src/styles/less/aofeng/standard.less +2507 -0
- package/src/styles/less/aofeng/themeOne/BinaryTemplate.less +686 -0
- package/src/styles/less/aofeng/themeOne/loginStyle.less +1586 -0
- package/src/styles/less/aofeng/themeOne/systemStyle.less +2650 -0
- package/src/styles/less/aofeng/themeOne.less +17 -0
- package/src/styles/less/aofeng/themeTwo/newStyle1.less +415 -0
- package/src/styles/less/aofeng/themeTwo.less +3 -0
- package/src/styles/less/badges.less +66 -0
- package/src/styles/less/bootstrap.less +66 -0
- package/src/styles/less/breadcrumbs.less +26 -0
- package/src/styles/less/button-groups.less +247 -0
- package/src/styles/less/buttons.less +172 -0
- package/src/styles/less/carousel.less +269 -0
- package/src/styles/less/close.less +34 -0
- package/src/styles/less/code.less +69 -0
- package/src/styles/less/component-animations.less +33 -0
- package/src/styles/less/dropdowns.less +216 -0
- package/src/styles/less/fonts-list.less +25 -0
- package/src/styles/less/forms.less +626 -0
- package/src/styles/less/glyphicons.less +305 -0
- package/src/styles/less/grid.less +84 -0
- package/src/styles/less/input-groups.less +167 -0
- package/src/styles/less/jumbotron.less +52 -0
- package/src/styles/less/labels.less +64 -0
- package/src/styles/less/list-group.less +141 -0
- package/src/styles/less/manageStyle/manageChile.less +180 -0
- package/src/styles/less/manageStyle/manageStyle/manageChile.less +180 -0
- package/src/styles/less/manageStyle/manageStyle/manageStyle.less +1102 -0
- package/src/styles/less/manageStyle/manageStyle/safeStyle.less +498 -0
- package/src/styles/less/manageStyle/manageStyle.less +1102 -0
- package/src/styles/less/manageStyle/safeStyle.less +498 -0
- package/src/styles/less/media.less +66 -0
- package/src/styles/less/mixins/alerts.less +14 -0
- package/src/styles/less/mixins/background-variant.less +9 -0
- package/src/styles/less/mixins/border-radius.less +18 -0
- package/src/styles/less/mixins/buttons.less +69 -0
- package/src/styles/less/mixins/center-block.less +7 -0
- package/src/styles/less/mixins/clearfix.less +22 -0
- package/src/styles/less/mixins/forms.less +90 -0
- package/src/styles/less/mixins/gradients.less +59 -0
- package/src/styles/less/mixins/grid-framework.less +92 -0
- package/src/styles/less/mixins/grid.less +122 -0
- package/src/styles/less/mixins/hide-text.less +21 -0
- package/src/styles/less/mixins/image.less +33 -0
- package/src/styles/less/mixins/labels.less +12 -0
- package/src/styles/less/mixins/list-group.less +30 -0
- package/src/styles/less/mixins/nav-divider.less +10 -0
- package/src/styles/less/mixins/nav-vertical-align.less +9 -0
- package/src/styles/less/mixins/opacity.less +8 -0
- package/src/styles/less/mixins/pagination.less +24 -0
- package/src/styles/less/mixins/panels.less +24 -0
- package/src/styles/less/mixins/progress-bar.less +10 -0
- package/src/styles/less/mixins/reset-filter.less +8 -0
- package/src/styles/less/mixins/reset-text.less +18 -0
- package/src/styles/less/mixins/resize.less +6 -0
- package/src/styles/less/mixins/responsive-visibility.less +15 -0
- package/src/styles/less/mixins/size.less +10 -0
- package/src/styles/less/mixins/tab-focus.less +9 -0
- package/src/styles/less/mixins/table-row.less +44 -0
- package/src/styles/less/mixins/text-emphasis.less +9 -0
- package/src/styles/less/mixins/text-overflow.less +8 -0
- package/src/styles/less/mixins/vendor-prefixes.less +227 -0
- package/src/styles/less/mixins.less +40 -0
- package/src/styles/less/modals.less +151 -0
- package/src/styles/less/navbar.less +660 -0
- package/src/styles/less/navs.less +285 -0
- package/src/styles/less/normalize.less +424 -0
- package/src/styles/less/pager.less +76 -0
- package/src/styles/less/pagination.less +89 -0
- package/src/styles/less/panels.less +275 -0
- package/src/styles/less/popovers.less +131 -0
- package/src/styles/less/print.less +101 -0
- package/src/styles/less/progress-bars.less +87 -0
- package/src/styles/less/responsive-embed.less +35 -0
- package/src/styles/less/responsive-utilities.less +194 -0
- package/src/styles/less/scaffolding.less +161 -0
- package/src/styles/less/stand.less +207 -0
- package/src/styles/less/tables.less +312 -0
- package/src/styles/less/theme.less +291 -0
- package/src/styles/less/thumbnails.less +36 -0
- package/src/styles/less/tooltip.less +102 -0
- package/src/styles/less/type.less +316 -0
- package/src/styles/less/utilities.less +55 -0
- package/src/styles/less/variables.less +899 -0
- package/src/styles/less/wells.less +29 -0
- package/src/system.js +34 -1
- package/src/util/Daiban.json +12 -0
- package/static/images/lefticon//345/220/210/345/220/214/347/256/241/347/220/206.png +0 -0
- package/static/logo.png +0 -0
- package/static/newStyle/about-us.png +0 -0
- package/static/rizhao.png +0 -0
- package/yarn-error.log +6896 -0
- package/.gradle/3.5/file-changes/last-build.bin +0 -0
- package/.gradle/3.5/taskHistory/taskHistory.lock +0 -0
- package/.gradle/3.5.1/file-changes/last-build.bin +0 -0
- package/.gradle/3.5.1/taskHistory/taskHistory.lock +0 -0
- package/.gradle/buildOutputCleanup/built.bin +0 -0
- package/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/.gradle/buildOutputCleanup/cache.properties.lock +0 -1
@@ -0,0 +1,90 @@
|
|
1
|
+
// Form validation states
|
2
|
+
//
|
3
|
+
// Used in forms.less to generate the form validation CSS for warnings, errors,
|
4
|
+
// and successes.
|
5
|
+
|
6
|
+
.form-control-validation(@text-color: #555; @border-color: #ccc; @background-color: #f5f5f5) {
|
7
|
+
// Color the label and help text
|
8
|
+
.help-block,
|
9
|
+
.control-label,
|
10
|
+
.radio,
|
11
|
+
.checkbox,
|
12
|
+
.radio-inline,
|
13
|
+
.checkbox-inline,
|
14
|
+
&.radio label,
|
15
|
+
&.checkbox label,
|
16
|
+
&.radio-inline label,
|
17
|
+
&.checkbox-inline label {
|
18
|
+
color: @text-color;
|
19
|
+
// 原本没有,自己添加
|
20
|
+
}
|
21
|
+
// Set the border and box shadow on specific inputs to match
|
22
|
+
.form-control {
|
23
|
+
// border-color: @border-color;
|
24
|
+
// .box-shadow(inset 0 1px 1px rgba(0,0,0,.075)); // Redeclare so transitions work
|
25
|
+
color: @text-color; // 原本没有
|
26
|
+
border-bottom: 1px solid @text-color;
|
27
|
+
.box-shadow(inset 0 1px 1px rgba(0,0,0,.075));
|
28
|
+
&:focus {
|
29
|
+
// border-color: darken(@border-color, 10%);
|
30
|
+
border-bottom: 1px solid @text-color;
|
31
|
+
@shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 6px lighten(@border-color, 20%);
|
32
|
+
.box-shadow(@shadow);
|
33
|
+
}
|
34
|
+
}
|
35
|
+
// Set validation states also for addons
|
36
|
+
.input-group-addon {
|
37
|
+
color: @text-color;
|
38
|
+
border-color: @border-color;
|
39
|
+
background-color: @background-color;
|
40
|
+
}
|
41
|
+
// Optional feedback icon
|
42
|
+
.form-control-feedback {
|
43
|
+
color: @text-color;
|
44
|
+
}
|
45
|
+
}
|
46
|
+
|
47
|
+
|
48
|
+
// Form control focus state
|
49
|
+
//
|
50
|
+
// Generate a customized focus state and for any input with the specified color,
|
51
|
+
// which defaults to the `@input-border-focus` variable.
|
52
|
+
//
|
53
|
+
// We highly encourage you to not customize the default value, but instead use
|
54
|
+
// this to tweak colors on an as-needed basis. This aesthetic change is based on
|
55
|
+
// WebKit's default styles, but applicable to a wider range of browsers. Its
|
56
|
+
// usability and accessibility should be taken into account with any change.
|
57
|
+
//
|
58
|
+
// Example usage: change the default blue border and shadow to white for better
|
59
|
+
// contrast against a dark gray background.
|
60
|
+
.form-control-focus(@color: @input-border-focus) {
|
61
|
+
@color-rgba: rgba(red(@color), green(@color), blue(@color), .6);
|
62
|
+
&:focus {
|
63
|
+
border-color: @color;
|
64
|
+
outline: 0;
|
65
|
+
.box-shadow(~"inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px @{color-rgba}");
|
66
|
+
}
|
67
|
+
}
|
68
|
+
|
69
|
+
// Form control sizing
|
70
|
+
//
|
71
|
+
// Relative text size, padding, and border-radii changes for form controls. For
|
72
|
+
// horizontal sizing, wrap controls in the predefined grid classes. `<select>`
|
73
|
+
// element gets special love because it's special, and that's a fact!
|
74
|
+
.input-size(@input-height; @padding-vertical; @padding-horizontal; @font-size; @line-height; @border-radius) {
|
75
|
+
height: @input-height;
|
76
|
+
padding: @padding-vertical @padding-horizontal;
|
77
|
+
font-size: @font-size;
|
78
|
+
line-height: @line-height;
|
79
|
+
border-radius: @border-radius;
|
80
|
+
|
81
|
+
select& {
|
82
|
+
height: @input-height;
|
83
|
+
line-height: @input-height;
|
84
|
+
}
|
85
|
+
|
86
|
+
textarea&,
|
87
|
+
select[multiple]& {
|
88
|
+
height: auto;
|
89
|
+
}
|
90
|
+
}
|
@@ -0,0 +1,59 @@
|
|
1
|
+
// Gradients
|
2
|
+
|
3
|
+
#gradient {
|
4
|
+
|
5
|
+
// Horizontal gradient, from left to right
|
6
|
+
//
|
7
|
+
// Creates two color stops, start and end, by specifying a color and position for each color stop.
|
8
|
+
// Color stops are not available in IE9 and below.
|
9
|
+
.horizontal(@start-color: #555; @end-color: #333; @start-percent: 0%; @end-percent: 100%) {
|
10
|
+
background-image: -webkit-linear-gradient(left, @start-color @start-percent, @end-color @end-percent); // Safari 5.1-6, Chrome 10+
|
11
|
+
background-image: -o-linear-gradient(left, @start-color @start-percent, @end-color @end-percent); // Opera 12
|
12
|
+
background-image: linear-gradient(to right, @start-color @start-percent, @end-color @end-percent); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+
|
13
|
+
background-repeat: repeat-x;
|
14
|
+
filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=1)",argb(@start-color),argb(@end-color))); // IE9 and down
|
15
|
+
}
|
16
|
+
|
17
|
+
// Vertical gradient, from top to bottom
|
18
|
+
//
|
19
|
+
// Creates two color stops, start and end, by specifying a color and position for each color stop.
|
20
|
+
// Color stops are not available in IE9 and below.
|
21
|
+
.vertical(@start-color: #555; @end-color: #333; @start-percent: 0%; @end-percent: 100%) {
|
22
|
+
background-image: -webkit-linear-gradient(top, @start-color @start-percent, @end-color @end-percent); // Safari 5.1-6, Chrome 10+
|
23
|
+
background-image: -o-linear-gradient(top, @start-color @start-percent, @end-color @end-percent); // Opera 12
|
24
|
+
background-image: linear-gradient(to bottom, @start-color @start-percent, @end-color @end-percent); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+
|
25
|
+
background-repeat: repeat-x;
|
26
|
+
filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",argb(@start-color),argb(@end-color))); // IE9 and down
|
27
|
+
}
|
28
|
+
|
29
|
+
.directional(@start-color: #555; @end-color: #333; @deg: 45deg) {
|
30
|
+
background-repeat: repeat-x;
|
31
|
+
background-image: -webkit-linear-gradient(@deg, @start-color, @end-color); // Safari 5.1-6, Chrome 10+
|
32
|
+
background-image: -o-linear-gradient(@deg, @start-color, @end-color); // Opera 12
|
33
|
+
background-image: linear-gradient(@deg, @start-color, @end-color); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+
|
34
|
+
}
|
35
|
+
.horizontal-three-colors(@start-color: #00b3ee; @mid-color: #7a43b6; @color-stop: 50%; @end-color: #c3325f) {
|
36
|
+
background-image: -webkit-linear-gradient(left, @start-color, @mid-color @color-stop, @end-color);
|
37
|
+
background-image: -o-linear-gradient(left, @start-color, @mid-color @color-stop, @end-color);
|
38
|
+
background-image: linear-gradient(to right, @start-color, @mid-color @color-stop, @end-color);
|
39
|
+
background-repeat: no-repeat;
|
40
|
+
filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=1)",argb(@start-color),argb(@end-color))); // IE9 and down, gets no color-stop at all for proper fallback
|
41
|
+
}
|
42
|
+
.vertical-three-colors(@start-color: #00b3ee; @mid-color: #7a43b6; @color-stop: 50%; @end-color: #c3325f) {
|
43
|
+
background-image: -webkit-linear-gradient(@start-color, @mid-color @color-stop, @end-color);
|
44
|
+
background-image: -o-linear-gradient(@start-color, @mid-color @color-stop, @end-color);
|
45
|
+
background-image: linear-gradient(@start-color, @mid-color @color-stop, @end-color);
|
46
|
+
background-repeat: no-repeat;
|
47
|
+
filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",argb(@start-color),argb(@end-color))); // IE9 and down, gets no color-stop at all for proper fallback
|
48
|
+
}
|
49
|
+
.radial(@inner-color: #555; @outer-color: #333) {
|
50
|
+
background-image: -webkit-radial-gradient(circle, @inner-color, @outer-color);
|
51
|
+
background-image: radial-gradient(circle, @inner-color, @outer-color);
|
52
|
+
background-repeat: no-repeat;
|
53
|
+
}
|
54
|
+
.striped(@color: rgba(255,255,255,.15); @angle: 45deg) {
|
55
|
+
background-image: -webkit-linear-gradient(@angle, @color 25%, transparent 25%, transparent 50%, @color 50%, @color 75%, transparent 75%, transparent);
|
56
|
+
background-image: -o-linear-gradient(@angle, @color 25%, transparent 25%, transparent 50%, @color 50%, @color 75%, transparent 75%, transparent);
|
57
|
+
background-image: linear-gradient(@angle, @color 25%, transparent 25%, transparent 50%, @color 50%, @color 75%, transparent 75%, transparent);
|
58
|
+
}
|
59
|
+
}
|
@@ -0,0 +1,92 @@
|
|
1
|
+
// Framework grid generation
|
2
|
+
//
|
3
|
+
// Used only by Bootstrap to generate the correct number of grid classes given
|
4
|
+
// any value of `@grid-columns`.
|
5
|
+
|
6
|
+
.make-grid-columns() {
|
7
|
+
// Common styles for all sizes of grid columns, widths 1-12
|
8
|
+
.col(@index) { // initial
|
9
|
+
@item: ~".col-xs-@{index}, .col-sm-@{index}, .col-md-@{index}, .col-lg-@{index}";
|
10
|
+
.col((@index + 1), @item);
|
11
|
+
}
|
12
|
+
.col(@index, @list) when (@index =< @grid-columns) { // general; "=<" isn't a typo
|
13
|
+
@item: ~".col-xs-@{index}, .col-sm-@{index}, .col-md-@{index}, .col-lg-@{index}";
|
14
|
+
.col((@index + 1), ~"@{list}, @{item}");
|
15
|
+
}
|
16
|
+
.col(@index, @list) when (@index > @grid-columns) { // terminal
|
17
|
+
@{list} {
|
18
|
+
position: relative;
|
19
|
+
// Prevent columns from collapsing when empty
|
20
|
+
min-height: 1px;
|
21
|
+
// Inner gutter via padding
|
22
|
+
// 原本有,自己注释掉,这个最终得出为左右内边距为15px
|
23
|
+
// padding-left: ceil((@grid-gutter-width / 2));
|
24
|
+
// padding-right: floor((@grid-gutter-width / 2));
|
25
|
+
}
|
26
|
+
}
|
27
|
+
.col(1); // kickstart it
|
28
|
+
}
|
29
|
+
|
30
|
+
.float-grid-columns(@class) {
|
31
|
+
.col(@index) { // initial
|
32
|
+
@item: ~".col-@{class}-@{index}";
|
33
|
+
.col((@index + 1), @item);
|
34
|
+
}
|
35
|
+
.col(@index, @list) when (@index =< @grid-columns) { // general
|
36
|
+
@item: ~".col-@{class}-@{index}";
|
37
|
+
.col((@index + 1), ~"@{list}, @{item}");
|
38
|
+
}
|
39
|
+
.col(@index, @list) when (@index > @grid-columns) { // terminal
|
40
|
+
@{list} {
|
41
|
+
float: left;
|
42
|
+
}
|
43
|
+
}
|
44
|
+
.col(1); // kickstart it
|
45
|
+
}
|
46
|
+
|
47
|
+
.calc-grid-column(@index, @class, @type) when (@type = width) and (@index > 0) {
|
48
|
+
.col-@{class}-@{index} {
|
49
|
+
width: percentage((@index / @grid-columns));
|
50
|
+
}
|
51
|
+
}
|
52
|
+
.calc-grid-column(@index, @class, @type) when (@type = push) and (@index > 0) {
|
53
|
+
.col-@{class}-push-@{index} {
|
54
|
+
left: percentage((@index / @grid-columns));
|
55
|
+
}
|
56
|
+
}
|
57
|
+
.calc-grid-column(@index, @class, @type) when (@type = push) and (@index = 0) {
|
58
|
+
.col-@{class}-push-0 {
|
59
|
+
left: auto;
|
60
|
+
}
|
61
|
+
}
|
62
|
+
.calc-grid-column(@index, @class, @type) when (@type = pull) and (@index > 0) {
|
63
|
+
.col-@{class}-pull-@{index} {
|
64
|
+
right: percentage((@index / @grid-columns));
|
65
|
+
}
|
66
|
+
}
|
67
|
+
.calc-grid-column(@index, @class, @type) when (@type = pull) and (@index = 0) {
|
68
|
+
.col-@{class}-pull-0 {
|
69
|
+
right: auto;
|
70
|
+
}
|
71
|
+
}
|
72
|
+
.calc-grid-column(@index, @class, @type) when (@type = offset) {
|
73
|
+
.col-@{class}-offset-@{index} {
|
74
|
+
margin-left: percentage((@index / @grid-columns));
|
75
|
+
}
|
76
|
+
}
|
77
|
+
|
78
|
+
// Basic looping in LESS
|
79
|
+
.loop-grid-columns(@index, @class, @type) when (@index >= 0) {
|
80
|
+
.calc-grid-column(@index, @class, @type);
|
81
|
+
// next iteration
|
82
|
+
.loop-grid-columns((@index - 1), @class, @type);
|
83
|
+
}
|
84
|
+
|
85
|
+
// Create grid for specific class
|
86
|
+
.make-grid(@class) {
|
87
|
+
.float-grid-columns(@class);
|
88
|
+
.loop-grid-columns(@grid-columns, @class, width);
|
89
|
+
.loop-grid-columns(@grid-columns, @class, pull);
|
90
|
+
.loop-grid-columns(@grid-columns, @class, push);
|
91
|
+
.loop-grid-columns(@grid-columns, @class, offset);
|
92
|
+
}
|
@@ -0,0 +1,122 @@
|
|
1
|
+
// Grid system
|
2
|
+
//
|
3
|
+
// Generate semantic grid columns with these mixins.
|
4
|
+
|
5
|
+
// Centered container element
|
6
|
+
.container-fixed(@gutter: @grid-gutter-width) {
|
7
|
+
margin-right: auto;
|
8
|
+
margin-left: auto;
|
9
|
+
padding-left: (@gutter / 2);
|
10
|
+
padding-right: (@gutter / 2);
|
11
|
+
&:extend(.clearfix all);
|
12
|
+
}
|
13
|
+
|
14
|
+
// Creates a wrapper for a series of columns
|
15
|
+
.make-row(@gutter: @grid-gutter-width) {
|
16
|
+
margin-left: ceil((@gutter / -2));
|
17
|
+
margin-right: floor((@gutter / -2));
|
18
|
+
&:extend(.clearfix all);
|
19
|
+
}
|
20
|
+
|
21
|
+
// Generate the extra small columns
|
22
|
+
.make-xs-column(@columns; @gutter: @grid-gutter-width) {
|
23
|
+
position: relative;
|
24
|
+
float: left;
|
25
|
+
width: percentage((@columns / @grid-columns));
|
26
|
+
min-height: 1px;
|
27
|
+
padding-left: (@gutter / 2);
|
28
|
+
padding-right: (@gutter / 2);
|
29
|
+
}
|
30
|
+
.make-xs-column-offset(@columns) {
|
31
|
+
margin-left: percentage((@columns / @grid-columns));
|
32
|
+
}
|
33
|
+
.make-xs-column-push(@columns) {
|
34
|
+
left: percentage((@columns / @grid-columns));
|
35
|
+
}
|
36
|
+
.make-xs-column-pull(@columns) {
|
37
|
+
right: percentage((@columns / @grid-columns));
|
38
|
+
}
|
39
|
+
|
40
|
+
// Generate the small columns
|
41
|
+
.make-sm-column(@columns; @gutter: @grid-gutter-width) {
|
42
|
+
position: relative;
|
43
|
+
min-height: 1px;
|
44
|
+
padding-left: (@gutter / 2);
|
45
|
+
padding-right: (@gutter / 2);
|
46
|
+
|
47
|
+
@media (min-width: @screen-sm-min) {
|
48
|
+
float: left;
|
49
|
+
width: percentage((@columns / @grid-columns));
|
50
|
+
}
|
51
|
+
}
|
52
|
+
.make-sm-column-offset(@columns) {
|
53
|
+
@media (min-width: @screen-sm-min) {
|
54
|
+
margin-left: percentage((@columns / @grid-columns));
|
55
|
+
}
|
56
|
+
}
|
57
|
+
.make-sm-column-push(@columns) {
|
58
|
+
@media (min-width: @screen-sm-min) {
|
59
|
+
left: percentage((@columns / @grid-columns));
|
60
|
+
}
|
61
|
+
}
|
62
|
+
.make-sm-column-pull(@columns) {
|
63
|
+
@media (min-width: @screen-sm-min) {
|
64
|
+
right: percentage((@columns / @grid-columns));
|
65
|
+
}
|
66
|
+
}
|
67
|
+
|
68
|
+
// Generate the medium columns
|
69
|
+
.make-md-column(@columns; @gutter: @grid-gutter-width) {
|
70
|
+
position: relative;
|
71
|
+
min-height: 1px;
|
72
|
+
padding-left: (@gutter / 2);
|
73
|
+
padding-right: (@gutter / 2);
|
74
|
+
|
75
|
+
@media (min-width: @screen-md-min) {
|
76
|
+
float: left;
|
77
|
+
width: percentage((@columns / @grid-columns));
|
78
|
+
}
|
79
|
+
}
|
80
|
+
.make-md-column-offset(@columns) {
|
81
|
+
@media (min-width: @screen-md-min) {
|
82
|
+
margin-left: percentage((@columns / @grid-columns));
|
83
|
+
}
|
84
|
+
}
|
85
|
+
.make-md-column-push(@columns) {
|
86
|
+
@media (min-width: @screen-md-min) {
|
87
|
+
left: percentage((@columns / @grid-columns));
|
88
|
+
}
|
89
|
+
}
|
90
|
+
.make-md-column-pull(@columns) {
|
91
|
+
@media (min-width: @screen-md-min) {
|
92
|
+
right: percentage((@columns / @grid-columns));
|
93
|
+
}
|
94
|
+
}
|
95
|
+
|
96
|
+
// Generate the large columns
|
97
|
+
.make-lg-column(@columns; @gutter: @grid-gutter-width) {
|
98
|
+
position: relative;
|
99
|
+
min-height: 1px;
|
100
|
+
padding-left: (@gutter / 2);
|
101
|
+
padding-right: (@gutter / 2);
|
102
|
+
|
103
|
+
@media (min-width: @screen-lg-min) {
|
104
|
+
float: left;
|
105
|
+
width: percentage((@columns / @grid-columns));
|
106
|
+
}
|
107
|
+
}
|
108
|
+
.make-lg-column-offset(@columns) {
|
109
|
+
@media (min-width: @screen-lg-min) {
|
110
|
+
margin-left: percentage((@columns / @grid-columns));
|
111
|
+
}
|
112
|
+
}
|
113
|
+
.make-lg-column-push(@columns) {
|
114
|
+
@media (min-width: @screen-lg-min) {
|
115
|
+
left: percentage((@columns / @grid-columns));
|
116
|
+
}
|
117
|
+
}
|
118
|
+
.make-lg-column-pull(@columns) {
|
119
|
+
@media (min-width: @screen-lg-min) {
|
120
|
+
right: percentage((@columns / @grid-columns));
|
121
|
+
}
|
122
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
// CSS image replacement
|
2
|
+
//
|
3
|
+
// Heads up! v3 launched with only `.hide-text()`, but per our pattern for
|
4
|
+
// mixins being reused as classes with the same name, this doesn't hold up. As
|
5
|
+
// of v3.0.1 we have added `.text-hide()` and deprecated `.hide-text()`.
|
6
|
+
//
|
7
|
+
// Source: https://github.com/h5bp/html5-boilerplate/commit/aa0396eae757
|
8
|
+
|
9
|
+
// Deprecated as of v3.0.1 (will be removed in v4)
|
10
|
+
.hide-text() {
|
11
|
+
font: ~"0/0" a;
|
12
|
+
color: transparent;
|
13
|
+
text-shadow: none;
|
14
|
+
background-color: transparent;
|
15
|
+
border: 0;
|
16
|
+
}
|
17
|
+
|
18
|
+
// New mixin to use as of v3.0.1
|
19
|
+
.text-hide() {
|
20
|
+
.hide-text();
|
21
|
+
}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
// Image Mixins
|
2
|
+
// - Responsive image
|
3
|
+
// - Retina image
|
4
|
+
|
5
|
+
|
6
|
+
// Responsive image
|
7
|
+
//
|
8
|
+
// Keep images from scaling beyond the width of their parents.
|
9
|
+
.img-responsive(@display: block) {
|
10
|
+
display: @display;
|
11
|
+
max-width: 100%; // Part 1: Set a maximum relative to the parent
|
12
|
+
height: auto; // Part 2: Scale the height according to the width, otherwise you get stretching
|
13
|
+
}
|
14
|
+
|
15
|
+
|
16
|
+
// Retina image
|
17
|
+
//
|
18
|
+
// Short retina mixin for setting background-image and -size. Note that the
|
19
|
+
// spelling of `min--moz-device-pixel-ratio` is intentional.
|
20
|
+
.img-retina(@file-1x; @file-2x; @width-1x; @height-1x) {
|
21
|
+
background-image: url("@{file-1x}");
|
22
|
+
|
23
|
+
@media
|
24
|
+
only screen and (-webkit-min-device-pixel-ratio: 2),
|
25
|
+
only screen and ( min--moz-device-pixel-ratio: 2),
|
26
|
+
only screen and ( -o-min-device-pixel-ratio: 2/1),
|
27
|
+
only screen and ( min-device-pixel-ratio: 2),
|
28
|
+
only screen and ( min-resolution: 192dpi),
|
29
|
+
only screen and ( min-resolution: 2dppx) {
|
30
|
+
background-image: url("@{file-2x}");
|
31
|
+
background-size: @width-1x @height-1x;
|
32
|
+
}
|
33
|
+
}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
// List Groups
|
2
|
+
|
3
|
+
.list-group-item-variant(@state; @background; @color) {
|
4
|
+
.list-group-item-@{state} {
|
5
|
+
color: @color;
|
6
|
+
background-color: @background;
|
7
|
+
|
8
|
+
a&,
|
9
|
+
button& {
|
10
|
+
color: @color;
|
11
|
+
|
12
|
+
.list-group-item-heading {
|
13
|
+
color: inherit;
|
14
|
+
}
|
15
|
+
|
16
|
+
&:hover,
|
17
|
+
&:focus {
|
18
|
+
color: @color;
|
19
|
+
background-color: darken(@background, 5%);
|
20
|
+
}
|
21
|
+
&.active,
|
22
|
+
&.active:hover,
|
23
|
+
&.active:focus {
|
24
|
+
color: #fff;
|
25
|
+
background-color: @color;
|
26
|
+
border-color: @color;
|
27
|
+
}
|
28
|
+
}
|
29
|
+
}
|
30
|
+
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
// Navbar vertical align
|
2
|
+
//
|
3
|
+
// Vertically center elements in the navbar.
|
4
|
+
// Example: an element has a height of 30px, so write out `.navbar-vertical-align(30px);` to calculate the appropriate top margin.
|
5
|
+
|
6
|
+
.navbar-vertical-align(@element-height) {
|
7
|
+
margin-top: ((@navbar-height - @element-height) / 2);
|
8
|
+
margin-bottom: ((@navbar-height - @element-height) / 2);
|
9
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
// Pagination
|
2
|
+
|
3
|
+
.pagination-size(@padding-vertical; @padding-horizontal; @font-size; @line-height; @border-radius) {
|
4
|
+
> li {
|
5
|
+
> a,
|
6
|
+
> span {
|
7
|
+
padding: @padding-vertical @padding-horizontal;
|
8
|
+
font-size: @font-size;
|
9
|
+
line-height: @line-height;
|
10
|
+
}
|
11
|
+
&:first-child {
|
12
|
+
> a,
|
13
|
+
> span {
|
14
|
+
.border-left-radius(@border-radius);
|
15
|
+
}
|
16
|
+
}
|
17
|
+
&:last-child {
|
18
|
+
> a,
|
19
|
+
> span {
|
20
|
+
.border-right-radius(@border-radius);
|
21
|
+
}
|
22
|
+
}
|
23
|
+
}
|
24
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
// Panels
|
2
|
+
|
3
|
+
.panel-variant(@border; @heading-text-color; @heading-bg-color; @heading-border) {
|
4
|
+
border-color: @border;
|
5
|
+
|
6
|
+
& > .panel-heading {
|
7
|
+
color: @heading-text-color;
|
8
|
+
background-color: @heading-bg-color;
|
9
|
+
border-color: @heading-border;
|
10
|
+
|
11
|
+
+ .panel-collapse > .panel-body {
|
12
|
+
border-top-color: @border;
|
13
|
+
}
|
14
|
+
.badge {
|
15
|
+
color: @heading-bg-color;
|
16
|
+
background-color: @heading-text-color;
|
17
|
+
}
|
18
|
+
}
|
19
|
+
& > .panel-footer {
|
20
|
+
+ .panel-collapse > .panel-body {
|
21
|
+
border-bottom-color: @border;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
.reset-text() {
|
2
|
+
font-family: @font-family-base;
|
3
|
+
// We deliberately do NOT reset font-size.
|
4
|
+
font-style: normal;
|
5
|
+
font-weight: normal;
|
6
|
+
letter-spacing: normal;
|
7
|
+
line-break: auto;
|
8
|
+
line-height: @line-height-base;
|
9
|
+
text-align: left; // Fallback for where `start` is not supported
|
10
|
+
text-align: start;
|
11
|
+
text-decoration: none;
|
12
|
+
text-shadow: none;
|
13
|
+
text-transform: none;
|
14
|
+
white-space: normal;
|
15
|
+
word-break: normal;
|
16
|
+
word-spacing: normal;
|
17
|
+
word-wrap: normal;
|
18
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
// Responsive utilities
|
2
|
+
|
3
|
+
//
|
4
|
+
// More easily include all the states for responsive-utilities.less.
|
5
|
+
.responsive-visibility() {
|
6
|
+
display: block !important;
|
7
|
+
table& { display: table !important; }
|
8
|
+
tr& { display: table-row !important; }
|
9
|
+
th&,
|
10
|
+
td& { display: table-cell !important; }
|
11
|
+
}
|
12
|
+
|
13
|
+
.responsive-invisibility() {
|
14
|
+
display: none !important;
|
15
|
+
}
|
@@ -0,0 +1,44 @@
|
|
1
|
+
// Tables
|
2
|
+
|
3
|
+
.table-row-variant(@state; @background) {
|
4
|
+
// Exact selectors below required to override `.table-striped` and prevent
|
5
|
+
// inheritance to nested tables.
|
6
|
+
// 原本的
|
7
|
+
// .table > thead > tr,
|
8
|
+
// .table > tbody > tr,
|
9
|
+
// .table > tfoot > tr {
|
10
|
+
// > td.@{state},
|
11
|
+
// > th.@{state},
|
12
|
+
// &.@{state} > td,
|
13
|
+
// &.@{state} > th {
|
14
|
+
// background-color: @background;
|
15
|
+
// }
|
16
|
+
// }
|
17
|
+
// 修改后,修改的值写死了,有待改进
|
18
|
+
.table > thead,
|
19
|
+
.table > tbody,
|
20
|
+
.table > tfoot {
|
21
|
+
tr.@{state},
|
22
|
+
&.@{state} > tr {
|
23
|
+
// border: 2px solid #E5DB86;
|
24
|
+
> td.@{state},
|
25
|
+
> th.@{state},
|
26
|
+
&.@{state} > td,
|
27
|
+
&.@{state} > th {
|
28
|
+
background-color: @background;
|
29
|
+
}
|
30
|
+
}
|
31
|
+
}
|
32
|
+
|
33
|
+
// Hover states for `.table-hover`
|
34
|
+
// Note: this is not available for cells or rows within `thead` or `tfoot`.
|
35
|
+
.table-hover > tbody > tr {
|
36
|
+
> td.@{state}:hover,
|
37
|
+
> th.@{state}:hover,
|
38
|
+
&.@{state}:hover > td,
|
39
|
+
&:hover > .@{state},
|
40
|
+
&.@{state}:hover > th {
|
41
|
+
background-color: darken(@background, 5%);
|
42
|
+
}
|
43
|
+
}
|
44
|
+
}
|