Skip to content

Add modern equivalents of legacy IE-only CSS rules/properties #25205

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Apr 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tgui/packages/tgui-panel/styles/tgchat/chat-dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ img {
margin: 0;
padding: 0;
line-height: 1;
-ms-interpolation-mode: nearest-neighbor;
-ms-interpolation-mode: nearest-neighbor; // TODO: Remove with 516
image-rendering: pixelated;
}

Expand Down
8 changes: 1 addition & 7 deletions tgui/packages/tgui-panel/styles/tgchat/chat-light.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ img {
margin: 0;
padding: 0;
line-height: 1;
-ms-interpolation-mode: nearest-neighbor;
-ms-interpolation-mode: nearest-neighbor; // TODO: Remove with 516
image-rendering: pixelated;
}

Expand Down Expand Up @@ -183,12 +183,6 @@ a.popt {
padding: 2px 0;
}

.filterMessages input {
}

.filterMessages label {
}

.icon-stack {
height: 1em;
line-height: 1em;
Expand Down
3 changes: 2 additions & 1 deletion tgui/packages/tgui/components/NanoMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ export class NanoMap extends Component {
top: '50%',
left: '50%',
transform: 'translate(-50%, -50%)',
'-ms-interpolation-mode': 'nearest-neighbor',
'-ms-interpolation-mode': 'nearest-neighbor', // TODO: Remove with 516
'image-rendering': 'pixelated',
};

return (
Expand Down
3 changes: 2 additions & 1 deletion tgui/packages/tgui/interfaces/CloningConsole.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ const CloningConsoleMain = (props, context) => {
)}
style={{
width: '100%',
'-ms-interpolation-mode': 'nearest-neighbor',
'-ms-interpolation-mode': 'nearest-neighbor', // TODO: Remove with 516
'image-rendering': 'pixelated',
}}
/>
<Button
Expand Down
3 changes: 2 additions & 1 deletion tgui/packages/tgui/interfaces/MedicalRecords.js
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,8 @@ const MedicalRecordsViewGeneral = (_properties, context) => {
width: '96px',
'margin-top': '2.5rem',
'margin-bottom': '0.5rem',
'-ms-interpolation-mode': 'nearest-neighbor',
'-ms-interpolation-mode': 'nearest-neighbor', // TODO: Remove with 516
'image-rendering': 'pixelated',
}}
/>
<br />
Expand Down
9 changes: 6 additions & 3 deletions tgui/packages/tgui/interfaces/PdaPainter.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ const PdaMenu = (props, context) => {
width: '32px',
margin: '0px',
'margin-left': '0px',
'-ms-interpolation-mode': 'nearest-neighbor',
'-ms-interpolation-mode': 'nearest-neighbor', // TODO: Remove with 516
'image-rendering': 'pixelated',
}}
/>
</Table.Cell>
Expand All @@ -83,7 +84,8 @@ const PdaImage = (props, context) => {
width: '160px',
margin: '0px',
'margin-left': '0px',
'-ms-interpolation-mode': 'nearest-neighbor',
'-ms-interpolation-mode': 'nearest-neighbor', // TODO: Remove with 516
'image-rendering': 'pixelated',
}}
/>
<Button
Expand All @@ -110,7 +112,8 @@ const PdaImage = (props, context) => {
width: '160px',
margin: '0px',
'margin-left': '0px',
'-ms-interpolation-mode': 'nearest-neighbor',
'-ms-interpolation-mode': 'nearest-neighbor', // TODO: Remove with 516
'image-rendering': 'pixelated',
}}
/>
</Section>
Expand Down
3 changes: 2 additions & 1 deletion tgui/packages/tgui/interfaces/SecurityRecords.js
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,8 @@ const SecurityRecordsViewGeneral = (_properties, context) => {
width: '96px',
'margin-top': '5rem',
'margin-bottom': '0.5rem',
'-ms-interpolation-mode': 'nearest-neighbor',
'-ms-interpolation-mode': 'nearest-neighbor', // TODO: Remove with 516
'image-rendering': 'pixelated',
}}
/>
<br />
Expand Down
3 changes: 2 additions & 1 deletion tgui/packages/tgui/interfaces/StripMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,8 @@ export const StripMenu = (props, context) => {
height="100%"
width="100%"
style={{
'-ms-interpolation-mode': 'nearest-neighbor',
'-ms-interpolation-mode': 'nearest-neighbor', // TODO: Remove with 516
'image-rendering': 'pixelated',
'vertical-align': 'middle',
}}
/>
Expand Down
3 changes: 2 additions & 1 deletion tgui/packages/tgui/interfaces/pda/pda_mob_hunt.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ export const pda_mob_hunt = (props, context) => {
src={resolveAsset(entry.sprite)}
style={{
width: '64px',
'-ms-interpolation-mode': 'nearest-neighbor',
'-ms-interpolation-mode': 'nearest-neighbor', // TODO: Remove with 516
'image-rendering': 'pixelated',
}}
/>
</Flex.Item>
Expand Down
2 changes: 1 addition & 1 deletion tgui/packages/tgui/styles/components/Button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ $bg-map: colors.$bg-map !default;
margin-bottom: base.em(2px);
// Disable selection in buttons
user-select: none;
-ms-user-select: none;
-ms-user-select: none; // TODO: Remove with 516

&:last-child {
margin-right: 0;
Expand Down
2 changes: 1 addition & 1 deletion tgui/packages/tgui/styles/components/Flex.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/

.Flex {
display: -ms-flexbox;
display: -ms-flexbox; // TODO: Remove with 516
display: flex;
}

Expand Down
15 changes: 15 additions & 0 deletions tgui/packages/tgui/styles/components/Input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,14 @@ $border-radius: base.$border-radius !default;
color: $text-color;
color: inherit;

&::placeholder {
font-style: italic;
color: #777;
color: rgba(255, 255, 255, 0.45);
}

// TODO: Remove with 516

&:-ms-input-placeholder {
font-style: italic;
color: #777;
Expand All @@ -95,6 +103,13 @@ $border-radius: base.$border-radius !default;
overflow: auto;
white-space: pre-wrap;

&::placeholder {
font-style: italic;
color: #777;
color: rgba(255, 255, 255, 0.45);
}

// TODO: Remove with 516
&:-ms-input-placeholder {
font-style: italic;
color: #777;
Expand Down
7 changes: 7 additions & 0 deletions tgui/packages/tgui/styles/components/TextArea.scss
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,13 @@ $border-radius: Input.$border-radius !default;
word-wrap: break-word;
overflow: hidden;

&::placeholder {
font-style: italic;
color: #777;
color: rgba(255, 255, 255, 0.45);
}

// TODO: Remove with 516
&:-ms-input-placeholder {
font-style: italic;
color: rgba(125, 125, 125, 0.75);
Expand Down
3 changes: 2 additions & 1 deletion tgui/packages/tgui/styles/interfaces/Contractor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@

& > img {
width: 96px;
-ms-interpolation-mode: nearest-neighbor;
-ms-interpolation-mode: nearest-neighbor; // TODO: Remove with 516
image-rendering: pixelated;
}

& > .Button {
Expand Down
6 changes: 4 additions & 2 deletions tgui/packages/tgui/styles/interfaces/Newscaster.scss
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ $_gen_map: (
width: 100px;
border: 1px solid colors.$black;
transition: border-color 0.3s;
-ms-interpolation-mode: nearest-neighbor;
-ms-interpolation-mode: nearest-neighbor; // TODO: Remove with 516
image-rendering: pixelated;

&:hover {
border-color: color.scale(colors.$black, $lightness: 50%);
Expand All @@ -154,7 +155,8 @@ $_gen_map: (

& > img {
transform: scale(2);
-ms-interpolation-mode: nearest-neighbor;
-ms-interpolation-mode: nearest-neighbor; // TODO: Remove with 516
image-rendering: pixelated;
}

& > .Button {
Expand Down
2 changes: 1 addition & 1 deletion tgui/packages/tgui/styles/layouts/TitleBar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ $shadow-color: rgba(0, 0, 0, 0.1) !default;
box-shadow: 0 2px 2px $shadow-color;
box-shadow: 0 base.rem(2px) base.rem(2px) $shadow-color;
user-select: none;
-ms-user-select: none;
-ms-user-select: none; // TODO: Remove with 516
}

.TitleBar__clickable {
Expand Down
7 changes: 7 additions & 0 deletions tgui/packages/tgui/styles/themes/paper.scss
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,13 @@ $font-size: 24px;
color: #fff;
color: inherit;

&::placeholder {
font-style: italic;
color: #777;
color: rgba(255, 255, 255, 0.45);
}

// TODO: Remove with 516
&:-ms-input-placeholder {
font-style: italic;
color: #777;
Expand Down
2 changes: 1 addition & 1 deletion tgui/public/tgui-panel.bundle.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tgui/public/tgui-panel.bundle.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading