Fixed language switch
Updated blog CSS
This commit is contained in:
@@ -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) });
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user