Fixed #373 - Ability to add scaling inputs by group

pull/388/head
cagataycivici 2020-07-10 15:30:01 +03:00
parent 19822e01fe
commit 1de9117d2d
34 changed files with 341 additions and 1 deletions

View File

@ -819,6 +819,16 @@
background-color: #383838; background-color: #383838;
} }
.p-inputtext-sm .p-inputtext {
font-size: 0.875rem;
padding: 0.4375rem 0.4375rem;
}
.p-inputtext-lg .p-inputtext {
font-size: 1.25rem;
padding: 0.625rem 0.625rem;
}
.p-listbox { .p-listbox {
background: #1e1e1e; background: #1e1e1e;
color: rgba(255, 255, 255, 0.87); color: rgba(255, 255, 255, 0.87);

View File

@ -819,6 +819,16 @@
background-color: #383838; background-color: #383838;
} }
.p-inputtext-sm .p-inputtext {
font-size: 0.875rem;
padding: 0.4375rem 0.4375rem;
}
.p-inputtext-lg .p-inputtext {
font-size: 1.25rem;
padding: 0.625rem 0.625rem;
}
.p-listbox { .p-listbox {
background: #1e1e1e; background: #1e1e1e;
color: rgba(255, 255, 255, 0.87); color: rgba(255, 255, 255, 0.87);

View File

@ -819,6 +819,16 @@
background-color: #383838; background-color: #383838;
} }
.p-inputtext-sm .p-inputtext {
font-size: 0.875rem;
padding: 0.4375rem 0.4375rem;
}
.p-inputtext-lg .p-inputtext {
font-size: 1.25rem;
padding: 0.625rem 0.625rem;
}
.p-listbox { .p-listbox {
background: #1e1e1e; background: #1e1e1e;
color: rgba(255, 255, 255, 0.87); color: rgba(255, 255, 255, 0.87);

View File

@ -819,6 +819,16 @@
background-color: #383838; background-color: #383838;
} }
.p-inputtext-sm .p-inputtext {
font-size: 0.875rem;
padding: 0.4375rem 0.4375rem;
}
.p-inputtext-lg .p-inputtext {
font-size: 1.25rem;
padding: 0.625rem 0.625rem;
}
.p-listbox { .p-listbox {
background: #1e1e1e; background: #1e1e1e;
color: rgba(255, 255, 255, 0.87); color: rgba(255, 255, 255, 0.87);

View File

@ -819,6 +819,16 @@
background-color: #3f4b5b; background-color: #3f4b5b;
} }
.p-inputtext-sm .p-inputtext {
font-size: 0.875rem;
padding: 0.4375rem 0.65625rem;
}
.p-inputtext-lg .p-inputtext {
font-size: 1.25rem;
padding: 0.625rem 0.9375rem;
}
.p-listbox { .p-listbox {
background: #2a323d; background: #2a323d;
color: rgba(255, 255, 255, 0.87); color: rgba(255, 255, 255, 0.87);

View File

@ -819,6 +819,16 @@
background-color: #3f4b5b; background-color: #3f4b5b;
} }
.p-inputtext-sm .p-inputtext {
font-size: 0.875rem;
padding: 0.4375rem 0.65625rem;
}
.p-inputtext-lg .p-inputtext {
font-size: 1.25rem;
padding: 0.625rem 0.9375rem;
}
.p-listbox { .p-listbox {
background: #2a323d; background: #2a323d;
color: rgba(255, 255, 255, 0.87); color: rgba(255, 255, 255, 0.87);

View File

@ -819,6 +819,16 @@
background-color: rgba(0, 0, 0, 0.03); background-color: rgba(0, 0, 0, 0.03);
} }
.p-inputtext-sm .p-inputtext {
font-size: 0.875rem;
padding: 0.4375rem 0.65625rem;
}
.p-inputtext-lg .p-inputtext {
font-size: 1.25rem;
padding: 0.625rem 0.9375rem;
}
.p-listbox { .p-listbox {
background: #ffffff; background: #ffffff;
color: #212529; color: #212529;

View File

@ -819,6 +819,16 @@
background-color: rgba(0, 0, 0, 0.03); background-color: rgba(0, 0, 0, 0.03);
} }
.p-inputtext-sm .p-inputtext {
font-size: 0.875rem;
padding: 0.4375rem 0.65625rem;
}
.p-inputtext-lg .p-inputtext {
font-size: 1.25rem;
padding: 0.625rem 0.9375rem;
}
.p-listbox { .p-listbox {
background: #ffffff; background: #ffffff;
color: #212529; color: #212529;

View File

@ -819,6 +819,16 @@
background-color: #4b4b4b; background-color: #4b4b4b;
} }
.p-inputtext-sm .p-inputtext {
font-size: 0.875rem;
padding: 0.375375rem 0.375375rem;
}
.p-inputtext-lg .p-inputtext {
font-size: 1.25rem;
padding: 0.53625rem 0.53625rem;
}
.p-listbox { .p-listbox {
background: #323232; background: #323232;
color: #dedede; color: #dedede;

View File

@ -819,6 +819,16 @@
background-color: #4b4b4b; background-color: #4b4b4b;
} }
.p-inputtext-sm .p-inputtext {
font-size: 0.875rem;
padding: 0.375375rem 0.375375rem;
}
.p-inputtext-lg .p-inputtext {
font-size: 1.25rem;
padding: 0.53625rem 0.53625rem;
}
.p-listbox { .p-listbox {
background: #323232; background: #323232;
color: #dedede; color: #dedede;

View File

@ -819,6 +819,16 @@
background-color: #4b4b4b; background-color: #4b4b4b;
} }
.p-inputtext-sm .p-inputtext {
font-size: 0.875rem;
padding: 0.375375rem 0.375375rem;
}
.p-inputtext-lg .p-inputtext {
font-size: 1.25rem;
padding: 0.53625rem 0.53625rem;
}
.p-listbox { .p-listbox {
background: #323232; background: #323232;
color: #dedede; color: #dedede;

View File

@ -819,6 +819,16 @@
background-color: #4b4b4b; background-color: #4b4b4b;
} }
.p-inputtext-sm .p-inputtext {
font-size: 0.875rem;
padding: 0.375375rem 0.375375rem;
}
.p-inputtext-lg .p-inputtext {
font-size: 1.25rem;
padding: 0.53625rem 0.53625rem;
}
.p-listbox { .p-listbox {
background: #323232; background: #323232;
color: #dedede; color: #dedede;

View File

@ -839,6 +839,16 @@
background-color: rgba(255, 255, 255, 0.1); background-color: rgba(255, 255, 255, 0.1);
} }
.p-inputtext-sm .p-inputtext {
font-size: 0.875rem;
padding: 0.875rem 0.875rem;
}
.p-inputtext-lg .p-inputtext {
font-size: 1.25rem;
padding: 1.25rem 1.25rem;
}
.p-listbox { .p-listbox {
background: #1e1e1e; background: #1e1e1e;
color: rgba(255, 255, 255, 0.87); color: rgba(255, 255, 255, 0.87);

View File

@ -839,6 +839,16 @@
background-color: rgba(255, 255, 255, 0.1); background-color: rgba(255, 255, 255, 0.1);
} }
.p-inputtext-sm .p-inputtext {
font-size: 0.875rem;
padding: 0.875rem 0.875rem;
}
.p-inputtext-lg .p-inputtext {
font-size: 1.25rem;
padding: 1.25rem 1.25rem;
}
.p-listbox { .p-listbox {
background: #1e1e1e; background: #1e1e1e;
color: rgba(255, 255, 255, 0.87); color: rgba(255, 255, 255, 0.87);

View File

@ -839,6 +839,16 @@
background-color: #dcdcdc; background-color: #dcdcdc;
} }
.p-inputtext-sm .p-inputtext {
font-size: 0.875rem;
padding: 0.875rem 0.875rem;
}
.p-inputtext-lg .p-inputtext {
font-size: 1.25rem;
padding: 1.25rem 1.25rem;
}
.p-listbox { .p-listbox {
background: #ffffff; background: #ffffff;
color: #000001; color: #000001;

View File

@ -839,6 +839,16 @@
background-color: #dcdcdc; background-color: #dcdcdc;
} }
.p-inputtext-sm .p-inputtext {
font-size: 0.875rem;
padding: 0.875rem 0.875rem;
}
.p-inputtext-lg .p-inputtext {
font-size: 1.25rem;
padding: 1.25rem 1.25rem;
}
.p-listbox { .p-listbox {
background: #ffffff; background: #ffffff;
color: #000001; color: #000001;

View File

@ -839,6 +839,16 @@
background-color: rgba(255, 255, 255, 0.1); background-color: rgba(255, 255, 255, 0.1);
} }
.p-inputtext-sm .p-inputtext {
font-size: 0.875rem;
padding: 0.65625rem 0.65625rem;
}
.p-inputtext-lg .p-inputtext {
font-size: 1.25rem;
padding: 0.9375rem 0.9375rem;
}
.p-listbox { .p-listbox {
background: #1e1e1e; background: #1e1e1e;
color: rgba(255, 255, 255, 0.87); color: rgba(255, 255, 255, 0.87);

View File

@ -839,6 +839,16 @@
background-color: rgba(255, 255, 255, 0.1); background-color: rgba(255, 255, 255, 0.1);
} }
.p-inputtext-sm .p-inputtext {
font-size: 0.875rem;
padding: 0.65625rem 0.65625rem;
}
.p-inputtext-lg .p-inputtext {
font-size: 1.25rem;
padding: 0.9375rem 0.9375rem;
}
.p-listbox { .p-listbox {
background: #1e1e1e; background: #1e1e1e;
color: rgba(255, 255, 255, 0.87); color: rgba(255, 255, 255, 0.87);

View File

@ -839,6 +839,16 @@
background-color: #dcdcdc; background-color: #dcdcdc;
} }
.p-inputtext-sm .p-inputtext {
font-size: 0.875rem;
padding: 0.65625rem 0.65625rem;
}
.p-inputtext-lg .p-inputtext {
font-size: 1.25rem;
padding: 0.9375rem 0.9375rem;
}
.p-listbox { .p-listbox {
background: #ffffff; background: #ffffff;
color: #000001; color: #000001;

View File

@ -839,6 +839,16 @@
background-color: #dcdcdc; background-color: #dcdcdc;
} }
.p-inputtext-sm .p-inputtext {
font-size: 0.875rem;
padding: 0.65625rem 0.65625rem;
}
.p-inputtext-lg .p-inputtext {
font-size: 1.25rem;
padding: 0.9375rem 0.9375rem;
}
.p-listbox { .p-listbox {
background: #ffffff; background: #ffffff;
color: #000001; color: #000001;

View File

@ -815,6 +815,16 @@
background-color: #f4f4f4; background-color: #f4f4f4;
} }
.p-inputtext-sm .p-inputtext {
font-size: 0.875rem;
padding: 0.375375rem 0.375375rem;
}
.p-inputtext-lg .p-inputtext {
font-size: 1.25rem;
padding: 0.53625rem 0.53625rem;
}
.p-listbox { .p-listbox {
background: #ffffff; background: #ffffff;
color: #333333; color: #333333;

View File

@ -819,6 +819,16 @@
background-color: #f4f4f4; background-color: #f4f4f4;
} }
.p-inputtext-sm .p-inputtext {
font-size: 0.875rem;
padding: 0.375375rem 0.375375rem;
}
.p-inputtext-lg .p-inputtext {
font-size: 1.25rem;
padding: 0.53625rem 0.53625rem;
}
.p-listbox { .p-listbox {
background: #ffffff; background: #ffffff;
color: #333333; color: #333333;

View File

@ -819,6 +819,16 @@
background-color: #f4f4f4; background-color: #f4f4f4;
} }
.p-inputtext-sm .p-inputtext {
font-size: 0.875rem;
padding: 0.375375rem 0.375375rem;
}
.p-inputtext-lg .p-inputtext {
font-size: 1.25rem;
padding: 0.53625rem 0.53625rem;
}
.p-listbox { .p-listbox {
background: #ffffff; background: #ffffff;
color: #333333; color: #333333;

View File

@ -819,6 +819,16 @@
background-color: #f4f4f4; background-color: #f4f4f4;
} }
.p-inputtext-sm .p-inputtext {
font-size: 0.875rem;
padding: 0.375375rem 0.375375rem;
}
.p-inputtext-lg .p-inputtext {
font-size: 1.25rem;
padding: 0.53625rem 0.53625rem;
}
.p-listbox { .p-listbox {
background: #ffffff; background: #ffffff;
color: #333333; color: #333333;

View File

@ -815,6 +815,16 @@
background-color: #f4f4f4; background-color: #f4f4f4;
} }
.p-inputtext-sm .p-inputtext {
font-size: 0.875rem;
padding: 0.375375rem 0.375375rem;
}
.p-inputtext-lg .p-inputtext {
font-size: 1.25rem;
padding: 0.53625rem 0.53625rem;
}
.p-listbox { .p-listbox {
background: #ffffff; background: #ffffff;
color: #666666; color: #666666;

View File

@ -819,6 +819,16 @@
background-color: #f8f9fa; background-color: #f8f9fa;
} }
.p-inputtext-sm .p-inputtext {
font-size: 0.875rem;
padding: 0.4375rem 0.4375rem;
}
.p-inputtext-lg .p-inputtext {
font-size: 1.25rem;
padding: 0.625rem 0.625rem;
}
.p-listbox { .p-listbox {
background: #ffffff; background: #ffffff;
color: #495057; color: #495057;

View File

@ -819,6 +819,16 @@
background-color: #f8f9fa; background-color: #f8f9fa;
} }
.p-inputtext-sm .p-inputtext {
font-size: 0.875rem;
padding: 0.4375rem 0.4375rem;
}
.p-inputtext-lg .p-inputtext {
font-size: 1.25rem;
padding: 0.625rem 0.625rem;
}
.p-listbox { .p-listbox {
background: #ffffff; background: #ffffff;
color: #495057; color: #495057;

View File

@ -819,6 +819,16 @@
background-color: #f8f9fa; background-color: #f8f9fa;
} }
.p-inputtext-sm .p-inputtext {
font-size: 0.875rem;
padding: 0.4375rem 0.4375rem;
}
.p-inputtext-lg .p-inputtext {
font-size: 1.25rem;
padding: 0.625rem 0.625rem;
}
.p-listbox { .p-listbox {
background: #ffffff; background: #ffffff;
color: #495057; color: #495057;

View File

@ -819,6 +819,16 @@
background-color: #f8f9fa; background-color: #f8f9fa;
} }
.p-inputtext-sm .p-inputtext {
font-size: 0.875rem;
padding: 0.4375rem 0.4375rem;
}
.p-inputtext-lg .p-inputtext {
font-size: 1.25rem;
padding: 0.625rem 0.625rem;
}
.p-listbox { .p-listbox {
background: #ffffff; background: #ffffff;
color: #495057; color: #495057;

View File

@ -819,6 +819,16 @@
background-color: #304562; background-color: #304562;
} }
.p-inputtext-sm .p-inputtext {
font-size: 0.875rem;
padding: 0.4375rem 0.4375rem;
}
.p-inputtext-lg .p-inputtext {
font-size: 1.25rem;
padding: 0.625rem 0.625rem;
}
.p-listbox { .p-listbox {
background: #1f2d40; background: #1f2d40;
color: rgba(255, 255, 255, 0.87); color: rgba(255, 255, 255, 0.87);

View File

@ -819,6 +819,16 @@
background-color: #304562; background-color: #304562;
} }
.p-inputtext-sm .p-inputtext {
font-size: 0.875rem;
padding: 0.4375rem 0.4375rem;
}
.p-inputtext-lg .p-inputtext {
font-size: 1.25rem;
padding: 0.625rem 0.625rem;
}
.p-listbox { .p-listbox {
background: #1f2d40; background: #1f2d40;
color: rgba(255, 255, 255, 0.87); color: rgba(255, 255, 255, 0.87);

View File

@ -819,6 +819,16 @@
background-color: #304562; background-color: #304562;
} }
.p-inputtext-sm .p-inputtext {
font-size: 0.875rem;
padding: 0.4375rem 0.4375rem;
}
.p-inputtext-lg .p-inputtext {
font-size: 1.25rem;
padding: 0.625rem 0.625rem;
}
.p-listbox { .p-listbox {
background: #1f2d40; background: #1f2d40;
color: rgba(255, 255, 255, 0.87); color: rgba(255, 255, 255, 0.87);

View File

@ -819,6 +819,16 @@
background-color: #304562; background-color: #304562;
} }
.p-inputtext-sm .p-inputtext {
font-size: 0.875rem;
padding: 0.4375rem 0.4375rem;
}
.p-inputtext-lg .p-inputtext {
font-size: 1.25rem;
padding: 0.625rem 0.625rem;
}
.p-listbox { .p-listbox {
background: #1f2d40; background: #1f2d40;
color: rgba(255, 255, 255, 0.87); color: rgba(255, 255, 255, 0.87);

View File

@ -45,11 +45,21 @@ import InputText from 'primevue/inputtext';
<h5>Sizes</h5> <h5>Sizes</h5>
<p>2 more sizes are available in addition to a regular input, for a smaller input add <i>p-inputtext-sm</i> and for a larger one, use <i>p-inputtext-lg</i>. <p>2 more sizes are available in addition to a regular input, for a smaller input add <i>p-inputtext-sm</i> and for a larger one, use <i>p-inputtext-lg</i>.
Note that these classes should be used to change the size of a particular field, for global scaling see the <router-link to="/theming">theming</router-link> page.</p> Note that these classes are mainly be used to change the size of a particular field, for global scaling see the <router-link to="/theming">theming</router-link> page.</p>
<CodeHighlight> <CodeHighlight>
&lt;InputText type="text" class="p-inputtext-sm" placeholder="Small" /&gt; &lt;InputText type="text" class="p-inputtext-sm" placeholder="Small" /&gt;
&lt;InputText type="text" placeholder="Normal" /&gt; &lt;InputText type="text" placeholder="Normal" /&gt;
&lt;InputText type="text" class="p-inputtext-lg" placeholder="Large" /&gt; &lt;InputText type="text" class="p-inputtext-lg" placeholder="Large" /&gt;
</CodeHighlight>
<p>Instead of repeating the scale classes for each input, sizing can also be applied to a group by adding the
class to a container element so that descendant inputs share the same style easier.</p>
<CodeHighlight>
&lt;div class="p-inputtext-sm"&gt;
&lt;InputText /&gt;
&lt;InputNumber /&gt;
&lt;InputMask /&gt;
&lt;/div&gt;
</CodeHighlight> </CodeHighlight>
<h5>Outlined vs Filled</h5> <h5>Outlined vs Filled</h5>