@jupyterlab/git
Version:
A JupyterLab extension for version control using git
49 lines (48 loc) • 1.15 kB
JavaScript
import { style } from 'typestyle';
import { sectionAreaStyle } from './GitStageStyle';
export const stashContainerStyle = style((() => {
const styled = {
flexShrink: 0,
$nest: {}
};
styled.$nest[`& > .${sectionAreaStyle}`] = {
margin: 0
};
return styled;
})());
export const sectionHeaderLabelStyle = style({
fontSize: 'var(--jp-ui-font-size1)',
flex: '1 1 auto',
textOverflow: 'ellipsis',
overflow: 'hidden',
whiteSpace: 'nowrap',
display: 'flex',
justifyContent: 'space-between',
alignSelf: 'flex-start'
});
export const sectionButtonContainerStyle = style({
display: 'flex',
flexDirection: 'row',
alignItems: 'center',
flex: '0 0 auto',
height: '100%'
});
export const stashFileStyle = style({
display: 'flex',
padding: '0 4px'
});
export const listStyle = style({
overflowX: 'hidden',
$nest: {
'&>*': {
margin: 0,
padding: 0
}
}
});
export const stashEntryMessageStyle = style({
textOverflow: 'ellipsis',
overflow: 'hidden',
whiteSpace: 'nowrap',
display: 'inline-block'
});