Skip to content

Commit

Permalink
Merge pull request #235 from WordPress/fix/lint-css
Browse files Browse the repository at this point in the history
Lint all CSS files
  • Loading branch information
madhusudhand authored Feb 21, 2023
2 parents 0015340 + e235eda commit 9efaf5a
Show file tree
Hide file tree
Showing 3 changed files with 86 additions and 89 deletions.
28 changes: 14 additions & 14 deletions src/demo-text-input/demo-text-input.css
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
.demo-text-input {
border-top: 1px solid #ddd;
border-bottom: 1px solid #ddd;
padding: 1rem 0;
margin: 1rem 0;
border-top: 1px solid #ddd;
border-bottom: 1px solid #ddd;
padding: 1rem 0;
margin: 1rem 0;
}

.demo-text-input .container {
display: grid;
column-gap: 1rem;
grid-template-columns: 0.5fr 1fr 0.5fr min-content;
display: grid;
column-gap: 1rem;
grid-template-columns: 0.5fr 1fr 0.5fr min-content;
}

.demo-text-input .container > div:last-child {
display: flex;
flex-direction: column;
justify-content: center;
display: flex;
flex-direction: column;
justify-content: center;
}

.demo-text-input .components-range-control__root {
flex-direction: row-reverse;
flex-direction: row-reverse;
}

.demo-text-input .components-range-control__number {
margin-left: unset !important;
margin-right: 1rem;
}
margin-left: unset !important;
margin-right: 1rem;
}
18 changes: 9 additions & 9 deletions src/google-fonts/google-fonts.css
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
#google-fonts-table {
margin-bottom: 2rem;
margin-bottom: 2rem;
}

#google-fonts-table.widefat thead td input {
margin: 0;
margin: 0;
}

#google-fonts-table tbody td {
vertical-align: middle;
vertical-align: middle;
}

#google-fonts-table tbody p {
font-size: 2rem;
margin: 0;
font-size: 2rem;
margin: 0;
}

#google-fonts-table .demo-cell {
width: 100%;
font-size: 1.7rem;
width: 100%;
font-size: 1.7rem;
}

.select-font {
display: flex;
}
display: flex;
}
129 changes: 63 additions & 66 deletions src/manage-fonts/manage-fonts.css
Original file line number Diff line number Diff line change
@@ -1,131 +1,128 @@
.hidden {
display: none;
visibility: hidden;
.hidden {
display: none;
visibility: hidden;
}

.help {
display: flex;
align-items: center;
gap: 0.5rem;
display: flex;
align-items: center;
gap: 0.5rem;
}

.font-families > table {
margin-bottom: 2rem;
overflow: hidden;
margin-bottom: 2rem;
overflow: hidden;
}

.font-families > table > tbody {
position: relative;
z-index: 1;
position: relative;
z-index: 1;
}

.font-families > table > thead {
cursor: pointer;
position: relative;
z-index: 2;
cursor: pointer;
position: relative;
z-index: 2;
}

.font-families > table > thead .variants-count {
font-size: 0.8rem;
font-weight: 400;
font-size: 0.8rem;
font-weight: 400;
}

.font-families > table > thead td {
font-size: 1.1rem;
font-size: 1.1rem;
}

.font-family-contents .slide {
border-bottom-left-radius: 15px;
margin: 0 0 0 1.5rem;
display: block;
padding: 0;
}

.font-family-contents .container {
overflow: hidden;
display: block;
}

.font-family-contents .slide {
transition: all 0.1s ease-in-out;
border-bottom-left-radius: 15px;
margin: 0 0 0 1.5rem;
display: block;
padding: 0;
transition: all 0.1s ease-in-out;
}

.font-family-contents .slide.open {
transform: translateY(0);
max-height: 999999px;
transform: translateY(0);
max-height: 999999px;
}

.font-family-contents .slide.close {
transform: translateY(-50%);
opacity: 0;
max-height: 0px;
pointer-events: none;
transform: translateY(-50%);
opacity: 0;
max-height: 0;
pointer-events: none;
}

.font-family-contents .container {
overflow: hidden;
display: block;
}

.font-family-contents table {
border-bottom: none;
border-right: none;
border-top: none;
border-bottom: none;
border-right: none;
border-top: none;
}

.font-family-contents .preview-head {
width: 100%;
width: 100%;
}

.font-face .demo-cell input {
font-size: 1.7rem;
line-height: 1.5;
margin: 0;
padding: 0.1em;
border: none;
background: none;
width: 100%;
font-size: 1.7rem;
line-height: 1.5;
margin: 0;
padding: 0.1em;
border: none;
background: none;
width: 100%;
}

.font-family-contents tbody td {
vertical-align: middle;
vertical-align: middle;
}

.widefat td {
padding: .5rem 2rem;
padding: 0.5rem 2rem;
}

td.font-family-head {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem;
background-color: #f6f7f7;
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem;
background-color: #f6f7f7;
}

.font-family-head div:last-of-type {
display: flex;
gap: 1rem;
display: flex;
gap: 1rem;
}

.slide.open {
margin: 0;
border: none;
margin: 0;
border: none;
}

table.widefat.wp-list-table {
border-radius: 2px;
border-radius: 2px;
}

table.widefat table {
border: none;
border: none;
}

.manage-fonts-header-flex {
display: flex;
align-items: flex-end;
display: flex;
align-items: flex-end;
}

.manage-fonts-header-flex .wp-heading-inline+.page-title-action {
margin-left: auto;
.manage-fonts-header-flex .wp-heading-inline + .page-title-action {
margin-left: auto;
}

.components-button.page-title-action {
font-weight: normal;
margin-left: .75rem;
}
font-weight: normal;
margin-left: 0.75rem;
}

0 comments on commit 9efaf5a

Please sign in to comment.