1
0

Fixed language switch

Updated blog CSS
This commit is contained in:
Michael Gordeev
2020-05-24 15:23:22 +03:00
parent fc2b2eee37
commit 6c70e9a618
3 changed files with 24 additions and 4 deletions
@@ -44,7 +44,7 @@ namespace MyWebsite.Controllers
CookieRequestCultureProvider.DefaultCookieName,
CookieRequestCultureProvider.MakeCookieValue(new RequestCulture(
CultureInfo.CurrentCulture.TwoLetterISOLanguageName.ToUpperInvariant() == "RU" ?
"en" : "ru"
"en-US" : "ru"
)),
new CookieOptions { Expires = DateTimeOffset.UtcNow.AddYears(1) });
+21 -1
View File
@@ -3,6 +3,7 @@
display: grid;
grid-template-columns: 1fr 300px;
grid-column-gap: 50px;
grid-row-gap: 25px;
max-width: 1100px;
margin: 0px auto;
padding: 0px 30px;
@@ -28,7 +29,6 @@ body
header
{
align-self: center;
height: 100px;
}
header a:link
@@ -265,6 +265,14 @@ main > form
border-radius: 999px;
}
@media only screen and (max-width: 1000px)
{
main
{
grid-column-gap: 25px;
}
}
@media only screen and (max-width: 800px)
{
main > aside, main > form
@@ -276,4 +284,16 @@ main > form
{
display: block;
}
header
{
margin-bottom: 25px;
}
}
@media only screen and (max-width: 500px)
{
main
{
padding: 10px !important;
}
}
+2 -2
View File
@@ -1,5 +1,5 @@
/*
This file contains main layout styles which applies to every View. In some views this rules are overrided in separate CSS files
This file contains main layout styles which applies to every View. In some views this rules are overridden in separate CSS files
*/
/* Header styles */
@@ -130,7 +130,7 @@ header
}
/* Adaptive code */
@media only screen and (min-width: 1070px)
@media only screen and (min-width: 1080px)
{
menu
{