Implement review comments.
* fix click events in whats new box * extract color codes * add min-width of @grid-max ... and other smaller changes.
This commit is contained in:
Родитель
50d16c3aba
Коммит
236c8ee826
|
@ -104,7 +104,7 @@
|
|||
{% endfor %}
|
||||
</div>
|
||||
<div class="DevHub-MyAddons-item-buttons">
|
||||
<a href="{{ url('devhub.addons') }}">{{ _('View All Submissions') }}</a>
|
||||
<a class="DevHub-MyAddons-item-buttons-all" href="{{ url('devhub.addons') }}">{{ _('View All Submissions') }}</a>
|
||||
<div class="DevHub-MyAddons-item-buttons-submit">
|
||||
<a href="{{ url('devhub.submit.agreement') }}" class="Button">{{ _('Submit a New Add-on') }}</a>
|
||||
<a href="{{ url('devhub.themes.submit') }}" class="Button">{{ _('Submit a New Theme') }}</a>
|
||||
|
|
|
@ -39,6 +39,15 @@
|
|||
@color-button-default: #0996F8;
|
||||
@color-button-primary: #29c978;
|
||||
|
||||
// State colors in 'My Addons'
|
||||
@color-version-state-disabled: #9b9898;
|
||||
@color-version-state-nominated: #ff9216;
|
||||
@color-version-state-approved: #329902;
|
||||
@color-version-state-admin-disabled: #d92215;
|
||||
|
||||
@color-publish-channel-listed: #01bdad;
|
||||
@color-publish-channel-unlisted: #7a2f7a;
|
||||
|
||||
// Common styles
|
||||
* {
|
||||
font-family: @font-primary;
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
.DevHub-MyAddons {
|
||||
min-width: @grid-max;
|
||||
}
|
||||
|
||||
.DevHub-MyAddons-copy {
|
||||
max-width: 32em;
|
||||
}
|
||||
|
@ -17,11 +21,6 @@
|
|||
.DevHub-MyAddons-item-details {
|
||||
margin-left: 25px;
|
||||
|
||||
.DevHub-MyAddons-item-name {
|
||||
font-size: 24px;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
a {
|
||||
margin-left: 5px;
|
||||
font-size: 15px;
|
||||
|
@ -33,38 +32,43 @@
|
|||
&.DevHub-MyAddons-version-status-rejected,
|
||||
&.DevHub-MyAddons-version-status-disabled,
|
||||
&.DevHub-MyAddons-version-status-none {
|
||||
color: #9b9898;
|
||||
color: @color-version-state-disabled;
|
||||
}
|
||||
|
||||
&.DevHub-MyAddons-version-status-nominated {
|
||||
color: #ff9216;
|
||||
color: @color-version-state-nominated;
|
||||
}
|
||||
|
||||
&.DevHub-MyAddons-version-status-approved {
|
||||
color: #329902;
|
||||
color: @color-version-state-approved;
|
||||
}
|
||||
|
||||
&.DevHub-MyAddons-version-status-admin-disabled {
|
||||
color: #d92215;
|
||||
color: @color-version-state-admin-disabled;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.DevHub-MyAddons-item-channel-listed,
|
||||
.DevHub-MyAddons-item-channel-unlisted {
|
||||
border-radius: 4px;
|
||||
padding: 2px 5px;
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
color: #fff;
|
||||
}
|
||||
.DevHub-MyAddons-item-name {
|
||||
font-size: 24px;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.DevHub-MyAddons-item-channel-listed {
|
||||
background-color: #01bdad;
|
||||
}
|
||||
.DevHub-MyAddons-item-channel-listed,
|
||||
.DevHub-MyAddons-item-channel-unlisted {
|
||||
border-radius: 4px;
|
||||
padding: 2px 5px;
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.DevHub-MyAddons-item-channel-unlisted {
|
||||
background-color: #7a2f7a;
|
||||
}
|
||||
.DevHub-MyAddons-item-channel-listed {
|
||||
background-color: @color-publish-channel-listed;
|
||||
}
|
||||
|
||||
.DevHub-MyAddons-item-channel-unlisted {
|
||||
background-color: @color-publish-channel-unlisted;
|
||||
}
|
||||
|
||||
.DevHub-MyAddons-item-icon {
|
||||
|
@ -87,16 +91,16 @@
|
|||
flex-direction: row;
|
||||
align-items: flex-start;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
> a:first-child {
|
||||
font-size: 15px;
|
||||
text-decoration: none;
|
||||
color: @color-button-default;
|
||||
}
|
||||
.DevHub-MyAddons-item-buttons-all-submissions {
|
||||
font-size: 15px;
|
||||
text-decoration: none;
|
||||
color: @color-button-default;
|
||||
}
|
||||
|
||||
.DevHub-MyAddons-item-buttons-submit {
|
||||
margin-left: auto;
|
||||
}
|
||||
.DevHub-MyAddons-item-buttons-submit {
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.DevHub-MyAddons-whatsnew-container {
|
||||
|
@ -122,6 +126,7 @@
|
|||
height: 170px;
|
||||
left: -8px;
|
||||
top: 28px;
|
||||
pointer-events: none;
|
||||
|
||||
@media @retina {
|
||||
background-image: url("../../../img/developers/new-landing/whatsnew-rocket-2x.png");
|
||||
|
|
Загрузка…
Ссылка в новой задаче