Skip to content

Commit

Permalink
more css changes
Browse files Browse the repository at this point in the history
  • Loading branch information
hueitan committed Jun 28, 2024
1 parent 34e5bcb commit b3cec6b
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 24 deletions.
4 changes: 2 additions & 2 deletions src/link/language-selector.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ export const LanguageSelector = ( { setLanguageSelector, setLang, lang } ) => {
setValue( target );
setItems( filterLanguages( target, lang ) );
} }
placeholder={ __( 'Search languages', 'wikipedia-preview' ) }
placeholder={ __( 'Search for a language', 'wikipedia-preview' ) }
autoFocus={ true } // eslint-disable-line jsx-a11y/no-autofocus
/>
<div className="wikipediapreview-edit-inline-language-selector-search-icon" />
{ ! value ? (
<div className="wikipediapreview-edit-inline-language-selector-label">
{ __( 'All languages', 'wikipedia-preview' ) }
{ __( 'Suggested languages', 'wikipedia-preview' ) }
</div>
) : null }
<div className="wikipediapreview-edit-inline-language-selector-results">
Expand Down
43 changes: 21 additions & 22 deletions src/link/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ body {
}

&-input {
margin: 30px 10px 30px;
margin: 20px 12px;

input {
padding-left: 35px !important;
Expand All @@ -32,11 +32,6 @@ body {
padding-right: 140px !important;
}
}

@media screen and (max-width: 782px) {
padding-right: 20px;
}

}

&-icon {
Expand All @@ -45,7 +40,7 @@ body {
height: 20px;
position: absolute;
bottom: 5px;
left: 18px;
left: 22px;

@media screen and (max-width: 782px) {
bottom: 10px;
Expand All @@ -62,8 +57,7 @@ body {
justify-content: space-between;

@media screen and (max-width: 782px) {
top: 84px;
right: 28px;
top: 74px;
}
}

Expand Down Expand Up @@ -161,7 +155,7 @@ body {
&-item {
position: relative;
height: 60px;
padding: 10px;
padding: 10px 10px 10px 12px;

&:hover,
&.hovered {
Expand All @@ -184,7 +178,7 @@ body {
&-title {
position: absolute;
width: calc(100% - 70px);
left: 60px;
left: 62px;
font-size: 15px;
font-weight: 700;
line-height: 20px;
Expand All @@ -196,7 +190,7 @@ body {
&-description {
position: absolute;
width: calc(100% - 70px);
left: 60px;
left: 62px;
bottom: 10px;
color: #72777d;
font-size: 13px;
Expand All @@ -217,13 +211,19 @@ body {
overflow: hidden;
z-index: 1000;

@media screen and (max-width: 782px) {
width: 100%;
}

&-header {
display: flex;
justify-content: space-between;
padding: 16px;
font-size: 16px;
font-weight: 700;
line-height: 19.55px;
color: #202122;
border-bottom: 1px solid #c8ccd1;

&-close {
background-image: url(./images/close-view.svg);
Expand All @@ -234,8 +234,7 @@ body {
}

&-input {
width: 100%;
padding-right: 1px;
margin: 20px 12px;

/* stylelint-disable-next-line no-descending-specificity */
input {
Expand All @@ -252,11 +251,11 @@ body {
width: 20px;
height: 20px;
position: absolute;
top: 60px;
left: 8px;
top: 80px;
left: 20px;

@media screen and (max-width: 782px) {
top: 62px;
top: 82px;
}
}

Expand All @@ -273,7 +272,7 @@ body {
flex-direction: column;
flex-wrap: wrap;
max-height: 235px;
padding: 15px 30px 30px 15px;
padding: 7px 30px 30px 15px;

&-item {
margin-right: 15px;
Expand All @@ -297,7 +296,7 @@ body {
}

@media screen and (max-width: 782px) {
top: -185px;
top: 60px;
}
}

Expand Down Expand Up @@ -394,23 +393,23 @@ body {
&-change {
width: 20px;
height: 20px;
margin-bottom: 5px;
margin-bottom: 2px;
background-image: url(./images/search-white.svg);
background-repeat: no-repeat;
background-position: center;
}
&-sections {
width: 20px;
height: 20px;
margin-bottom: 5px;
margin-bottom: 2px;
background-image: url(./images/article-white.svg);
background-repeat: no-repeat;
background-position: center;
}
&-remove {
width: 20px;
height: 20px;
margin-bottom: 5px;
margin-bottom: 2px;
background-image: url(./images/remove-white.svg);
background-repeat: no-repeat;
background-position: center;
Expand Down

0 comments on commit b3cec6b

Please sign in to comment.