Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
tswj
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
Builds
Commits
Issue Boards
Authored by
hookehuyr
2022-06-18 21:05:44 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
cb3090819d5b8f4e58fc12b27afb9a3da4c9aa11
cb309081
1 parent
30234e45
less测试
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
6 deletions
src/assets/styles/base.less
src/components/MyButton/index.vue
src/views/client/index.vue
src/assets/styles/base.less
View file @
cb30908
...
...
@@ -6,3 +6,14 @@
@base
-color:
#11D2B1;
//
文字颜色
@base
-font-color:
#FFFFFF;
//
定义一个映射
#colors() {
base
-color:
@base
-color
;
base
-font-color:
@base
-font-color
;
}
//
混合
.
width100
{
width:
100
%
;
}
...
...
src/components/MyButton/index.vue
View file @
cb30908
...
...
@@ -2,7 +2,7 @@
* @Author: hookehuyr hookehuyr@gmail.com
* @Date: 2022-04-21 10:04:58
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-06-
02 21:18:10
* @LastEditTime: 2022-06-
18 19:28:22
* @FilePath: /tswj/src/components/MyButton/index.vue
* @Description:
-->
...
...
@@ -61,10 +61,10 @@ export default {
padding: 0.6rem;
margin: 0.5rem;
font-size: 1rem;
background:
@base-color
;
background:
#colors[base-color]
;
border-radius: 24px;
border: 1px solid
@base-color
;
color:
@base-font-color
;
border: 1px solid
#colors[base-color]
;
color:
#colors[base-font-color]
;
font-weight: bold;
}
.button-plain {
...
...
src/views/client/index.vue
View file @
cb30908
...
...
@@ -68,7 +68,7 @@ const goSchool = () => { // 跳转选择幼儿园页面
// background-image: url('@images/shouyedongtu.gif');
background-image: url('http://gyzs.onwall.cn/shouyedongtu.gif');
background-repeat: no-repeat;
width: 100%
;
.width100()
;
height: 100vh;
background-size: 100% 85%;
position: relative;
...
...
@@ -77,7 +77,7 @@ const goSchool = () => { // 跳转选择幼儿园页面
.entry-wrapper {
position: absolute;
bottom: 1rem;
width: 100%
;
.width100()
;
.text {
color: #B8B8B8;
...
...
Please
register
or
login
to post a comment