-
Notifications
You must be signed in to change notification settings - Fork 309
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(Tag): update sass file use variable (#2581)
* refactor: update sass file use variable * doc: update sample code * chore: update dict * doc: 更新资源文件 Co-authored-by: alex chow <zhouchuanglin@gmail.com>
- Loading branch information
1 parent
2bf1be4
commit 817e0c9
Showing
6 changed files
with
108 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,3 +56,4 @@ Foos | |
Localizer | ||
onchange | ||
Render | ||
nowrap |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
179 changes: 89 additions & 90 deletions
179
src/BootstrapBlazor/Components/Timeline/Timeline.razor.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,95 +1,94 @@ | ||
.timeline { | ||
.timeline { | ||
--bb-timeline-item-padding: #{$bb-timeline-item-padding}; | ||
--bb-timeline-line-width: #{$bb-timeline-line-width}; | ||
--bb-timeline-node-bg: #{$bb-timeline-node-bg}; | ||
--bb-timeline-timestamp-color: #{$bb-timeline-timestamp-color}; | ||
margin: 0; | ||
padding: 0; | ||
list-style: none; | ||
} | ||
|
||
.timeline .time-line-item { | ||
position: relative; | ||
padding-bottom: 1rem; | ||
} | ||
|
||
.timeline .time-line-item:last-child { | ||
padding-bottom: 0; | ||
} | ||
|
||
.timeline .time-line-item .time-line-item-tail { | ||
position: absolute; | ||
left: 4px; | ||
height: 100%; | ||
border-left: 2px solid #e4e7ed; | ||
} | ||
|
||
.timeline .time-line-item:last-child .time-line-item-tail { | ||
display: none | ||
} | ||
|
||
.timeline .timeline-item-node-normal { | ||
left: -1px; | ||
width: 12px; | ||
height: 12px; | ||
} | ||
|
||
.timeline .timeline-item-node { | ||
position: absolute; | ||
background-color: #e4e7ed; | ||
border-radius: 50%; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
|
||
.timeline .timeline-item-node.is-icon { | ||
background-color: transparent; | ||
} | ||
|
||
.timeline .timeline-item-wrapper { | ||
position: relative; | ||
padding-left: 1.5rem; | ||
top: -4px; | ||
} | ||
|
||
.timeline .timeline-item-content { | ||
color: #303133; | ||
} | ||
|
||
.timeline .timeline-item-timestamp { | ||
margin-top: 0.5rem; | ||
color: #909399; | ||
} | ||
|
||
.timeline.is-alternate .time-line-item-tail, | ||
.timeline.is-alternate .timeline-item-node { | ||
left: 50%; | ||
} | ||
|
||
.timeline.is-alternate .timeline-item-node { | ||
margin-left: -5px; | ||
} | ||
|
||
.timeline.is-alternate .time-line-item:nth-child(odd) .timeline-item-wrapper { | ||
left: calc(50% - 5px); | ||
width: calc(50% - 1rem); | ||
text-align: left; | ||
} | ||
|
||
.timeline.is-alternate .time-line-item:nth-child(even) .timeline-item-wrapper { | ||
width: calc(50% - 1rem); | ||
margin: 0; | ||
text-align: right; | ||
} | ||
|
||
.timeline.is-left .time-line-item-tail, | ||
.timeline.is-left .timeline-item-node { | ||
left: 100%; | ||
} | ||
|
||
.timeline.is-left .timeline-item-node { | ||
margin-left: -5px; | ||
} | ||
|
||
.timeline.is-left .time-line-item .timeline-item-wrapper { | ||
width: calc(100% - 1rem); | ||
margin: 0; | ||
text-align: right; | ||
} | ||
.timeline .time-line-item { | ||
position: relative; | ||
} | ||
|
||
.timeline .time-line-item:not(:last-child) { | ||
padding: var(--bb-timeline-item-padding); | ||
} | ||
|
||
.timeline .time-line-item .time-line-item-tail { | ||
position: absolute; | ||
left: 4px; | ||
height: 100%; | ||
border-left: var(--bb-timeline-line-width) solid var(--bs-border-color); | ||
} | ||
|
||
.timeline .time-line-item:last-child .time-line-item-tail { | ||
display: none | ||
} | ||
|
||
.timeline .timeline-item-node-normal { | ||
left: -1px; | ||
width: 12px; | ||
height: 12px; | ||
} | ||
|
||
.timeline .timeline-item-node { | ||
position: absolute; | ||
background-color: var(--bb-timeline-node-bg); | ||
border-radius: 50%; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
|
||
.timeline .timeline-item-node.is-icon { | ||
background-color: transparent; | ||
} | ||
|
||
.timeline .timeline-item-wrapper { | ||
position: relative; | ||
padding-left: 1.5rem; | ||
top: -4px; | ||
} | ||
|
||
.timeline .timeline-item-timestamp { | ||
margin-top: 0.5rem; | ||
color: var(--bb-timeline-timestamp-color); | ||
} | ||
|
||
.timeline.is-alternate .time-line-item-tail, | ||
.timeline.is-alternate .timeline-item-node { | ||
left: 50%; | ||
} | ||
|
||
.timeline.is-alternate .timeline-item-node { | ||
margin-left: -5px; | ||
} | ||
|
||
.timeline.is-alternate .time-line-item:nth-child(odd) .timeline-item-wrapper { | ||
left: calc(50% - 5px); | ||
width: calc(50% - 1rem); | ||
text-align: left; | ||
} | ||
|
||
.timeline.is-alternate .time-line-item:nth-child(even) .timeline-item-wrapper { | ||
width: calc(50% - 1rem); | ||
margin: 0; | ||
text-align: right; | ||
} | ||
|
||
.timeline.is-left .time-line-item-tail, | ||
.timeline.is-left .timeline-item-node { | ||
left: 100%; | ||
} | ||
|
||
.timeline.is-left .timeline-item-node { | ||
margin-left: -5px; | ||
} | ||
|
||
.timeline.is-left .time-line-item .timeline-item-wrapper { | ||
width: calc(100% - 1rem); | ||
margin: 0; | ||
text-align: right; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters