-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
various styling fixes - mostly for desktop nav
- Loading branch information
Showing
12 changed files
with
94 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
network-api/networkapi/templates/fragments/blocks/nav/column.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
network-api/networkapi/templates/fragments/blocks/nav/featured-column.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
network-api/networkapi/templates/fragments/blocks/nav/overview.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
const plugin = require("tailwindcss/plugin"); | ||
|
||
function shared(theme) { | ||
const media = (breakpoint) => `@media (min-width: ${breakpoint})`; | ||
|
||
return { | ||
".nav-accordion-content-inner": { | ||
display: "flex", | ||
flexDirection: "column", | ||
background: "white", | ||
gap: theme("gap.8"), | ||
[media(theme("screens.xlarge"))]: { | ||
display: "grid", | ||
gap: `${theme("gap.0")} ${theme("gap.8")}`, | ||
borderLeftWidth: "40px", | ||
borderRightWidth: "40px", | ||
borderLeftColor: theme("colors.white"), | ||
borderRightColor: theme("colors.white"), | ||
"&.has-featured-column": { | ||
borderRightColor: theme("colors.gray.02"), | ||
}, | ||
}, | ||
}, | ||
".nav-dropdown-column": { | ||
display: "flex", | ||
flexDirection: "column", | ||
alignItems: "start", | ||
flex: "1", | ||
[media(theme("screens.xlarge"))]: { | ||
marginTop: theme("margin.22"), | ||
marginBottom: theme("margin.22"), | ||
}, | ||
"&.featured-column": { | ||
padding: `${theme("padding.8")} ${theme("padding.12")}`, | ||
[media(theme("screens.xlarge"))]: { | ||
marginTop: 0, | ||
marginBottom: 0, | ||
paddingTop: theme("padding.22"), | ||
paddingBottom: theme("padding.22"), | ||
}, | ||
}, | ||
}, | ||
}; | ||
} | ||
|
||
module.exports = [ | ||
plugin(function ({ addComponents, theme }) { | ||
addComponents([shared(theme)]); | ||
}), | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters