341 lines
6.4 KiB
CSS
341 lines
6.4 KiB
CSS
/*
|
|
Theme Name: MedColBSU
|
|
Theme URI: https://medcollege.bsu.edu.ru/
|
|
Description: Web-page created for compatibility with main site
|
|
Author: Alexander Babaev
|
|
Author URI: https://babaev-an.ru/
|
|
Version: 0.1
|
|
*/
|
|
/* 1. Контйнер содержимого сайта */
|
|
.site-body {
|
|
line-height: 1.5;
|
|
text-align: justify-all;
|
|
}
|
|
@media (max-width: 768px) {
|
|
.site-body{
|
|
padding: 10px;
|
|
}
|
|
}
|
|
@media (min-width: 769px) and (max-width: 1024px) {
|
|
.site-body{
|
|
padding: 20px;
|
|
}
|
|
}
|
|
@media (min-width: 1025px) {
|
|
.site-body{
|
|
padding: 40px;
|
|
}
|
|
}
|
|
/* 2. Контейнер шапки. */
|
|
.mc_header {
|
|
display: -webkit-flex;
|
|
-webkit-justify-content: center;
|
|
display: flex;
|
|
justify-content: flex-start;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
align-content: center;
|
|
width: auto;
|
|
flex-direction: row;
|
|
}
|
|
.mc_header .medcollogo {
|
|
cursor: pointer;
|
|
}
|
|
.mc_header .bsulogo {
|
|
cursor: pointer;
|
|
margin-left: auto;
|
|
}
|
|
.mc_header .textcontainer{
|
|
min-width: 0;
|
|
word-wrap: break-word;
|
|
margin-left: 20px;
|
|
flex: auto;
|
|
}
|
|
@media (max-width: 309px) {
|
|
.mc_header {
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
}
|
|
.mc_header .bsulogo {
|
|
margin-left: 0px;
|
|
}
|
|
}
|
|
@media (max-width: 768px) {
|
|
.mc_header {
|
|
padding: 2px 10px;
|
|
}
|
|
.mc_header .textcontainer{
|
|
margin-left: 5px;
|
|
}
|
|
}
|
|
@media (min-width: 769px) and (max-width: 1024px) {
|
|
.mc_header {
|
|
padding: 3px 20px;
|
|
}
|
|
.mc_header .textcontainer{
|
|
margin-left: 10px;
|
|
}
|
|
}
|
|
@media (min-width: 1025px) {
|
|
.mc_header {
|
|
padding: 5px 40px;
|
|
}
|
|
.mc_header .textcontainer{
|
|
margin-left: 20px;
|
|
}
|
|
}
|
|
/* 3. Текст шапки. */
|
|
.sitetitle {
|
|
font-family: PTSansRegular, Arial, Tahoma, Helvetica, Sans-Serif, Verdana;
|
|
color: #663333;
|
|
font-weight: 600;
|
|
line-height: 100%;
|
|
text-transform: uppercase;
|
|
white-space: pre-wrap;
|
|
}
|
|
.sitesubtitle {
|
|
font-family: PTSansRegular, Arial, Tahoma, Helvetica, Sans-Serif, Verdana;
|
|
color: #666666;
|
|
font-weight: normal;
|
|
white-space: pre-wrap;
|
|
}
|
|
.subsitetitle {
|
|
font-family: PTSansRegular, Arial, Tahoma, Helvetica, Sans-Serif, Verdana;
|
|
color: #ff4d00;
|
|
font-weight: 600;
|
|
line-height: 100%;
|
|
text-transform: uppercase;
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.sitetitle {
|
|
font-size: 16px;
|
|
}
|
|
.sitesubtitle {
|
|
font-size: 6px;
|
|
}
|
|
.subsitetitle {
|
|
font-size: 14px;
|
|
}
|
|
}
|
|
@media (min-width: 769px) and (max-width: 1024px) {
|
|
.sitetitle {
|
|
font-size: 24px;
|
|
}
|
|
.sitesubtitle {
|
|
font-size: 11px;
|
|
}
|
|
.subsitetitle {
|
|
font-size: 22px;
|
|
}
|
|
}
|
|
@media (min-width: 1025px) {
|
|
.sitetitle {
|
|
font-size: 35px;
|
|
}
|
|
.sitesubtitle {
|
|
font-size: 16px;
|
|
}
|
|
.subsitetitle {
|
|
font-size: 33px;
|
|
}
|
|
}
|
|
/* 4. Логотипы сайта. */
|
|
.medcollogo {
|
|
background-image: url(https://medcollege.bsu.edu.ru/smc-content/themes/medcolbsu/images/sitelogo/logo_medcol.png);
|
|
background-repeat: no-repeat;
|
|
background-position: center center;
|
|
}
|
|
.bsulogo {
|
|
background-image: url(https://medcollege.bsu.edu.ru/smc-content/themes/medcolbsu/images/sitelogo/logo_bsu.png);
|
|
background-repeat: no-repeat;
|
|
background-position: center center;
|
|
}
|
|
@media (max-width: 768px) {
|
|
.medcollogo {
|
|
background-size: 55px;
|
|
width: 55px;
|
|
height: 55px;
|
|
}
|
|
.bsulogo {
|
|
background-size: 37px;
|
|
width: 37px;
|
|
height: 55px;
|
|
}
|
|
}
|
|
@media (min-width: 769px) and (max-width: 1024px) {
|
|
.medcollogo {
|
|
background-size: 81px;
|
|
width: 81px;
|
|
height: 82px;
|
|
}
|
|
.bsulogo {
|
|
background-size: 56px;
|
|
width: 56px;
|
|
height: 82px;
|
|
}
|
|
}
|
|
@media (min-width: 1025px) {
|
|
.medcollogo {
|
|
background-size: 109px;
|
|
width: 109px;
|
|
height: 110px;
|
|
}
|
|
.bsulogo {
|
|
background-size: 61px;
|
|
width: 61px;
|
|
height: 90px;
|
|
}
|
|
}
|
|
/* 5. Меню. */
|
|
.site-menu {
|
|
margin: 0px;
|
|
padding: 0px;
|
|
width: 100%;
|
|
text-align: center;
|
|
border: 0px;
|
|
background: #69F;
|
|
color: white;
|
|
}
|
|
.site-menu > li {
|
|
position: relative;
|
|
display: inline-block;
|
|
cursor: pointer;
|
|
padding: 10px 5px;
|
|
}
|
|
.site-menu li:hover {
|
|
background: #36C;
|
|
}
|
|
.site-menu > li:first-child {
|
|
margin-left: 10px;
|
|
}
|
|
.site-menu > li:last-child {
|
|
margin-right: 10px;
|
|
}
|
|
.site-menu-sub > li:first-child {
|
|
margin-top: 10px;
|
|
}
|
|
.site-menu-sub > li:last-child {
|
|
margin-bottom: 10px;
|
|
}
|
|
.site-menu .site-menu-sub {
|
|
left: 10px;
|
|
position: absolute;
|
|
display: none;
|
|
width: auto;
|
|
max-width: 300px;
|
|
margin: 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
background: #69F;
|
|
}
|
|
.site-menu > .selected {
|
|
background: #36C;
|
|
}
|
|
.site-menu-sub > .selected {
|
|
background: #36C;
|
|
}
|
|
.site-menu-sub > li {
|
|
padding: 0px 10px;
|
|
}
|
|
.site-menu > li:hover .site-menu-sub {
|
|
display: block;
|
|
}
|
|
.site-menu-toggle {
|
|
display: inline-block;
|
|
width: 16px;
|
|
height: 16px;
|
|
clear: both;
|
|
background-image: url(images/menu-sub.png);
|
|
background-repeat: no-repeat;
|
|
background-position: center center;
|
|
}
|
|
/* 6. Подвал */
|
|
.site-footer {
|
|
background-color: #69F;
|
|
color: white;
|
|
font-size: 14px;
|
|
text-align: center;
|
|
padding: 10px 5px 10px 5px;
|
|
}
|
|
/* 7. Класс для выравнивания и размера изображений. */
|
|
img.alleft {
|
|
float: left;
|
|
padding-right: 10px;
|
|
}
|
|
img.alright {
|
|
float: right;
|
|
padding-left: 10px;
|
|
}
|
|
img.small {
|
|
width: 150px;
|
|
height: auto
|
|
}
|
|
img.normal {
|
|
width: 300px;
|
|
height: auto
|
|
}
|
|
img.big {
|
|
width: 500px;
|
|
height: auto
|
|
}
|
|
img.hd {
|
|
width: 720px;
|
|
height: auto
|
|
}
|
|
/* 8. Кнопка «Вверх» */
|
|
.upbutton{
|
|
width: 80px;
|
|
height: 78px;
|
|
border: 0px;
|
|
padding: 5px;
|
|
position: fixed;
|
|
bottom: 2px;
|
|
right: 2px;
|
|
cursor: pointer;
|
|
background: url(images/upbutton.png) no-repeat;
|
|
opacity: 0.6;
|
|
}
|
|
|
|
/* 9. Класс, делящий страницу на 2 колонки. */
|
|
.columnContainer {
|
|
display: flex;
|
|
flex-wrap: nowrap;
|
|
align-content: center;
|
|
justify-content: space-around;
|
|
}
|
|
|
|
.columnLeft{
|
|
padding-left: 10px;
|
|
order: 1;
|
|
text-align: right;
|
|
margin-right: 10px;
|
|
}
|
|
|
|
.columnRight {
|
|
padding-right: 10px;
|
|
order: 2;
|
|
text-align: left;
|
|
margin-left: 10px;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.columnContainer {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.columnContainer .columnLeft, .columnContainer .columnRight {
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
@media (min-width: 769px) {
|
|
.columnContainer {
|
|
flex-direction: row;
|
|
}
|
|
|
|
.columnContainer .columnLeft, .columnContainer .columnRight {
|
|
width: 50%;
|
|
}
|
|
} |