-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Change plugin manager styles #2405
Conversation
.versionWarning { | ||
background-color: var(--light); | ||
padding: 0 7px; | ||
font-weight: bolder; | ||
margin-top: 5px; | ||
text-transform: lowercase; | ||
padding: 4px; | ||
margin: 0 8px; | ||
font-weight: 700; | ||
font-size: 9px; | ||
line-height: 12px; | ||
text-transform: uppercase; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would this be better as a badge? - I realize that it is currently coded with .versionWarning.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made it as .badge-light. Check it please
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry - I don't see any .badge-light on plugin-manager-component.js
Please point me to where you changed it. oh - I see it in the side-panel.
Also I think there will be some design adjustment to this page - I'll be reviewing that with Natalia on Thursday.
src/app/components/side-panel.js
Outdated
@@ -13,7 +13,6 @@ const css = csjs` | |||
} | |||
.swapitTitle { | |||
margin: 0; | |||
text-transform: uppercase; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets discuss with Natalia about this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Natalia doesn't mind if there are uppercase letters so I made uppercased it again
f13f434
to
3634df0
Compare
@@ -122,11 +122,11 @@ export class SidePanel extends AbstractPanel { | |||
name = profile.displayName ? profile.displayName : profile.name | |||
docLink = profile.documentation ? yo`<a href="${profile.documentation}" class="${css.titleInfo}" title="link to documentation" target="_blank"><i aria-hidden="true" class="fas fa-book"></i></a>` : '' | |||
if (profile.version && profile.version.match(/\b(\w*alpha\w*)\b/g)) { | |||
versionWarning = yo`<small title="Version Alpha" class="${css.versionWarning}">alpha</small>` | |||
versionWarning = yo`<small title="Version Alpha" class="badge-light ${css.versionBadge}">alpha</small>` | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ryestew I added badge here
@@ -38,7 +38,7 @@ const css = csjs` | |||
.titleInfo { | |||
padding-left: 10px; | |||
} | |||
.versionWarning { | |||
.versionBadge { | |||
background-color: var(--light); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ryestew And changed class from .versionWarning to .versionBadge
3634df0
to
c860e2a
Compare
</div> | ||
<p class="${css.description}">${api.profile.description}</p> | ||
</article> | ||
<article id="remixPluginManagerListItem_${name}" class="list-group-item px-2 pt-2 pb-0 plugins-list-group-item" title="${displayName}" > |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we need an indent here. a tab size
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@LianaHus Click "view file" please
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here you see narrowed version
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry but we need a space.
return yo`
blablaba
blablabla
`
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what you have is
return yo`
blablaba
blablabla
`
also why the footer has opacity in dark theme? looks weird and broken to me. |
It's not broken. I made according to design. |
Thanks for the screenshots. |
@LianaHus By "active/inactive module" position problem you mean spaces from left and right sides, don't you? I made those spaces also according to design |
about opacity I know, this is why I tagged Rob too. But Why we have opacity only on dark theme? |
yes, the spaces. I don't mind to have spaces for active/inactive modules" but it is different in different themes? |
<nav class="navbar navbar-expand-lg navbar-light bg-light justify-content-between align-items-center"> | ||
<span class="navbar-brand">Inactive Modules</span> | ||
<span class="badge badge-pill badge-primary" style = "cursor: default;">${inactives.length}</span> | ||
<nav class="plugins-list-header justify-content-start navbar navbar-expand-lg bg-light navbar-light align-items-center px-4 py-3"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
px-4 you added here is braking other themes, can't you fix this in nav classes definitions in a theme directly?
The PR is nearly there and we'd like to merge it soon- these issues are small - so just to summarize:
I've put these issues in the trello board too. |
@@ -126,8 +130,8 @@ export class PluginManagerSettings { | |||
|
|||
render () { | |||
return yo` | |||
<footer class="navbar navbar-light bg-light ${css.permissions}"> | |||
<button onclick="${() => this.openDialog()}" class="btn btn-info">Settings</button> | |||
<footer class="bg-light ${css.permissions} remix-bg-opacity"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this definition of remix-bg-opacity should be defined in the csjs of this file and not in the bootstrap theme. Let me know if you think there is an advantage to leaving it in the theme's css.
I
I think we should leave remix-bg-opacity class because this change should only happen in Ethworks theme |
@LianaHus Done. |
No description provided.