Update extension border / line styling (#17059)

* updated border styling of tables

* reducing border thickness

* fixing styling for dark mode

* fixing for dark mode

* removing box shadow from checkbox
This commit is contained in:
stuti149
2021-09-30 22:34:07 +05:30
committed by GitHub
parent 5710a53e86
commit 09884789b5
3 changed files with 15 additions and 22 deletions

View File

@@ -555,7 +555,7 @@ export class DashboardWidget {
justifyContent: 'flex-start', justifyContent: 'flex-start',
}).withProps({ }).withProps({
CSSStyles: { CSSStyles: {
'border': '1px solid', 'border': '1px solid rgba(0, 0, 0, 0.1)',
'padding': '15px' 'padding': '15px'
} }
}).component(); }).component();
@@ -812,7 +812,7 @@ export class DashboardWidget {
justifyContent: 'flex-start', justifyContent: 'flex-start',
}).withProps({ }).withProps({
CSSStyles: { CSSStyles: {
'border': '1px solid', 'border': '1px solid rgba(0, 0, 0, 0.1)',
'padding': '15px' 'padding': '15px'
} }
}).component(); }).component();

View File

@@ -446,12 +446,13 @@ export class DatabaseBackupPage extends MigrationWizardPage {
'font-size': '13px', 'font-size': '13px',
'font-weight': 'bold', 'font-weight': 'bold',
'text-align': 'left', 'text-align': 'left',
'border-bottom': '1px solid', 'box-shadow': 'inset 0px -1px 0px #F3F2F1',
}; };
const rowCssStyle: azdata.CssStyles = { const rowCssStyle: azdata.CssStyles = {
'border': 'none', 'border': 'none',
'font-size': '13px', 'font-size': '13px',
'border-bottom': '1px solid', 'box-shadow': 'inset 0px -1px 0px #F3F2F1',
}; };
const networkShareTableText = this._view.modelBuilder.text() const networkShareTableText = this._view.modelBuilder.text()

View File

@@ -11,25 +11,16 @@ import * as constants from '../constants/strings';
import { IconPath, IconPathHelper } from '../constants/iconPathHelper'; import { IconPath, IconPathHelper } from '../constants/iconPathHelper';
import { debounce } from '../api/utils'; import { debounce } from '../api/utils';
const headerLeft: azdata.CssStyles = { const styleLeft: azdata.CssStyles = {
'border': 'none', 'border': 'none',
'text-align': 'left', 'text-align': 'left',
'white-space': 'nowrap', 'white-space': 'nowrap',
'text-overflow': 'ellipsis', 'text-overflow': 'ellipsis',
'overflow': 'hidden', 'overflow': 'hidden',
'border-bottom': '1px solid' 'box-shadow': '0px -1px 0px 0px rgba(243, 242, 241, 1) inset'
}; };
const headerRight: azdata.CssStyles = { const styleCheckBox: azdata.CssStyles = {
'border': 'none',
'text-align': 'right',
'white-space': 'nowrap',
'text-overflow': 'ellipsis',
'overflow': 'hidden',
'border-bottom': '1px solid'
};
const styleLeft: azdata.CssStyles = {
'border': 'none', 'border': 'none',
'text-align': 'left', 'text-align': 'left',
'white-space': 'nowrap', 'white-space': 'nowrap',
@@ -43,6 +34,7 @@ const styleRight: azdata.CssStyles = {
'white-space': 'nowrap', 'white-space': 'nowrap',
'text-overflow': 'ellipsis', 'text-overflow': 'ellipsis',
'overflow': 'hidden', 'overflow': 'hidden',
'box-shadow': '0px -1px 0px 0px rgba(243, 242, 241, 1) inset'
}; };
export class DatabaseSelectorPage extends MigrationWizardPage { export class DatabaseSelectorPage extends MigrationWizardPage {
@@ -186,7 +178,7 @@ export class DatabaseSelectorPage extends MigrationWizardPage {
this._databaseTableValues.push([ this._databaseTableValues.push([
{ {
value: false, value: false,
style: styleLeft, style: styleCheckBox,
enabled: selectable enabled: selectable
}, },
{ {
@@ -250,7 +242,7 @@ export class DatabaseSelectorPage extends MigrationWizardPage {
width: 20, width: 20,
isReadOnly: false, isReadOnly: false,
showCheckAll: true, showCheckAll: true,
headerCssStyles: headerLeft, headerCssStyles: styleCheckBox
}, },
{ {
displayName: constants.DATABASE, displayName: constants.DATABASE,
@@ -259,28 +251,28 @@ export class DatabaseSelectorPage extends MigrationWizardPage {
valueType: azdata.DeclarativeDataType.string, valueType: azdata.DeclarativeDataType.string,
width: '100%', width: '100%',
isReadOnly: true, isReadOnly: true,
headerCssStyles: headerLeft headerCssStyles: styleLeft
}, },
{ {
displayName: constants.STATUS, displayName: constants.STATUS,
valueType: azdata.DeclarativeDataType.string, valueType: azdata.DeclarativeDataType.string,
width: 100, width: 100,
isReadOnly: true, isReadOnly: true,
headerCssStyles: headerLeft headerCssStyles: styleLeft
}, },
{ {
displayName: constants.SIZE, displayName: constants.SIZE,
valueType: azdata.DeclarativeDataType.string, valueType: azdata.DeclarativeDataType.string,
width: 125, width: 125,
isReadOnly: true, isReadOnly: true,
headerCssStyles: headerRight headerCssStyles: styleRight
}, },
{ {
displayName: constants.LAST_BACKUP, displayName: constants.LAST_BACKUP,
valueType: azdata.DeclarativeDataType.string, valueType: azdata.DeclarativeDataType.string,
width: 150, width: 150,
isReadOnly: true, isReadOnly: true,
headerCssStyles: headerLeft headerCssStyles: styleLeft
} }
] ]
} }