Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace fomantic divider module with our own #25539

Merged
merged 13 commits into from
Jun 29, 2023
2 changes: 1 addition & 1 deletion templates/repo/activity.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@

{{if gt .Activity.PublishedReleaseCount 0}}
<h4 class="ui horizontal divider header" id="published-releases">
<span class="text">{{svg "octicon-tag"}}</span>
<span class="text">{{svg "octicon-tag" 16 "gt-mr-3"}}</span>
{{.locale.Tr "repo.activity.title.releases_published_by"
(.locale.TrN .Activity.PublishedReleaseCount "repo.activity.title.releases_1" "repo.activity.title.releases_n" .Activity.PublishedReleaseCount)
(.locale.TrN .Activity.PublishedReleaseAuthorCount "repo.activity.title.user_1" "repo.activity.title.user_n" .Activity.PublishedReleaseAuthorCount)
Expand Down
5 changes: 0 additions & 5 deletions web_src/css/admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@
flex-wrap: wrap;
}

/* divider needs explicit width because the parent container is "display: flex" */
.admin dl.admin-dl-horizontal .ui.divider {
width: 100%;
}

.admin dl.admin-dl-horizontal dt,
.admin dl.admin-dl-horizontal dd {
line-height: 1;
Expand Down
9 changes: 0 additions & 9 deletions web_src/css/base.css
silverwind marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -448,15 +448,6 @@ a.label,
background-color: var(--color-markup-code-block);
}

.ui.divider {
color: var(--color-text);
}

.ui.divider:not(.vertical,.horizontal) {
border-top-color: var(--color-secondary) !important;
border-bottom: none !important;
}

.ui.dividing.header {
border-bottom-color: var(--color-secondary);
}
Expand Down
1 change: 1 addition & 0 deletions web_src/css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
@import "./modules/comment.css";
@import "./modules/navbar.css";
@import "./modules/toast.css";
@import "./modules/divider.css";

@import "./shared/issuelist.css";
@import "./shared/milestone.css";
Expand Down
36 changes: 36 additions & 0 deletions web_src/css/modules/divider.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
.ui.divider {
margin: 1rem 0;
line-height: 1;
height: 0;
font-weight: var(--font-weight-medium);
text-transform: uppercase;
color: var(--color-text);
font-size: 1rem;
width: 100%;
}

.ui.divider:not(.horizontal) {
border-top: 1px solid var(--color-secondary);
}

.ui.horizontal.divider {
display: flex;
align-items: center;
padding: 7px 0;
}

.ui.horizontal.divider::before,
.ui.horizontal.divider::after {
content: "";
height: 1px;
silverwind marked this conversation as resolved.
Show resolved Hide resolved
flex: 1;
border-bottom: 1px solid var(--color-secondary);
}

.ui.horizontal.divider::before {
margin-right: .75em;
}

.ui.horizontal.divider::after {
margin-left: .75em;
}
7 changes: 2 additions & 5 deletions web_src/css/repo.css
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,6 @@
background-color: var(--color-header-wrapper);
}

.repository .header-wrapper .ui.tabs.divider {
border-bottom: 0;
}

.repository .header-wrapper .ui.tabular .svg {
margin-right: 5px;
}
Expand Down Expand Up @@ -591,6 +587,7 @@

.repository.options .danger .ui.divider {
margin: 0;
border-color: var(--color-error-border);
}

.repository.new.issue .comment.form .comment .avatar {
Expand Down Expand Up @@ -1012,7 +1009,7 @@

.repository.view.issue .comment-list .comment .merge-section .divider {
margin-left: -1rem;
margin-right: -1rem;
width: calc(100% + 2rem);
}

.repository.view.issue .comment-list .comment .merge-section.no-header::before,
Expand Down
Loading