- Polish forms documentation
- Polish scss code
This commit is contained in:
Lucas 2019-12-10 14:56:52 +07:00
parent a6a0aab312
commit bcf6d7c779
8 changed files with 18 additions and 7 deletions

View file

@ -289,6 +289,10 @@ main > aside details[open] summary {
margin-top: 3rem; margin-top: 3rem;
} }
#forms div.grid {
grid-row-gap: 0;
}
/** /**
* Docs: Typography * Docs: Typography
*/ */

File diff suppressed because one or more lines are too long

View file

@ -629,8 +629,7 @@
<button type="submit" aria-label="Example button">Submit</button> <button type="submit" aria-label="Example button">Submit</button>
</form> </form>
<pre><code> <pre><code>&lt;<b>form</b>&gt;
&lt;<b>form</b>&gt;
<em>&lt;!-- Grid --&gt;</em> <em>&lt;!-- Grid --&gt;</em>
&lt;<b>div</b> <i>class</i>=<u>"grid"</u>&gt; &lt;<b>div</b> <i>class</i>=<u>"grid"</u>&gt;

View file

@ -47,7 +47,6 @@ button.switcher {
} }
&:hover { &:hover {
&::after { &::after {
transform: rotate(180deg); transform: rotate(180deg);
} }

View file

@ -2,6 +2,6 @@
* Docs: Document * Docs: Document
*/ */
html{ html {
scroll-behavior:smooth; scroll-behavior:smooth;
} }

View file

@ -121,3 +121,12 @@
margin-top: $spacing-typography*2; margin-top: $spacing-typography*2;
} }
} }
// Docs: Forms
//
#forms {
div.grid {
grid-row-gap: 0;
}
}

View file

@ -209,11 +209,13 @@ input[type="color"] {
// Select // Select
select { select {
// Unstyle the caret on `<select>`s in IE10+. // Unstyle the caret on `<select>`s in IE10+.
&::-ms-expand { &::-ms-expand {
border: 0; border: 0;
background-color: transparent; background-color: transparent;
} }
&:not([multiple]) { &:not([multiple]) {
// Source: https://feathericons.com/ // Source: https://feathericons.com/
$caret-icon-color: "808080"; // Without '#' !important $caret-icon-color: "808080"; // Without '#' !important
@ -236,7 +238,6 @@ input + small {
// Styles for Input inside a label // Styles for Input inside a label
label { label {
& > input:not([type="checkbox"]):not([type="radio"]), & > input:not([type="checkbox"]):not([type="radio"]),
& > select, & > select,
& > textarea { & > textarea {

View file

@ -24,7 +24,6 @@ body {
> header, > header,
> main, > main,
> footer { > footer {
$padding-horizontal: $spacing-gutter !default; $padding-horizontal: $spacing-gutter !default;
$spacing-vertical: $spacing-block !default; $spacing-vertical: $spacing-block !default;
width: 100%; width: 100%;