mirror of
https://github.com/picocss/pico.git
synced 2025-04-26 03:06:14 -04:00
Small CSS improvements
- Helper (<small>) for <select> and <textarea> - Better roll for a.contrast
This commit is contained in:
parent
195e0c6b6b
commit
6cc98ad873
12 changed files with 43 additions and 15 deletions
|
@ -225,9 +225,13 @@ form small {
|
|||
color: var(--muted-text);
|
||||
}
|
||||
|
||||
input + small {
|
||||
margin-top: -$spacing-typography/1.5;
|
||||
margin-bottom: $spacing-typography;
|
||||
input,
|
||||
select,
|
||||
textarea {
|
||||
+ small {
|
||||
margin-top: -$spacing-typography/1.5;
|
||||
margin-bottom: $spacing-typography;
|
||||
}
|
||||
}
|
||||
|
||||
// Styles for Input inside a label
|
||||
|
|
|
@ -115,7 +115,9 @@ a {
|
|||
&:hover,
|
||||
&:active,
|
||||
&:focus {
|
||||
box-shadow: inset 0 -.33rem 0 var(--contrast-border-h);
|
||||
color: var(--contrast-hover);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
&:focus {
|
||||
|
@ -179,7 +181,7 @@ hgroup {
|
|||
*{
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
|
||||
> *:last-child {
|
||||
color: var(--muted-text);
|
||||
font-size: 1.125rem;
|
||||
|
|
|
@ -31,7 +31,8 @@
|
|||
--contrast: #{$grey-100};
|
||||
--contrast-hover: #{$white};
|
||||
--contrast-focus: #{rgba($grey-600, .25)};
|
||||
--contrast-border: #{rgba($amber-200, .33)}; // For links
|
||||
--contrast-border: #{rgba($amber-200, .33)}; // Links underline for
|
||||
--contrast-border-h: #{rgba($amber-200, .5)}; // Links hover underline
|
||||
--contrast-inverse: #{darken($grey-900, 6%)};
|
||||
|
||||
// Form elements
|
||||
|
|
|
@ -31,7 +31,8 @@
|
|||
--contrast: #{$grey-800};
|
||||
--contrast-hover: #{mix($grey-900, $black)};
|
||||
--contrast-focus: #{rgba($grey-500, .125)};
|
||||
--contrast-border: #{rgba($amber-200, .5)}; // For links
|
||||
--contrast-border: #{rgba($amber-200, .5)}; // Links underline
|
||||
--contrast-border-h: #{rgba($amber-200, 1)}; // Links hover underline
|
||||
--contrast-inverse: #{$white};
|
||||
|
||||
// Form elements
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue