|
| 1 | +import { makeStyles, tokens } from '@fluentui/react-components' |
| 2 | +import { mobileTouchTarget } from '../../styles/touchTargets' |
| 3 | + |
| 4 | +export const useAttackOrchestrationViewStyles = makeStyles({ |
| 5 | + root: { |
| 6 | + display: 'flex', |
| 7 | + flexDirection: 'column', |
| 8 | + width: '100%', |
| 9 | + height: '100%', |
| 10 | + minWidth: 0, |
| 11 | + overflow: 'hidden', |
| 12 | + backgroundColor: tokens.colorNeutralBackground2, |
| 13 | + }, |
| 14 | + breadcrumbBar: { |
| 15 | + display: 'flex', |
| 16 | + alignItems: 'center', |
| 17 | + flexShrink: 0, |
| 18 | + minHeight: '36px', |
| 19 | + paddingInline: tokens.spacingHorizontalL, |
| 20 | + borderBottom: `1px solid ${tokens.colorNeutralStroke2}`, |
| 21 | + backgroundColor: tokens.colorNeutralBackground3, |
| 22 | + overflowX: 'auto', |
| 23 | + }, |
| 24 | + breadcrumbLink: { |
| 25 | + color: tokens.colorBrandForegroundLink, |
| 26 | + textDecorationLine: 'none', |
| 27 | + whiteSpace: 'nowrap', |
| 28 | + ':hover': { |
| 29 | + textDecorationLine: 'underline', |
| 30 | + }, |
| 31 | + ':focus-visible': { |
| 32 | + outline: `2px solid ${tokens.colorStrokeFocus2}`, |
| 33 | + outlineOffset: '2px', |
| 34 | + }, |
| 35 | + }, |
| 36 | + scrollArea: { |
| 37 | + flex: 1, |
| 38 | + minWidth: 0, |
| 39 | + overflowY: 'auto', |
| 40 | + }, |
| 41 | + content: { |
| 42 | + display: 'flex', |
| 43 | + flexDirection: 'column', |
| 44 | + gap: tokens.spacingVerticalXXL, |
| 45 | + width: 'min(960px, 100%)', |
| 46 | + marginInline: 'auto', |
| 47 | + padding: `${tokens.spacingVerticalXXL} ${tokens.spacingHorizontalXXL}`, |
| 48 | + boxSizing: 'border-box', |
| 49 | + '@media (max-width: 600px)': { |
| 50 | + gap: tokens.spacingVerticalXL, |
| 51 | + padding: `${tokens.spacingVerticalL} ${tokens.spacingHorizontalL}`, |
| 52 | + }, |
| 53 | + }, |
| 54 | + summary: { |
| 55 | + display: 'flex', |
| 56 | + flexDirection: 'column', |
| 57 | + gap: tokens.spacingVerticalM, |
| 58 | + }, |
| 59 | + titleRow: { |
| 60 | + display: 'flex', |
| 61 | + alignItems: 'flex-start', |
| 62 | + justifyContent: 'space-between', |
| 63 | + gap: tokens.spacingHorizontalL, |
| 64 | + '@media (max-width: 600px)': { |
| 65 | + flexDirection: 'column', |
| 66 | + gap: tokens.spacingVerticalS, |
| 67 | + }, |
| 68 | + }, |
| 69 | + title: { |
| 70 | + margin: 0, |
| 71 | + color: tokens.colorNeutralForeground1, |
| 72 | + fontSize: tokens.fontSizeHero800, |
| 73 | + lineHeight: tokens.lineHeightHero800, |
| 74 | + fontWeight: tokens.fontWeightSemibold, |
| 75 | + letterSpacing: '-0.02em', |
| 76 | + overflowWrap: 'anywhere', |
| 77 | + '@media (max-width: 600px)': { |
| 78 | + fontSize: tokens.fontSizeHero700, |
| 79 | + lineHeight: tokens.lineHeightHero700, |
| 80 | + }, |
| 81 | + }, |
| 82 | + description: { |
| 83 | + maxWidth: '72ch', |
| 84 | + color: tokens.colorNeutralForeground2, |
| 85 | + lineHeight: tokens.lineHeightBase400, |
| 86 | + }, |
| 87 | + facts: { |
| 88 | + display: 'grid', |
| 89 | + gridTemplateColumns: 'repeat(3, minmax(0, 1fr))', |
| 90 | + gap: `${tokens.spacingVerticalL} ${tokens.spacingHorizontalXXL}`, |
| 91 | + margin: 0, |
| 92 | + paddingBlock: tokens.spacingVerticalL, |
| 93 | + borderTop: `1px solid ${tokens.colorNeutralStroke2}`, |
| 94 | + borderBottom: `1px solid ${tokens.colorNeutralStroke2}`, |
| 95 | + '@media (max-width: 760px)': { |
| 96 | + gridTemplateColumns: 'repeat(2, minmax(0, 1fr))', |
| 97 | + }, |
| 98 | + '@media (max-width: 480px)': { |
| 99 | + gridTemplateColumns: '1fr', |
| 100 | + }, |
| 101 | + }, |
| 102 | + fact: { |
| 103 | + display: 'flex', |
| 104 | + flexDirection: 'column', |
| 105 | + gap: tokens.spacingVerticalXS, |
| 106 | + minWidth: 0, |
| 107 | + '& dt': { |
| 108 | + color: tokens.colorNeutralForeground3, |
| 109 | + fontSize: tokens.fontSizeBase200, |
| 110 | + }, |
| 111 | + '& dd': { |
| 112 | + margin: 0, |
| 113 | + color: tokens.colorNeutralForeground1, |
| 114 | + fontSize: tokens.fontSizeBase300, |
| 115 | + fontWeight: tokens.fontWeightSemibold, |
| 116 | + overflowWrap: 'anywhere', |
| 117 | + }, |
| 118 | + }, |
| 119 | + objectiveFact: { |
| 120 | + gridColumn: '1 / -1', |
| 121 | + '& dd': { |
| 122 | + fontWeight: tokens.fontWeightRegular, |
| 123 | + maxWidth: '72ch', |
| 124 | + }, |
| 125 | + }, |
| 126 | + attemptsSection: { |
| 127 | + display: 'flex', |
| 128 | + flexDirection: 'column', |
| 129 | + gap: tokens.spacingVerticalM, |
| 130 | + }, |
| 131 | + sectionHeading: { |
| 132 | + margin: 0, |
| 133 | + color: tokens.colorNeutralForeground1, |
| 134 | + fontSize: tokens.fontSizeBase500, |
| 135 | + lineHeight: tokens.lineHeightBase500, |
| 136 | + fontWeight: tokens.fontWeightSemibold, |
| 137 | + }, |
| 138 | + sectionDescription: { |
| 139 | + maxWidth: '72ch', |
| 140 | + color: tokens.colorNeutralForeground2, |
| 141 | + }, |
| 142 | + loading: { |
| 143 | + display: 'flex', |
| 144 | + justifyContent: 'flex-start', |
| 145 | + paddingBlock: tokens.spacingVerticalXL, |
| 146 | + }, |
| 147 | + attemptList: { |
| 148 | + display: 'flex', |
| 149 | + flexDirection: 'column', |
| 150 | + margin: 0, |
| 151 | + padding: 0, |
| 152 | + listStyleType: 'none', |
| 153 | + borderTop: `1px solid ${tokens.colorNeutralStroke2}`, |
| 154 | + }, |
| 155 | + attemptRow: { |
| 156 | + display: 'grid', |
| 157 | + gridTemplateColumns: 'minmax(0, 1fr) auto', |
| 158 | + alignItems: 'center', |
| 159 | + gap: tokens.spacingHorizontalL, |
| 160 | + paddingBlock: tokens.spacingVerticalL, |
| 161 | + borderBottom: `1px solid ${tokens.colorNeutralStroke2}`, |
| 162 | + '@media (max-width: 600px)': { |
| 163 | + gridTemplateColumns: '1fr', |
| 164 | + gap: tokens.spacingVerticalM, |
| 165 | + }, |
| 166 | + }, |
| 167 | + attemptInfo: { |
| 168 | + display: 'flex', |
| 169 | + flexDirection: 'column', |
| 170 | + gap: tokens.spacingVerticalXS, |
| 171 | + minWidth: 0, |
| 172 | + }, |
| 173 | + attemptTitleRow: { |
| 174 | + display: 'flex', |
| 175 | + alignItems: 'center', |
| 176 | + flexWrap: 'wrap', |
| 177 | + gap: tokens.spacingHorizontalS, |
| 178 | + }, |
| 179 | + attemptName: { |
| 180 | + color: tokens.colorNeutralForeground1, |
| 181 | + fontWeight: tokens.fontWeightSemibold, |
| 182 | + overflowWrap: 'anywhere', |
| 183 | + }, |
| 184 | + attemptMeta: { |
| 185 | + color: tokens.colorNeutralForeground2, |
| 186 | + fontSize: tokens.fontSizeBase200, |
| 187 | + overflowWrap: 'anywhere', |
| 188 | + }, |
| 189 | + childLink: { |
| 190 | + ...mobileTouchTarget, |
| 191 | + display: 'inline-flex', |
| 192 | + alignItems: 'center', |
| 193 | + justifyContent: 'center', |
| 194 | + color: tokens.colorBrandForegroundLink, |
| 195 | + fontWeight: tokens.fontWeightSemibold, |
| 196 | + textDecorationLine: 'none', |
| 197 | + paddingInline: tokens.spacingHorizontalM, |
| 198 | + borderRadius: tokens.borderRadiusMedium, |
| 199 | + whiteSpace: 'nowrap', |
| 200 | + ':hover': { |
| 201 | + color: tokens.colorBrandForegroundLinkHover, |
| 202 | + backgroundColor: tokens.colorSubtleBackgroundHover, |
| 203 | + textDecorationLine: 'underline', |
| 204 | + }, |
| 205 | + ':focus-visible': { |
| 206 | + outline: `2px solid ${tokens.colorStrokeFocus2}`, |
| 207 | + outlineOffset: '2px', |
| 208 | + }, |
| 209 | + '@media (max-width: 600px)': { |
| 210 | + justifySelf: 'stretch', |
| 211 | + }, |
| 212 | + }, |
| 213 | +}) |
0 commit comments