New buttons with project colors + small bugfix (#80)
Following the discussion on [#74](hmn/hmn#74), here are changes to the submit buttons so that they match theme/project color. Border colors are set to match the button background. I've also included a "bugfix" where the `editor-toolbar-button-background` parameter in the dark theme.css and variables.scss were missing the # sign. I wasn't sure whether to remove the `form button` values from theme.css and variables.scss and left them, as I'm not sure they're used anywhere now Reviewed-on: hmn/hmn#80 Co-authored-by: giggs <darkgiggsxx@gmail.com> Co-committed-by: giggs <darkgiggsxx@gmail.com>
This commit is contained in:
parent
bb48a77b9d
commit
9e786e132d
1877
public/style.css
1877
public/style.css
File diff suppressed because it is too large
Load Diff
|
@ -270,7 +270,7 @@ pre, code, .codeblock {
|
||||||
--landing-search-background-hover: #181818;
|
--landing-search-background-hover: #181818;
|
||||||
--editor-toolbar-background: #282828;
|
--editor-toolbar-background: #282828;
|
||||||
--editor-toolbar-border-color: #333;
|
--editor-toolbar-border-color: #333;
|
||||||
--editor-toolbar-button-background: 282828;
|
--editor-toolbar-button-background: #282828;
|
||||||
--editor-toolbar-button-background-hover: #333;
|
--editor-toolbar-button-background-hover: #333;
|
||||||
--editor-toolbar-button-border-color: #333;
|
--editor-toolbar-button-border-color: #333;
|
||||||
--post-blockquote-border-color: #555;
|
--post-blockquote-border-color: #555;
|
||||||
|
|
|
@ -150,8 +150,8 @@ input, select, textarea {
|
||||||
}
|
}
|
||||||
|
|
||||||
@include usevar('color', 'form-button-color');
|
@include usevar('color', 'form-button-color');
|
||||||
@include usevar('background-color', 'form-button-background');
|
@include usevar('background-color', 'theme-color');
|
||||||
@include usevar('border-color', 'form-button-border-color');
|
@include usevar('border-color', 'theme-color');
|
||||||
|
|
||||||
border-width: 1px;
|
border-width: 1px;
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
|
@ -163,7 +163,8 @@ input, select, textarea {
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
@include usevar('color', 'form-button-color-active');
|
@include usevar('color', 'form-button-color-active');
|
||||||
@include usevar('background-color', 'form-button-background-active');
|
@include usevar('background-color', 'theme-color-dim');
|
||||||
|
@include usevar('border-color', 'theme-color-dim');
|
||||||
}
|
}
|
||||||
|
|
||||||
&.lite {
|
&.lite {
|
||||||
|
|
|
@ -54,6 +54,7 @@
|
||||||
width: 40px;
|
width: 40px;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
|
object-fit: cover;
|
||||||
border-radius: 100%;
|
border-radius: 100%;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
|
|
|
@ -77,7 +77,7 @@ $vars: (
|
||||||
|
|
||||||
editor-toolbar-background: #282828,
|
editor-toolbar-background: #282828,
|
||||||
editor-toolbar-border-color: #333,
|
editor-toolbar-border-color: #333,
|
||||||
editor-toolbar-button-background: 282828,
|
editor-toolbar-button-background: #282828,
|
||||||
editor-toolbar-button-background-hover: #333,
|
editor-toolbar-button-background-hover: #333,
|
||||||
editor-toolbar-button-border-color: #333,
|
editor-toolbar-button-border-color: #333,
|
||||||
|
|
||||||
|
|
|
@ -38,11 +38,20 @@ header .content-title .subtitle {
|
||||||
border-top-color: var(--theme-dim);
|
border-top-color: var(--theme-dim);
|
||||||
}
|
}
|
||||||
|
|
||||||
a, .thread:before, button, .button, input[type=button], input[type=submit] {
|
a, .thread:before, button, .button, input[type=button] {
|
||||||
color: {{ $linkColor }};
|
color: {{ $linkColor }};
|
||||||
color: var(--link-color);
|
color: var(--link-color);
|
||||||
}
|
}
|
||||||
a:hover, button:hover, .button:hover, input[type=button]:hover, input[type=submit]:hover {
|
|
||||||
|
.submit, input[type=submit] {
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
a.submit:hover, .submit:hover, input[type=submit]:hover {
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
a:hover, button:hover, .button:hover, input[type=button]:hover {
|
||||||
color: {{ $linkHoverColor }};
|
color: {{ $linkHoverColor }};
|
||||||
color: var(--link-hover-color);
|
color: var(--link-hover-color);
|
||||||
}
|
}
|
||||||
|
|
|
@ -141,7 +141,7 @@
|
||||||
{{ if .Editing }}
|
{{ if .Editing }}
|
||||||
<input type="submit" value="Save" />
|
<input type="submit" value="Save" />
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<a class="button" href="javascript:;" onclick="gotoTab('description');">Next</a>
|
<a class="button submit" href="javascript:;" onclick="gotoTab('description');">Next</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -196,7 +196,7 @@
|
||||||
{{ if .Editing }}
|
{{ if .Editing }}
|
||||||
<input type="submit" value="Save" />
|
<input type="submit" value="Save" />
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<a class="button" href="javascript:;" onclick="gotoTab('assets');">Next</a>
|
<a class="button submit" href="javascript:;" onclick="gotoTab('assets');">Next</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -137,7 +137,7 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if .OwnProfile }}
|
{{ if .OwnProfile }}
|
||||||
{{ if .CanAddProject }}
|
{{ if .CanAddProject }}
|
||||||
<a href="{{ .NewProjectUrl }}" class="button pv2 ph3">Add New Project</a>
|
<a href="{{ .NewProjectUrl }}" class="button submit pv2 ph3">Add New Project</a>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<span class="c--dim i">You have reached the maximum number of personal projects.</span>
|
<span class="c--dim i">You have reached the maximum number of personal projects.</span>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Reference in New Issue