add help texts to settings and style content links properly

This commit is contained in:
Benedikt Rötsch
2017-10-05 13:32:03 +02:00
committed by Benedikt Rötsch
parent 6482c7733e
commit d037ccca29
5 changed files with 34 additions and 7 deletions

View File

@@ -34,7 +34,7 @@
--fh-button-min-width: 200px; --fh-button-min-width: 200px;
--fh-button-font-color: var(--cta-color); --fh-button-font-color: var(--cta-color);
--fh-button-bg-color: var(--cta-bg); --fh-button-bg-color: var(--cta-bg);
--fh-button-hover-bg-color: color(var(--fh-button-bg-color) tint(20%)); --fh-button-hover-bg-color: var(--cta-bg-hover);
--fh-button-hover-font-color: var(--fh-button-font-color); --fh-button-hover-font-color: var(--fh-button-font-color);
/* Layout */ /* Layout */

View File

@@ -13,3 +13,15 @@ a {
color: inherit; color: inherit;
text-decoration: none; text-decoration: none;
} }
p, label, .form-item {
& a {
color: var(--color-link-content);
text-decoration: underline;
&:hover {
color: var(--color-link-content-hover);
text-decoration: underline;
}
}
}

View File

@@ -23,6 +23,7 @@
--color-text-error: var(--color-palette-red); --color-text-error: var(--color-palette-red);
--color-link-content: var(--color-palette-blue); --color-link-content: var(--color-palette-blue);
--color-link-content-hover: var(--color-palette-blue-medium);
--color-bg-default: #fff; --color-bg-default: #fff;
--color-bg-grey: #f7f9fa; --color-bg-grey: #f7f9fa;
@@ -54,5 +55,6 @@
--cta-color: #fff; --cta-color: #fff;
--cta-bg: var(--color-palette-blue); --cta-bg: var(--color-palette-blue);
--cta-bg-hover: var(--color-palette-blue-medium);
--cta-radius: 3px; --cta-radius: 3px;
} }

View File

@@ -514,6 +514,16 @@ a {
text-decoration: none; text-decoration: none;
} }
p a, label a, .form-item a {
color: #5c9fef;
text-decoration: underline;
}
p a:hover, label a:hover, .form-item a:hover {
color: #3c80cf;
text-decoration: underline;
}
/* Based on FormHack v1.2.0 (formhack.io) */ /* Based on FormHack v1.2.0 (formhack.io) */
/* But with some custom modifications */ /* But with some custom modifications */
@@ -734,7 +744,7 @@ option:focus {
button:focus, button:focus,
.cta:focus { .cta:focus {
background-color: rgb(125, 178, 242); background-color: #3c80cf;
color: #fff; color: #fff;
} }
@@ -753,7 +763,7 @@ input[type="submit"]:focus,
input[type="reset"]:focus, input[type="reset"]:focus,
.cta:hover, .cta:hover,
.cta:focus { .cta:focus {
background-color: rgb(125, 178, 242); background-color: #3c80cf;
color: #fff; color: #fff;
} }

View File

@@ -25,7 +25,7 @@ block content
if 'space' in errors if 'space' in errors
each message in errors.space each message in errors.space
.form-item__error-message= message .form-item__error-message= message
.form-item__help-text Some help text we still need to define .form-item__help-text The Space ID is a unique identifier for your space.
.form-item .form-item
label(for="cda") Delivery API key label(for="cda") Delivery API key
@@ -33,15 +33,18 @@ block content
if 'cda' in errors if 'cda' in errors
each message in errors.cda each message in errors.cda
.form-item__error-message= message .form-item__error-message= message
.form-item__help-text Some help text we still need to define .form-item__help-text
| This key is used to connect to our 
a(href='https://www.contentful.com/developers/docs/references/content-delivery-api/' target='_blank' rel='noopener') Delivery API.
.form-item .form-item
label(for="cpa") Preview API key label(for="cpa") Preview API key
input(type="text" name="cpa" value=settings.cpa) input(type="text" name="cpa" value=settings.cpa)
if 'cpa' in errors if 'cpa' in errors
each message in errors.cpa each message in errors.cpa
.form-item__error-message= message .form-item__error-message= message
.form-item__help-text Some help text we still need to define .form-item__help-text
| This key is used to connect to our 
a(href='https://www.contentful.com/developers/docs/references/content-preview-api/' target='_blank' rel='noopener') Preview API.
.form-item .form-item
input.cta(type="submit" value="Load settings") input.cta(type="submit" value="Load settings")