Adjustments to the create group form to match mockup specs.
Strip out css for form input from component css file. Created global form input css. Padding adjustments.
This commit is contained in:
@@ -1,51 +1,25 @@
|
||||
.group-form {
|
||||
padding: 15px;
|
||||
@include gab-container-standards();
|
||||
.group-form__input {
|
||||
height: 40px;
|
||||
padding: 0 15px;
|
||||
display: block;
|
||||
color: $primary-text-color;
|
||||
background: none;
|
||||
border: 1px solid $secondary-text-color;
|
||||
border-radius: 4px;
|
||||
margin-bottom: 10px;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
|
||||
&:focus {
|
||||
outline: none;
|
||||
border-color: $primary-text-color;
|
||||
}
|
||||
}
|
||||
|
||||
.group-form__file-label {
|
||||
font-size: 13px;
|
||||
color: $secondary-text-color;
|
||||
cursor: pointer;
|
||||
|
||||
&:hover {
|
||||
color: $primary-text-color;
|
||||
}
|
||||
|
||||
.fa {
|
||||
font-size: 18px;
|
||||
margin-right: 5px;
|
||||
transform: translatey(2px);
|
||||
}
|
||||
|
||||
&.group-form__file-label--selected {
|
||||
color: $primary-text-color;
|
||||
}
|
||||
}
|
||||
|
||||
.group-form__file {
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
overflow: hidden;
|
||||
opacity: 0;
|
||||
position: absolute;
|
||||
pointer-events: none;
|
||||
}
|
||||
button {float: right;}
|
||||
}
|
||||
padding: 20px;
|
||||
@include gab-container-standards();
|
||||
.group-form__file-label {
|
||||
font-size: 13px;
|
||||
color: $secondary-text-color;
|
||||
cursor: pointer;
|
||||
&:hover {color: $primary-text-color;}
|
||||
.fa {
|
||||
font-size: 18px;
|
||||
margin-right: 5px;
|
||||
transform: translatey(2px);
|
||||
}
|
||||
&.group-form__file-label--selected {color: $primary-text-color;}
|
||||
}
|
||||
.group-form__file {
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
overflow: hidden;
|
||||
opacity: 0;
|
||||
position: absolute;
|
||||
pointer-events: none;
|
||||
}
|
||||
button {float: right;}
|
||||
}
|
||||
34
app/javascript/styles/gabsocial/components/inputs.scss
Normal file
34
app/javascript/styles/gabsocial/components/inputs.scss
Normal file
@@ -0,0 +1,34 @@
|
||||
input {
|
||||
&.standard {
|
||||
&[type='text'] {
|
||||
border: 1px solid;
|
||||
corner-radius: 4px;
|
||||
@include font-size(16);
|
||||
border-color: $gab-placeholder-accent;
|
||||
background: $gab-background-container;
|
||||
body.theme-gabsocial-light & {
|
||||
border-color: $gab-secondary-text;
|
||||
background: $gab-background-base-light;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// .group-form__input {
|
||||
// height: 40px;
|
||||
// padding: 0 15px;
|
||||
// display: block;
|
||||
// color: $primary-text-color;
|
||||
// background: none;
|
||||
// border: 1px solid $secondary-text-color;
|
||||
// border-radius: 4px;
|
||||
// margin-bottom: 10px;
|
||||
// width: 100%;
|
||||
// box-sizing: border-box;
|
||||
|
||||
// &:focus {
|
||||
// outline: none;
|
||||
// border-color: $primary-text-color;
|
||||
// }
|
||||
// }
|
||||
Reference in New Issue
Block a user