mirror of
https://github.com/monero-project/monero-site.git
synced 2025-01-10 21:05:04 +00:00
Adjusted CSS and index page for translation
This commit is contained in:
parent
88efc5e8bb
commit
fae1001e90
2 changed files with 114 additions and 50 deletions
138
css/custom.css
138
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%;
|
||||
-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 {
|
||||
|
@ -1768,8 +1789,12 @@ 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 {
|
||||
|
@ -1822,10 +1855,14 @@ 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 {
|
||||
|
@ -2097,27 +2134,53 @@ label[for="mobile-burger"] {
|
|||
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;
|
||||
position: inherit;
|
||||
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;
|
||||
}
|
||||
|
||||
label[for="moblangdrop"], label[for="moblangdrop"]:checked, #moblangdrop, #moblangdrop:checked {
|
||||
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
}
|
||||
|
||||
#moblangdrop:checked ~ label {
|
||||
background-color: #fcfcfc;
|
||||
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 {
|
||||
|
@ -2139,11 +2202,19 @@ label[for="moblangdrop"] {
|
|||
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;
|
||||
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 {
|
||||
|
@ -2151,13 +2222,6 @@ a.mob-lang-change {
|
|||
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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 48rem) {
|
||||
|
@ -2261,7 +2325,7 @@ img.monero-logo {
|
|||
}
|
||||
|
||||
p.main-resources {
|
||||
height: 11rem;
|
||||
height: 12rem;
|
||||
}
|
||||
|
||||
p.main-downloads {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
layout: base
|
||||
title: Home
|
||||
permalink: index
|
||||
permalink: index.html
|
||||
---
|
||||
{% tf index.md %}
|
Loading…
Reference in a new issue