diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-06-16 01:11:13 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-06-16 01:11:13 -0400 |
commit | c9a6d327110806d20877c477095238846a8d83bf (patch) | |
tree | 491b9b39ec0403067d0998226777a9a355004b9f /src/SMAPI.Web/wwwroot/Content/css | |
parent | 6c08f774250b252c09b282a663b3947acb3a6741 (diff) | |
download | SMAPI-c9a6d327110806d20877c477095238846a8d83bf.tar.gz SMAPI-c9a6d327110806d20877c477095238846a8d83bf.tar.bz2 SMAPI-c9a6d327110806d20877c477095238846a8d83bf.zip |
update web UI to let players download from new Nexus page (#547)
Diffstat (limited to 'src/SMAPI.Web/wwwroot/Content/css')
-rw-r--r-- | src/SMAPI.Web/wwwroot/Content/css/index.css | 55 |
1 files changed, 54 insertions, 1 deletions
diff --git a/src/SMAPI.Web/wwwroot/Content/css/index.css b/src/SMAPI.Web/wwwroot/Content/css/index.css index 6340ed87..514e1a5c 100644 --- a/src/SMAPI.Web/wwwroot/Content/css/index.css +++ b/src/SMAPI.Web/wwwroot/Content/css/index.css @@ -18,7 +18,8 @@ h1 { text-align: center; } -#call-to-action a { +#call-to-action a.main-cta, +#call-to-action a.secondary-cta { box-shadow: #caefab 0 1px 0 0 inset; background: linear-gradient(#77d42a 5%, #5cb811 100%) #77d42a; border-radius: 6px; @@ -40,6 +41,58 @@ h1 { text-shadow: #2b665e 0 1px 0; } +.cta-dropdown { + position: relative; + display: inline-block; + margin-bottom: 1em; +} + +.cta-dropdown a.download { + margin-bottom: 0 !important; +} + +.cta-dropdown .dropdown-content { + display: none; + position: absolute; + text-align: left; + box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2); + border: 1px solid #566963; + background: #5cb811; + border-top: 0; + border-radius: 0 0 6px 6px; + margin-top: -6px; + z-index: 1; +} + +.cta-dropdown .dropdown-content a:hover { + background-color: #ddd; +} + +.cta-dropdown .dropdown-content img { + width: 0.85em; + height: 0.85em; +} + +.cta-dropdown.secondary-cta-dropdown .dropdown-content a:hover { + background-color: #566963; +} + +.cta-dropdown.secondary-cta-dropdown .dropdown-content { + background-color: #768d87; + border-color: #566963; +} + +.cta-dropdown.secondary-cta-dropdown .dropdown-content a { + color: #fff; + text-shadow: #2b665e 0 1px 0; +} + +.cta-dropdown .dropdown-content a { + padding: 0.75em 1em; + text-decoration: none; + display: block; +} + /********* ** Subsections *********/ |