Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /var/www/html/beximco/mrp/mrp/.cache/admin/src/components/Roles/ContentTypeCollapse/Collapse/ drwxrwxrwx | |
| Viewing file: Select action/file-type: import styled from 'styled-components';
import { Text } from '@buffetjs/core';
import ConditionsButton from '../../ConditionsButton';
import Chevron from '../../Chevron';
const activeRowStyle = (theme, isActive) => `
border: 1px solid ${theme.main.colors.darkBlue};
background-color: ${theme.main.colors.lightBlue};
color: ${theme.main.colors.mediumBlue};
border-radius: ${isActive ? '2px 2px 0 0' : '2px'};
${Text} {
color: ${theme.main.colors.mediumBlue};
}
${Chevron} {
display: block;
}
${ConditionsButton} {
display: block;
}
`;
const StyledRow = styled.div`
display: flex;
align-items: center;
height: 36px;
background-color: ${({ isGrey, theme }) =>
isGrey ? theme.main.colors.content.background : theme.main.colors.white};
border: 1px solid transparent;
${ConditionsButton} {
display: none;
}
${({ isActive, theme }) => isActive && activeRowStyle(theme, isActive)}
&:hover {
${({ theme, isActive }) => activeRowStyle(theme, isActive)}
}
`;
export default StyledRow;
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0062 ]-- |