mirror of
https://github.com/weilanwl/coloruicss.git
synced 2026-03-10 00:54:00 +08:00
v2.0.3(修复)
修复一些样式错误
This commit is contained in:
@@ -148,7 +148,7 @@ item, chat, image {
|
|||||||
border-bottom-left-radius: 6rpx;
|
border-bottom-left-radius: 6rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.grid.grid-square view> text[class*="icon"], .grid.grid-square item> text {
|
.grid.grid-square view> text[class*="icon"], .grid.grid-square item> text[class*="icon"] {
|
||||||
font-size: 52rpx;
|
font-size: 52rpx;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
color: #aaa;
|
color: #aaa;
|
||||||
@@ -157,6 +157,10 @@ item, chat, image {
|
|||||||
bottom: 0;
|
bottom: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
.grid.grid-square view, .grid.grid-square item {
|
.grid.grid-square view, .grid.grid-square item {
|
||||||
@@ -1669,23 +1673,30 @@ avatar {
|
|||||||
background-size: cover;
|
background-size: cover;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
|
font-size: 0rpx;
|
||||||
|
}
|
||||||
|
avatar::first-letter ,avatar text::first-letter{
|
||||||
|
font-size: 40rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
avatar text {
|
avatar text {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
transform-origin: 0 center;
|
transform-origin: 0 center;
|
||||||
transform: scale(0.75) translateX(-50%);
|
transform: scale(1) translateX(-50%);
|
||||||
|
font-size: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
avatar.sm {
|
avatar.sm {
|
||||||
width: 48rpx;
|
width: 48rpx;
|
||||||
height: 48rpx;
|
height: 48rpx;
|
||||||
line-height: 48rpx;
|
line-height: 48rpx;
|
||||||
}
|
}
|
||||||
|
avatar.sm::first-letter ,avatar.sm text::first-letter{
|
||||||
avatar > text {
|
font-size: 30rpx;
|
||||||
|
}
|
||||||
|
avatar > text[class*="icon"] {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
top: 0;
|
top: 0;
|
||||||
@@ -1695,15 +1706,15 @@ avatar > text {
|
|||||||
transform: scale(1.2) translateX(-50%);
|
transform: scale(1.2) translateX(-50%);
|
||||||
}
|
}
|
||||||
|
|
||||||
avatar.sm > text {
|
avatar.sm > text[class*="icon"] {
|
||||||
transform: scale(0.75) translateX(-50%);
|
transform: scale(0.75) translateX(-50%);
|
||||||
}
|
}
|
||||||
|
|
||||||
avatar.lg > text {
|
avatar.lg > text[class*="icon"] {
|
||||||
transform: scale(1.75) translateX(-50%);
|
transform: scale(1.75) translateX(-50%);
|
||||||
}
|
}
|
||||||
|
|
||||||
avatar.xl > text {
|
avatar.xl > text[class*="icon"] {
|
||||||
transform: scale(2.2) translateX(-50%);
|
transform: scale(2.2) translateX(-50%);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1711,14 +1722,20 @@ avatar.lg {
|
|||||||
width: 90rpx;
|
width: 90rpx;
|
||||||
height: 90rpx;
|
height: 90rpx;
|
||||||
line-height: 90rpx;
|
line-height: 90rpx;
|
||||||
|
font-size: 22rpx;
|
||||||
|
}
|
||||||
|
avatar.lg::first-letter ,avatar.lg text::first-letter{
|
||||||
|
font-size: 36rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
avatar.xl {
|
avatar.xl {
|
||||||
width: 128rpx;
|
width: 128rpx;
|
||||||
height: 128rpx;
|
height: 128rpx;
|
||||||
line-height: 128rpx;
|
line-height: 128rpx;
|
||||||
|
font-size: 24rpx;
|
||||||
|
}
|
||||||
|
avatar.xl::first-letter ,avatar.xl text::first-letter{
|
||||||
|
font-size: 40rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
avatar-group {
|
avatar-group {
|
||||||
direction: rtl;
|
direction: rtl;
|
||||||
unicode-bidi: bidi-override;
|
unicode-bidi: bidi-override;
|
||||||
@@ -2241,6 +2258,10 @@ bar .action>text[class*="icon"] {
|
|||||||
font-size: 36rpx;
|
font-size: 36rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bar .action>text[class*="icon"]::before {
|
||||||
|
vertical-align: 0.1em;
|
||||||
|
}
|
||||||
|
|
||||||
bar .action>text[class*="icon"]+text[class*="icon"] {
|
bar .action>text[class*="icon"]+text[class*="icon"] {
|
||||||
margin-left: 0.5em;
|
margin-left: 0.5em;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,8 +10,8 @@
|
|||||||
<text class='icon-title text-blue'></text>头像形状
|
<text class='icon-title text-blue'></text>头像形状
|
||||||
</view>
|
</view>
|
||||||
</bar>
|
</bar>
|
||||||
<view class="padding">
|
<view class="padding">
|
||||||
<avatar class="round" style="background-image:url(https://image.weilanwl.com/img/square-1.jpg);"></avatar>
|
<avatar class="round" style="background-image:url(https://image.weilanwl.com/img/square-1.jpg);"></avatar>
|
||||||
<avatar class="radius margin-left" style="background-image:url(https://image.weilanwl.com/img/square-2.jpg);"></avatar>
|
<avatar class="radius margin-left" style="background-image:url(https://image.weilanwl.com/img/square-2.jpg);"></avatar>
|
||||||
</view>
|
</view>
|
||||||
<bar class="margin-top">
|
<bar class="margin-top">
|
||||||
@@ -25,6 +25,18 @@
|
|||||||
<avatar class="lg round margin-left" style="background-image:url(https://image.weilanwl.com/img/square-3.jpg);"></avatar>
|
<avatar class="lg round margin-left" style="background-image:url(https://image.weilanwl.com/img/square-3.jpg);"></avatar>
|
||||||
<avatar class="xl round margin-left" style="background-image:url(https://image.weilanwl.com/img/square-4.jpg);"></avatar>
|
<avatar class="xl round margin-left" style="background-image:url(https://image.weilanwl.com/img/square-4.jpg);"></avatar>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="padding">
|
||||||
|
<avatar class="sm round margin-left bg-red" > orange</avatar>
|
||||||
|
<avatar class="round margin-left bg-red" >orange</avatar>
|
||||||
|
<avatar class="lg round margin-left bg-red" >orange</avatar>
|
||||||
|
<avatar class="xl round margin-left bg-red" >orange</avatar>
|
||||||
|
</view>
|
||||||
|
<view class="padding">
|
||||||
|
<avatar class="sm round margin-left bg-red" > 蔚蓝</avatar>
|
||||||
|
<avatar class="round margin-left bg-red" >蔚蓝</avatar>
|
||||||
|
<avatar class="lg round margin-left bg-red" >蔚蓝</avatar>
|
||||||
|
<avatar class="xl round margin-left bg-red" >蔚蓝</avatar>
|
||||||
|
</view>
|
||||||
<bar class="margin-top">
|
<bar class="margin-top">
|
||||||
<view class='action'>
|
<view class='action'>
|
||||||
<text class='icon-title text-blue'></text>内嵌文字(图标)
|
<text class='icon-title text-blue'></text>内嵌文字(图标)
|
||||||
|
|||||||
@@ -148,7 +148,7 @@ item, chat, image {
|
|||||||
border-bottom-left-radius: 6rpx;
|
border-bottom-left-radius: 6rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.grid.grid-square view> text[class*="icon"], .grid.grid-square item> text {
|
.grid.grid-square view> text[class*="icon"], .grid.grid-square item> text[class*="icon"] {
|
||||||
font-size: 52rpx;
|
font-size: 52rpx;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
color: #aaa;
|
color: #aaa;
|
||||||
@@ -157,6 +157,10 @@ item, chat, image {
|
|||||||
bottom: 0;
|
bottom: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
.grid.grid-square view, .grid.grid-square item {
|
.grid.grid-square view, .grid.grid-square item {
|
||||||
@@ -1669,23 +1673,30 @@ avatar {
|
|||||||
background-size: cover;
|
background-size: cover;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
|
font-size: 0rpx;
|
||||||
|
}
|
||||||
|
avatar::first-letter ,avatar text::first-letter{
|
||||||
|
font-size: 40rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
avatar text {
|
avatar text {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
transform-origin: 0 center;
|
transform-origin: 0 center;
|
||||||
transform: scale(0.75) translateX(-50%);
|
transform: scale(1) translateX(-50%);
|
||||||
|
font-size: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
avatar.sm {
|
avatar.sm {
|
||||||
width: 48rpx;
|
width: 48rpx;
|
||||||
height: 48rpx;
|
height: 48rpx;
|
||||||
line-height: 48rpx;
|
line-height: 48rpx;
|
||||||
}
|
}
|
||||||
|
avatar.sm::first-letter ,avatar.sm text::first-letter{
|
||||||
avatar > text {
|
font-size: 30rpx;
|
||||||
|
}
|
||||||
|
avatar > text[class*="icon"] {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
top: 0;
|
top: 0;
|
||||||
@@ -1695,15 +1706,15 @@ avatar > text {
|
|||||||
transform: scale(1.2) translateX(-50%);
|
transform: scale(1.2) translateX(-50%);
|
||||||
}
|
}
|
||||||
|
|
||||||
avatar.sm > text {
|
avatar.sm > text[class*="icon"] {
|
||||||
transform: scale(0.75) translateX(-50%);
|
transform: scale(0.75) translateX(-50%);
|
||||||
}
|
}
|
||||||
|
|
||||||
avatar.lg > text {
|
avatar.lg > text[class*="icon"] {
|
||||||
transform: scale(1.75) translateX(-50%);
|
transform: scale(1.75) translateX(-50%);
|
||||||
}
|
}
|
||||||
|
|
||||||
avatar.xl > text {
|
avatar.xl > text[class*="icon"] {
|
||||||
transform: scale(2.2) translateX(-50%);
|
transform: scale(2.2) translateX(-50%);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1711,14 +1722,20 @@ avatar.lg {
|
|||||||
width: 90rpx;
|
width: 90rpx;
|
||||||
height: 90rpx;
|
height: 90rpx;
|
||||||
line-height: 90rpx;
|
line-height: 90rpx;
|
||||||
|
font-size: 22rpx;
|
||||||
|
}
|
||||||
|
avatar.lg::first-letter ,avatar.lg text::first-letter{
|
||||||
|
font-size: 36rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
avatar.xl {
|
avatar.xl {
|
||||||
width: 128rpx;
|
width: 128rpx;
|
||||||
height: 128rpx;
|
height: 128rpx;
|
||||||
line-height: 128rpx;
|
line-height: 128rpx;
|
||||||
|
font-size: 24rpx;
|
||||||
|
}
|
||||||
|
avatar.xl::first-letter ,avatar.xl text::first-letter{
|
||||||
|
font-size: 40rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
avatar-group {
|
avatar-group {
|
||||||
direction: rtl;
|
direction: rtl;
|
||||||
unicode-bidi: bidi-override;
|
unicode-bidi: bidi-override;
|
||||||
@@ -2241,6 +2258,10 @@ bar .action>text[class*="icon"] {
|
|||||||
font-size: 36rpx;
|
font-size: 36rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bar .action>text[class*="icon"]::before {
|
||||||
|
vertical-align: 0.1em;
|
||||||
|
}
|
||||||
|
|
||||||
bar .action>text[class*="icon"]+text[class*="icon"] {
|
bar .action>text[class*="icon"]+text[class*="icon"] {
|
||||||
margin-left: 0.5em;
|
margin-left: 0.5em;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user