Replace color values with variables for easier theming
Replaced all color values with variables in scss files and added associated variables to _variables.scss file
This commit is contained in:
@@ -5,11 +5,11 @@ select
|
||||
|
||||
padding: 5px 40px 5px 10px;
|
||||
|
||||
border: 2px solid #41444e;
|
||||
border: 2px solid $form-select-border-color;
|
||||
border-radius: 4px;
|
||||
background: #f7f7f7 url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAyMCI+ICAgIDxwYXRoIGQ9Ik0xMy40MTggNy44NTljLjI3MS0uMjY4LjcwOS0uMjY4Ljk3OCAwIC4yNy4yNjguMjcyLjcwMSAwIC45NjlsLTMuOTA4IDMuODNjLS4yNy4yNjgtLjcwNy4yNjgtLjk3OSAwbC0zLjkwOC0zLjgzYy0uMjctLjI2Ny0uMjctLjcwMSAwLS45NjkuMjcxLS4yNjguNzA5LS4yNjguOTc4IDBMMTAgMTFsMy40MTgtMy4xNDF6Ii8+PC9zdmc+) right 10px center no-repeat;
|
||||
background: $form-select-background-color url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAyMCI+ICAgIDxwYXRoIGQ9Ik0xMy40MTggNy44NTljLjI3MS0uMjY4LjcwOS0uMjY4Ljk3OCAwIC4yNy4yNjguMjcyLjcwMSAwIC45NjlsLTMuOTA4IDMuODNjLS4yNy4yNjgtLjcwNy4yNjgtLjk3OSAwbC0zLjkwOC0zLjgzYy0uMjctLjI2Ny0uMjctLjcwMSAwLS45NjkuMjcxLS4yNjguNzA5LS4yNjguOTc4IDBMMTAgMTFsMy40MTgtMy4xNDF6Ii8+PC9zdmc+) right 10px center no-repeat;
|
||||
background-size: 20px;
|
||||
box-shadow: 0 1px 2px 0 rgba(0,0,0,.25);
|
||||
box-shadow: 0 1px 2px 0 rgba($form-select-box-shadow-color, .25);
|
||||
|
||||
@include text_headline();
|
||||
appearance: none;
|
||||
@@ -19,7 +19,7 @@ select
|
||||
margin: 5px 0;
|
||||
padding: 5px;
|
||||
|
||||
background: #f7f7f7;
|
||||
background: $form-select-background-color;
|
||||
}
|
||||
|
||||
&.invalid {
|
||||
@@ -57,9 +57,9 @@ input[type=file]
|
||||
margin: 5px 0;
|
||||
padding: 8px 10px;
|
||||
|
||||
border: 1px solid #d9d9d9;
|
||||
border: 1px solid $form-input-border-color;
|
||||
border-radius: 4px;
|
||||
background: #fff;
|
||||
background: $form-input-background-color;
|
||||
@media (max-width: 768px) {
|
||||
max-width: 175px;
|
||||
}
|
||||
@@ -110,13 +110,13 @@ textarea
|
||||
border: none;
|
||||
border-radius: 4px;
|
||||
outline: none;
|
||||
background: rgba(#fff,.8);
|
||||
background: rgba($form-textarea-background-color,.8);
|
||||
|
||||
@include text_code();
|
||||
|
||||
&:focus
|
||||
{
|
||||
border: 2px solid $_color-get;
|
||||
border: 2px solid $form-textarea-focus-border-color;
|
||||
}
|
||||
|
||||
&.curl
|
||||
@@ -130,9 +130,9 @@ textarea
|
||||
resize: none;
|
||||
|
||||
border-radius: 4px;
|
||||
background: #41444e;
|
||||
background: $form-textarea-curl-background-color;
|
||||
|
||||
@include text_code(#fff);
|
||||
@include text_code($form-textarea-curl-font-color);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -143,7 +143,7 @@ textarea
|
||||
|
||||
transition: opacity .5s;
|
||||
|
||||
color: #333;
|
||||
color: $form-checkbox-label-font-color;
|
||||
|
||||
label
|
||||
{
|
||||
@@ -179,8 +179,8 @@ textarea
|
||||
cursor: pointer;
|
||||
|
||||
border-radius: 1px;
|
||||
background: #e8e8e8;
|
||||
box-shadow: 0 0 0 2px #e8e8e8;
|
||||
background: $form-checkbox-background-color;
|
||||
box-shadow: 0 0 0 2px $form-checkbox-box-shadow-color;
|
||||
|
||||
flex: none;
|
||||
|
||||
@@ -192,7 +192,7 @@ textarea
|
||||
|
||||
&:checked + label > .item
|
||||
{
|
||||
background: #e8e8e8 url(data:image/svg+xml,%0A%3Csvg%20width%3D%2210px%22%20height%3D%228px%22%20viewBox%3D%223%207%2010%208%22%20version%3D%221.1%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20xmlns%3Axlink%3D%22http%3A//www.w3.org/1999/xlink%22%3E%0A%20%20%20%20%3C%21--%20Generator%3A%20Sketch%2042%20%2836781%29%20-%20http%3A//www.bohemiancoding.com/sketch%20--%3E%0A%20%20%20%20%3Cdesc%3ECreated%20with%20Sketch.%3C/desc%3E%0A%20%20%20%20%3Cdefs%3E%3C/defs%3E%0A%20%20%20%20%3Cpolygon%20id%3D%22Rectangle-34%22%20stroke%3D%22none%22%20fill%3D%22%2341474E%22%20fill-rule%3D%22evenodd%22%20points%3D%226.33333333%2015%203%2011.6666667%204.33333333%2010.3333333%206.33333333%2012.3333333%2011.6666667%207%2013%208.33333333%22%3E%3C/polygon%3E%0A%3C/svg%3E) center center no-repeat;
|
||||
background: $form-checkbox-background-color url(data:image/svg+xml,%0A%3Csvg%20width%3D%2210px%22%20height%3D%228px%22%20viewBox%3D%223%207%2010%208%22%20version%3D%221.1%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20xmlns%3Axlink%3D%22http%3A//www.w3.org/1999/xlink%22%3E%0A%20%20%20%20%3C%21--%20Generator%3A%20Sketch%2042%20%2836781%29%20-%20http%3A//www.bohemiancoding.com/sketch%20--%3E%0A%20%20%20%20%3Cdesc%3ECreated%20with%20Sketch.%3C/desc%3E%0A%20%20%20%20%3Cdefs%3E%3C/defs%3E%0A%20%20%20%20%3Cpolygon%20id%3D%22Rectangle-34%22%20stroke%3D%22none%22%20fill%3D%22%2341474E%22%20fill-rule%3D%22evenodd%22%20points%3D%226.33333333%2015%203%2011.6666667%204.33333333%2010.3333333%206.33333333%2012.3333333%2011.6666667%207%2013%208.33333333%22%3E%3C/polygon%3E%0A%3C/svg%3E) center center no-repeat;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user