diff --git a/css/custom.css b/css/custom.css index 253be9be..5d86d2ea 100644 --- a/css/custom.css +++ b/css/custom.css @@ -1580,54 +1580,75 @@ img.monero-logo { transition: all ease-out .1s; } -.topnav .topnav-list .language-change { - position: relative; - display: block; -} - .topnav .topnav-list .language-change, .topnav .topnav-list .top-link { - padding-top: 0.8rem; - padding-bottom: 0.8rem; - padding-right: 4.5rem; font-size: 0.9rem; } -.topnav .topnav-list .language-change:hover { - background-color: #fcfcfc; +.topnav .topnav-list .top-link { + padding: 0.8rem 1rem; } -.topnav .topnav-list .language-change:hover>.dropdown-content { - opacity: 1; - visibility: visible; +.topnav .topnav-list .top-link.language-change { + position: relative; + display: inline-block; + padding: 0; + margin-right: 3.5rem; +} + +.topnav .topnav-list .language-change label { + height: 100%; + /*width: 100%;*/ + padding: 0.8rem 1rem; + display: block; +} + +.topnav .topnav-list .language-change label:hover { + color: #ff7519; + cursor: pointer; +} + +.topnav .topnav-list .language-change input:checked + label { + background-color: #fcfcfc; + -moz-box-shadow: 0 3px 5px rgba(50,50,93,.1); + -webkit-box-shadow: 0 3px 5px rgba(50,50,93,.1); + box-shadow: 0 3px 5px rgba(50,50,93,.1); +} + +.topnav .topnav-list .language-change input:checked ~ .dropdown-content { + display: block; } .topnav .topnav-list .language-change label div.arrow-down { display: inline-block; margin-bottom: 0.25rem; - margin-left: 0.1rem; + margin-left: 0.2rem; border-top: 3px solid #7a7a7a; +} +.topnav .topnav-list .language-change label:hover div.arrow-down { + border-top: 3px solid #ff7519; } .topnav .topnav-list .language-change .dropdown-content { + display: none; position: absolute; left: 0; - top: 99.5%; + top: 2.8rem; text-align: left; background: #fcfcfc; - width: 100%; + width: 100%; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; - opacity: 0; - visibility: hidden; z-index: 1; -webkit-transition: all .3s ease; -moz-transition: all .3s ease; -ms-transition: all .3s ease; -o-transition: all .3s ease; transition: all .3s ease; - + -moz-box-shadow: 0 3px 5px rgba(50,50,93,.1); + -webkit-box-shadow: 0 3px 5px rgba(50,50,93,.1); + box-shadow: 0 3px 5px rgba(50,50,93,.1); } .topnav .topnav-list .language-change .dropdown-content a { @@ -1636,6 +1657,7 @@ img.monero-logo { .topnav .topnav-list .language-change .dropdown-content a:hover, .topnav .topnav-list .language-change .dropdown-content a:focus { text-decoration: none; + /*background-color: #f9f9fa;*/ } .topnav .topnav-list .language-change .dropdown-content a.active { @@ -1744,13 +1766,12 @@ img.monero-logo { font-family: 'Hind', sans-serif; font-weight: 500; font-size: 0.99rem; - padding: 0.8rem 3.4rem 0.8rem 3.5rem; + padding: 0.8rem 3rem 0.8rem 3.5rem; -webkit-transition: all ease-out .2s; -moz-transition: all ease-out .2s; -o-transition: all ease-out .2s; transition: all ease-out .2s; line-height: 1.3; - white-space: nowrap; } .nav-item>.dropdown-content>a:hover { @@ -1767,9 +1788,13 @@ img.monero-logo { } @media only screen and (max-width: 75rem) { - + +.topnav .topnav-list .top-link.language-change { + margin-right: 3.1rem; + font-size: 0.85rem; +} + .topnav .topnav-list .top-link { - padding-right: 4.1rem; font-size: 0.85rem; } @@ -1777,6 +1802,14 @@ img.monero-logo { padding-left: 3.1rem; } +.topnav .topnav-list .top-link { + padding: 0.8rem 0.5rem; +} + +.topnav .topnav-list .language-change .dropdown-content { + top: 1.9rem; +} + .nav-items>.nav-item>label, .nav-item>.dropdown-content>a { padding-left: 2.7rem; } @@ -1786,8 +1819,8 @@ img.monero-logo { } .nav-item>.dropdown-content>a { - font-size: 1rem; - padding-right: 2.7rem; + font-size: 0.9rem; + padding-right: 2.2rem; } .nav-items>.nav-item:first-of-type>label, .white-nav .nav-item:first-of-type .dropdown-content a { @@ -1821,11 +1854,15 @@ img.monero-logo { @media only screen and (max-width: 62rem) { + +/*.mob.bot-nav.white-nav .col-xs-6 a { + display: inline-block; +}*/ img.monero-logo { position: inherit; width: 10rem; - padding: 0.39rem 0 0 0; + padding: 0.39rem 0 0.39rem 0; } .white-nav { @@ -2096,6 +2133,14 @@ label[for="mobile-burger"] { #drop1:checked ~ .dropdown-content, #drop2:checked ~ .dropdown-content, #drop3:checked ~ .dropdown-content, #drop4:checked ~ .dropdown-content { background-color: #fcfcfc; } + +.mob-language-change, .mob-language-change label { + cursor: pointer; +} + +.mob-language-change img.icon-language{ + width: 1.5rem; +} #moblangdrop:checked ~ .dropdown-content { display: block; @@ -2103,24 +2148,42 @@ label[for="mobile-burger"] { opacity: 1; visibility: visible; box-shadow: none; - top: 6%; + top: 2.92rem; left: 0; right: 0; text-align: center; width: inherit; margin-top: 0.6rem; - background-color: #fcfcfc; + background-color: #fff; } label[for="moblangdrop"] { display: block; - padding: 1.5rem 1rem; + margin-right: 0.5rem; + padding: 0.5rem; } - #moblangdrop:checked ~ label { - background-color: #fcfcfc; - } +label[for="moblangdrop"], label[for="moblangdrop"]:checked, #moblangdrop, #moblangdrop:checked { + -webkit-tap-highlight-color: rgba(0,0,0,0); + -webkit-tap-highlight-color: transparent; +} - .burger-check:checked + label { +#moblangdrop:checked ~ label { + background-color: transparent; +} + +#moblangdrop ~ label .arrow-down { + display: inline-block; + margin-left: 0.2rem; + margin-bottom: 0.6rem; + border-top: 3px solid #393939; +} + +#moblangdrop:checked ~ label .arrow-down { + border-bottom: 3px solid #393939; + border-top: 0; +} + +.burger-check:checked + label { position: fixed; } @@ -2138,24 +2201,25 @@ label[for="moblangdrop"] { .white-nav .mob-language-change label { color: #393939; } - + +p.mob-lang-change { + padding: 0.8rem; + color: #d7d7d7; + border-bottom: 1px solid #d7d7d7; + border-top: 1px solid #d7d7d7; + cursor: default; +} a.mob-lang-change { - padding: 1.5rem 1.5rem; - color: #393939; - border-bottom: 1px solid #e8ebef; - } + padding: 0.8rem; + color: #393939; + border-bottom: 1px solid #e8ebef; + line-height: 1.7; +} - a.mob-lang-change:hover, a.mob-lang-change.active, a.mob-lang-change:focus { - color: #ff7519; - text-decoration: none; - } - -.white-nav .mob-language-change label .arrow-down { - display: inline-block; - margin-left: 0.2rem; - margin-bottom: 0.2rem; - border-top: 3px solid #393939; +a.mob-lang-change:hover, a.mob-lang-change.active, a.mob-lang-change:focus { + color: #ff7519; + text-decoration: none; } } @@ -2261,7 +2325,7 @@ img.monero-logo { } p.main-resources { - height: 11rem; + height: 12rem; } p.main-downloads { diff --git a/index.html b/index.html index 4e7f9257..00e270f5 100644 --- a/index.html +++ b/index.html @@ -1,6 +1,6 @@ --- layout: base title: Home -permalink: index +permalink: index.html --- {% tf index.md %} \ No newline at end of file