diff options
| author | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2020-12-28 21:28:36 +0100 |
|---|---|---|
| committer | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2020-12-28 21:28:36 +0100 |
| commit | 7dd251dbdf3cc77a4befec02199750e6ce976019 (patch) | |
| tree | e578f35d74f2b194c1dcee48265f1ca9a5682b87 | |
| parent | 2781226ff8e55322c1941742efddbcd6d64b239c (diff) | |
| download | quatuorbellefeuille.com-7dd251dbdf3cc77a4befec02199750e6ce976019.tar.xz | |
Note down possible transitions for dropdown menu
Also move some attributes around.
| -rw-r--r-- | commun.css | 18 |
1 files changed, 16 insertions, 2 deletions
@@ -77,14 +77,28 @@ nav li.dropdown ul { left: 0; /* Offset nav > ol > li padding. */ padding-left: 0; width: 100%; + text-align: left; background: lightgrey; z-index: 1; + + /* TODO: transition? ⚠ display: block */ + + /* overflow: hidden; */ + /* max-height: 0; */ + /* transition: max-height 0.5s; */ + + /* transform: scaleY(0); */ + /* transform-origin: top; */ + /* transition: transform 0.5s; */ + } nav li.dropdown:hover ul { display: block; - text-align: left; + /* TODO: transition? ⚠ redundant display: block */ + /* max-height: 100vh; */ + /* transform: scaleY(1); */ } -nav li:hover ul li { +nav li.dropdown > ul > li { list-style-type: none; } nav li.dropdown > ul > li:hover { |
