Skip to content

Commit

Permalink
🔥 Cleanup styles #2563 (#2723)
Browse files Browse the repository at this point in the history
* 🔥 Cleanup styles #2563

* Refactor to tailwind
  • Loading branch information
padms authored Dec 19, 2024
1 parent 1e0e9fe commit 17af922
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 247 deletions.
243 changes: 0 additions & 243 deletions web/styles/components/cookieBot.ts

This file was deleted.

23 changes: 23 additions & 0 deletions web/styles/components/cookiebot.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#CybotCookiebotDialog a,
#CybotCookiebotDialog div,
#CybotCookiebotDialogBodyContentControls,
#CybotCookiebotDialogBodyContentTitle {
font-family: Equinor !important;
}

#CybotCookiebotDialogBodyLevelButtonLevelOptinAllowallSelection:hover,
#CybotCookiebotDialogBodyLevelButtonLevelOptinDeclineAll:hover {
@apply bg-moss-green-60 !important;
}

#CybotCookiebotDialogBodyLevelButtonLevelOptinAllowAll:hover {
@apply bg-moss-green-100 !important;
}

#CybotCookiebotDialogBodyButtonAccept:hover {
@apply bg-moss-green-60 !important;
}

#CybotCookiebotDialogHeader {
@apply hidden !important;
}
1 change: 0 additions & 1 deletion web/styles/components/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export * from './cookieBot'
export * from './algolia'
4 changes: 1 addition & 3 deletions web/styles/globalStyles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { createGlobalStyle } from 'styled-components'
import { colors, typography, spacings, componentSettings, strictLineBreak } from './settings'
import { generic } from './generic'
import { elements } from './elements'
import { cookieBot, algolia } from './components'
import { algolia } from './components'
import { normal } from './themes'

/* We use ITCSS to structure the (few) global styles we need */
Expand All @@ -20,8 +20,6 @@ export const GlobalStyle = createGlobalStyle`
${generic}
/* Elements */
${elements}
/* Components */
${cookieBot}
/* This is temporary. Will be different with the hooks version of the lib*/
${algolia}
`
Expand Down
1 change: 1 addition & 0 deletions web/styles/tailwind.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
@import 'tailwindcss/components';
@import 'video.js/dist/video-js.css';
@import './components/videojs.css';
@import './components/cookiebot.css';
@import 'tailwindcss/utilities';

@layer base {
Expand Down

0 comments on commit 17af922

Please sign in to comment.