diff --git a/.gitignore b/.gitignore index ee19e7a0aa..8c79714d9c 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,5 @@ /saml/saml.key /saml/saml.crt /saml/local_metadata.xml +.idea +venv diff --git a/weblate_web/static/style-rtl.css b/weblate_web/static/style-rtl.css index 2e1ba7c897..07ac9b60af 100644 --- a/weblate_web/static/style-rtl.css +++ b/weblate_web/static/style-rtl.css @@ -1168,11 +1168,21 @@ section.bottom .box.join { background-image: url("img/box-join.jpg"); } +section.bottom .box.join a { + position: absolute; + bottom: 40px; +} + section.bottom .box.donate { background-color: #f6664c; background-image: url("img/box-donate.jpg"); } +section.bottom .box.donate a { + position: absolute; + bottom: 40px; +} + section.bottom .box .title { font-size: 40px; letter-spacing: -1px; @@ -1189,7 +1199,7 @@ section.bottom .box p { font-size: 20px; letter-spacing: 0.5px; line-height: 25px; - margin-bottom: 45px; + margin-bottom: 70px; } body.light .main-menu ul li a { @@ -2253,10 +2263,6 @@ input[type="radio"]:checked + .biglabel { line-height: 26px; } -.installations .box:nth-child(2) { - min-height: 500px; -} - .installations .box:nth-child(2n + 1) { margin-right: 0; } @@ -2276,9 +2282,9 @@ input[type="radio"]:checked + .biglabel { .installations .box ul { margin: 0 25px 20px 0; max-width: 380px; - padding: 0; list-style: none; clear: right; + padding-bottom: 32px; } .installations .box li::before, @@ -2668,6 +2674,7 @@ h2.section-title.hp-style { margin: 0 25px 35px 0; padding: 0; list-style: none; + padding-bottom: 40px; } .contribution-list .box ul li, @@ -2758,6 +2765,13 @@ h2.section-title.hp-style { .aboutus-list .box.blue { background-color: #00d2e6; border-radius: 20px 20px 20px 0; + display: inline-block !important; + min-height: unset; +} + +.aboutus-list .box.green { + display: inline-block !important; + min-height: unset; } .aboutus-list .box h2 { @@ -3075,6 +3089,7 @@ input.button.make-payment { .form-line:last-child { border-bottom: none; + border-top: 1px solid #e9eaec; } .form-line > div { @@ -4032,7 +4047,7 @@ input.fullwidth { } } -/* Your Weblate Team - About Us */ +/* About Us Weblate Team */ .content-p { width: 69%; @@ -4062,7 +4077,7 @@ input.fullwidth { .weblate-team { display: table; - width: 82%; + width: 78%; margin: 0 auto; } @@ -4100,3 +4115,84 @@ input.fullwidth { text-align: center; } } + +/* Flex property for boxes */ + +.flex { + display: flex; +} + +/* Box display flow root property */ + +.box { + display: flow-root !important; + position: relative; +} + +/* Box bottom left and right button custom position */ + +.bottom-left { + position: absolute; + bottom: 40px; +} + +.bottom-right { + position: absolute; + bottom: 40px; + left: 40px; +} + +/* Media Queries for responsiveness */ + +@media screen and (max-width: 891px) { + .flex { + display: unset; + } +} + +@media screen and (max-width: 550px) { + .bottom-right { + position: unset; + bottom: unset; + left: unset; + } + + .installations .box ul, + .mailing .box ul { + padding-bottom: unset; + } + + .bottom-left { + position: unset; + bottom: unset; + } +} + +@media screen and (max-width: 650px) { + section.bottom .box p { + margin-bottom: 100px; + } + + section.bottom .box.donate a { + bottom: 30px; + } + + section.bottom .box.join a { + bottom: 30px; + } +} + +@media screen and (max-width: 1030px) and (min-width: 892px) { + .installations .box ul, + .mailing .box ul { + padding-bottom: 50px; + } + + .bottom-left { + bottom: 60px; + } + + .bottom-right { + bottom: 12px; + } +} diff --git a/weblate_web/static/style.css b/weblate_web/static/style.css index f0667773c8..f922976cf9 100644 --- a/weblate_web/static/style.css +++ b/weblate_web/static/style.css @@ -1168,11 +1168,21 @@ section.bottom .box.join { background-image: url("img/box-join.jpg"); } +section.bottom .box.join a { + position: absolute; + bottom: 40px; +} + section.bottom .box.donate { background-color: #f6664c; background-image: url("img/box-donate.jpg"); } +section.bottom .box.donate a { + position: absolute; + bottom: 40px; +} + section.bottom .box .title { font-size: 40px; letter-spacing: -1px; @@ -1189,7 +1199,7 @@ section.bottom .box p { font-size: 20px; letter-spacing: 0.5px; line-height: 25px; - margin-bottom: 45px; + margin-bottom: 70px; } body.light .main-menu ul li a { @@ -2253,10 +2263,6 @@ input[type="radio"]:checked + .biglabel { line-height: 26px; } -.installations .box:nth-child(2) { - min-height: 500px; -} - .installations .box:nth-child(2n + 1) { margin-left: 0; } @@ -2276,9 +2282,9 @@ input[type="radio"]:checked + .biglabel { .installations .box ul { margin: 0 0 20px 25px; max-width: 380px; - padding: 0; list-style: none; clear: left; + padding-bottom: 32px; } .installations .box li::before, @@ -2668,6 +2674,7 @@ h2.section-title.hp-style { margin: 0 0 35px 25px; padding: 0; list-style: none; + padding-bottom: 40px; } .contribution-list .box ul li, @@ -2758,6 +2765,13 @@ h2.section-title.hp-style { .aboutus-list .box.blue { background-color: #00d2e6; border-radius: 20px 20px 0 20px; + display: inline-block !important; + min-height: unset; +} + +.aboutus-list .box.green { + display: inline-block !important; + min-height: unset; } .aboutus-list .box h2 { @@ -3075,6 +3089,7 @@ input.button.make-payment { .form-line:last-child { border-bottom: none; + border-top: 1px solid #e9eaec; } .form-line > div { @@ -4024,7 +4039,7 @@ input.fullwidth { } } -/*Your Weblate Team - About us */ +/* About Us Weblate Team CSS */ .content-p { width: 69%; @@ -4054,7 +4069,7 @@ input.fullwidth { .weblate-team { display: table; - width: 82%; + width: 78%; margin: 0 auto; } @@ -4092,3 +4107,84 @@ input.fullwidth { text-align: center; } } + +/* Flex property for boxes */ + +.flex { + display: flex; +} + +/* Box display flow root property */ + +.box { + display: flow-root !important; + position: relative; +} + +/* Box bottom left and right button custom position */ + +.bottom-left { + position: absolute; + bottom: 40px; +} + +.bottom-right { + position: absolute; + bottom: 40px; + right: 40px; +} + +/* Media Queries for responsiveness */ + +@media screen and (max-width: 891px) { + .flex { + display: unset; + } +} + +@media screen and (max-width: 550px) { + .bottom-right { + position: unset; + bottom: unset; + right: unset; + } + + .installations .box ul, + .mailing .box ul { + padding-bottom: unset; + } + + .bottom-left { + position: unset; + bottom: unset; + } +} + +@media screen and (max-width: 650px) { + section.bottom .box p { + margin-bottom: 100px; + } + + section.bottom .box.donate a { + bottom: 30px; + } + + section.bottom .box.join a { + bottom: 30px; + } +} + +@media screen and (max-width: 1030px) and (min-width: 892px) { + .installations .box ul, + .mailing .box ul { + padding-bottom: 50px; + } + + .bottom-left { + bottom: 60px; + } + + .bottom-right { + bottom: 12px; + } +} diff --git a/weblate_web/templates/about.html b/weblate_web/templates/about.html index 4f0b15cdcb..af3197650b 100644 --- a/weblate_web/templates/about.html +++ b/weblate_web/templates/about.html @@ -14,7 +14,7 @@
{% trans "Please open the donation page for options on how to donate." %}
- {% trans "Donate now" %} + {% trans "Donate now" %}{% blocktrans %}You can translate Weblate and many other projects at hosted.weblate.org.{% endblocktrans %}
- {% trans "Start translating" %} + {% trans "Start translating" %}