Skip to content

Commit

Permalink
fix(footer): css standard
Browse files Browse the repository at this point in the history
  • Loading branch information
jin0209 committed Dec 16, 2021
1 parent 4cad692 commit 15036a7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
10 changes: 5 additions & 5 deletions src/footer/footer.less
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
@import '../common/style/index.less';

@link-color: #266fe8;
@footer-info-font-size: 24rpx;
@footer-item-font-size: 24rpx;
@footer-title-font-size: 32rpx;
@footer-info-font-size: @font-size-s;
@footer-item-font-size: @font-size-s;
@footer-title-font-size: @font-size-m;
@footer-info-line-height: 32rpx;
@footer-item-line-height: 40rpx;
@footer-title-line-height: 48rpx;
Expand Down Expand Up @@ -37,15 +37,15 @@
margin-bottom: @footer-link-list-margin-bottom;
}

&__item {
&__link-item {
color: @footer-item-color;
font-size: @footer-item-font-size;
line-height: @footer-item-line-height;
padding-left: @footer-item-padding-left;
text-decoration: underline;
}

&__item:not(:last-child)::after {
&__link-item:not(:last-child)::after {
content: '|';
color: @footer-item-color;
display: inline-block;
Expand Down
16 changes: 8 additions & 8 deletions src/footer/footer.wxml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<view class="{{ classPrefix }}">
<view class="{{classPrefix}}">
<!-- theme 为 logo -->
<block wx:if="{{theme === 'logo'}}">
<view class="{{ classPrefix }}__logo">
<image class="{{ classPrefix }}__icon" src="{{logo.icon}}" wx:if="{{logo.icon}}" />
<view class="{{ classPrefix }}__title" wx:if="{{logo.title}}">{{logo.title}}</view>
<view class="{{classPrefix}}__logo">
<image class="{{classPrefix}}__icon" src="{{logo.icon}}" wx:if="{{logo.icon}}" />
<view class="{{classPrefix}}__title" wx:if="{{logo.title}}">{{logo.title}}</view>
<image
class="{{ classPrefix }}__title-url"
class="{{classPrefix}}__title-url"
src="{{logo.url}}"
mode="widthFix"
wx:elif="{{logo.url}}"
Expand All @@ -14,18 +14,18 @@
</block>
<!-- theme 为 text -->
<block wx:else>
<view wx:if="{{textLinkList.length > 0}}" class="{{ classPrefix }}__link-list">
<view wx:if="{{textLinkList.length > 0}}" class="{{classPrefix}}__link-list">
<block wx:for="{{textLinkList}}" wx:key="name" wx:for-item="item">
<navigator
url="{{item.url}}"
open-type="{{item.openType}}"
hover-class="none"
class="{{ classPrefix }}__item"
class="{{classPrefix}}__link-item"
>
{{item.name}}
</navigator>
</block>
</view>
<view class="{{ classPrefix }}__copyright-info">{{copyright}}</view>
<view class="{{classPrefix}}__copyright-info">{{copyright}}</view>
</block>
</view>

0 comments on commit 15036a7

Please sign in to comment.