mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 01:22:36 +08:00
Improving title selection on badge pages
This commit is contained in:
parent
dda248f5df
commit
c684843c53
|
@ -8,10 +8,11 @@
|
|||
<div class='title'>
|
||||
<h3>{{bg.badgeGrouping.displayName}}</h3>
|
||||
</div>
|
||||
|
||||
{{#each bg.badges as |b|}}
|
||||
{{badge-card badge=b filterUser=b.has_badge username=currentUser.username}}
|
||||
{{/each}}
|
||||
<div class="badge-group-list">
|
||||
{{#each bg.badges as |b|}}
|
||||
{{badge-card badge=b filterUser=b.has_badge username=currentUser.username}}
|
||||
{{/each}}
|
||||
</div>
|
||||
</div>
|
||||
{{/each}}
|
||||
</div>
|
||||
|
|
|
@ -206,7 +206,7 @@
|
|||
vertical-align: top;
|
||||
flex: 0 0 32%;
|
||||
margin-right: calc(2% - 3px);
|
||||
&:nth-of-type(3n+1) {
|
||||
&:nth-of-type(3n) {
|
||||
margin-right: 0;
|
||||
}
|
||||
@include small-width {
|
||||
|
@ -228,8 +228,10 @@
|
|||
}
|
||||
&.large {
|
||||
width: 100%;
|
||||
align-self: flex-start;
|
||||
@media screen and (min-width: 767px) {
|
||||
max-width: calc(#{$large-width} / 2);
|
||||
margin-right: 1.5em;
|
||||
}
|
||||
.badge-contents {
|
||||
.badge-link {
|
||||
|
@ -251,7 +253,6 @@
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
.badge-groups {
|
||||
margin: 20px 0;
|
||||
color: dark-light-choose($primary-medium, $secondary-medium);
|
||||
|
@ -260,7 +261,13 @@
|
|||
}
|
||||
}
|
||||
|
||||
.badge-grouping {
|
||||
.badge-title {
|
||||
.user-content {
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.badge-group-list {
|
||||
margin-bottom: 1.5em;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
|
@ -282,20 +289,11 @@
|
|||
margin-top: 1em;
|
||||
|
||||
.badge-grant-info {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
@media screen and (max-width: 500px) {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
div:not(.grant-info-item) {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
&.hidden {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.grant-info-item {
|
||||
margin-bottom: 1em;
|
||||
color: dark-light-choose($primary-medium, $secondary-medium);
|
||||
|
@ -304,12 +302,24 @@
|
|||
}
|
||||
}
|
||||
|
||||
.badge-title .form-horizontal .controls {
|
||||
margin-left: 20px;
|
||||
.badge-set-title {
|
||||
padding: 1.5em;
|
||||
border: 1px solid $primary-low;
|
||||
|
||||
.user-content {
|
||||
padding: 0;
|
||||
.control-group {
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.close-btn {
|
||||
margin: -20px 0 0 20px;
|
||||
.badge-title .form-horizontal .controls {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.form-horizontal {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user