Skip to content

Commit

Permalink
Merge pull request #44 from shoota/optimize_globl_style
Browse files Browse the repository at this point in the history
refactor: optimize global style
  • Loading branch information
shoota authored May 11, 2024
2 parents e370d0d + 4137f16 commit 8031f05
Showing 1 changed file with 2 additions and 60 deletions.
62 changes: 2 additions & 60 deletions src/lib/theme/globals.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,11 @@ export const global = css`
color: ${colors.link};
outline: none;
text-decoration: none;
transition: color 100ms ease-out;
:hover,
:focus {
color: #e3daa0;
text-shadow: 0 0 2px ${colors.link};
color: ${colors.link};
text-shadow: 0 0 4px ${colors.link};
}
}
a h1,
Expand Down Expand Up @@ -159,7 +158,6 @@ export const global = css`
padding: 5px 8px;
}
tr {
-webkit-transition: background-color 100ms ease-out;
transition: background-color 100ms ease-out;
}
img {
Expand Down Expand Up @@ -230,33 +228,11 @@ export const global = css`
line-height: 30px;
color: #ffc69f;
background-color: transparent;
-webkit-transition:
border-color 100ms ease-out,
background-color 100ms ease-out,
box-shadow 100ms ease-out;
transition:
border-color 100ms ease-out,
background-color 100ms ease-out,
box-shadow 100ms ease-out;
}
textarea::-webkit-input-placeholder {
color: rgba(255, 198, 159, 0.5);
}
textarea::-moz-placeholder {
color: rgba(255, 198, 159, 0.5);
}
textarea:-ms-input-placeholder {
color: rgba(255, 198, 159, 0.5);
}
select::-webkit-input-placeholder {
color: rgba(255, 198, 159, 0.5);
}
select::-moz-placeholder {
color: rgba(255, 198, 159, 0.5);
}
select:-ms-input-placeholder {
color: rgba(255, 198, 159, 0.5);
}
input::placeholder,
textarea::placeholder,
select::placeholder {
Expand All @@ -281,33 +257,6 @@ export const global = css`
box-shadow: none;
cursor: auto;
}
input:disabled::-webkit-input-placeholder {
color: #0b8481;
}
input:disabled::-moz-placeholder {
color: #0b8481;
}
input:disabled:-ms-input-placeholder {
color: #0b8481;
}
textarea:disabled::-webkit-input-placeholder {
color: #0b8481;
}
textarea:disabled::-moz-placeholder {
color: #0b8481;
}
textarea:disabled:-ms-input-placeholder {
color: #0b8481;
}
select:disabled::-webkit-input-placeholder {
color: #0b8481;
}
select:disabled::-moz-placeholder {
color: #0b8481;
}
select:disabled:-ms-input-placeholder {
color: #0b8481;
}
input:disabled::placeholder,
textarea:disabled::placeholder,
select:disabled::placeholder {
Expand All @@ -321,13 +270,6 @@ export const global = css`
input {
overflow: visible;
}
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
border-style: none;
padding: 0;
}
progress {
vertical-align: baseline;
}
Expand Down

0 comments on commit 8031f05

Please sign in to comment.