-
Andrew Rudenets authored63590510
Forked from
it-lab / grade
Source project has a limited visibility.
common.less 4.51 KiB
// ---------------------------------------------------------------------------------------------------------------------
// Цвета, шрифты
// ---------------------------------------------------------------------------------------------------------------------
@ColorWhiten: #FBFEFF;
@ColorWhite: #EEF1f2;
@ColorLightGrey: lighten(@ColorGrey, 20%);
@ColorGrey: #A0A3A3;
@ColorDarkGrey: darken(@ColorGrey, 20%);
@ColorText: #212121;
@ColorLightBlue: #0183CE;
@ColorBlue: #004573;
@ColorGreen: #009933;
@ColorActive: #F0622E;
@Color_Undefined: #777;
@Color_ECTSF: #8A2E15;
@Color_ECTSFX: #D46141;
@Color_ECTSE: #EDEC51;
@Color_ECTSD: #7EBA3C;
@Color_ECTSC: #28AE57;
@Color_ECTSB: #349920;
@Color_ECTSA: #367F27;
@FontFamily: 'PT Sans', sans-serif;
@FontFamilyTitle: 'PT Sans Narrow', sans-serif;
@FontSizeSmall: 0.9em;
@FontSizeNormal: 0.95em;
// ---------------------------------------------------------------------------------------------------------------------
// Макросы
// ---------------------------------------------------------------------------------------------------------------------
.radius(@rad) { // Добавление радиуса
border-radius: @rad;
}
.box-shadow(@style, @c) when (iscolor(@c)) { // Добавление тени
-webkit-box-shadow: @style @c;
box-shadow: @style @c;
}
.modalWindow(@width)
{
width: @width;
position: absolute;
z-index: 9999;
}
// ---------------------------------------------------------------------------------------------------------------------
// Common Styles
// ---------------------------------------------------------------------------------------------------------------------
body
{
background-color: @ColorWhite;
font-family: @FontFamily;
color: @ColorText;
line-height: 1.1;
min-width: 1100px;
}
a, a:link
{
font-size: @FontSizeSmall;
color: @ColorLightBlue;
text-decoration: none;
}
a:hover
{
font-size: @FontSizeSmall;
color: @ColorActive;
}
h1, h2, h3
{
}
h1
{
font-size: 2em;
}
h2
{
font-size: 1.5em;
}
h3
{
font-size: 1.2em;
}
.clearFix
{
clear: both;
.label
{
float: left;
width: 200px;
color: @ColorDarkGrey;
}
.content
{
overflow: hidden;
}
}
// ---------------------------------------------------------------------------------------------------------------------
// Header
// ---------------------------------------------------------------------------------------------------------------------
.header_wrapper
{
.box-shadow(0 5px 5px, lighten(@ColorGrey, 25%));
font-size: @FontSizeSmall;
padding: 12px 20px;
background-color: @ColorWhiten;
> .alignLeft
{
display: inline-block;
}
a
{
font-size: @FontSizeSmall;
}
.logotype
{
margin-right: 15px;
}
.faculty
{
color: @ColorGrey;
}
.navigation
{
color: @ColorGrey;
display: inline;
text-align: right;
float: right;
> div
{
display: inline-block;
margin: 0 5px;
}
a
{
margin-left: 5px;
}
}
}
.profile_wrapper {
.modalWindow(450px);
background-color: @ColorWhiten;
font-size: @FontSizeSmall;
padding: 5px;
right: 15px;
top: 45px;
border-radius: 5px;
.box-shadow(0 0 5px, @ColorGrey);
.clearFix
{
padding: 5px;
.label
{
width: 130px;
}
}
}
.profile_wrapper .username
{
font-weight: 600;
}
.profile_wrapper .profile_delimeter
{
border-bottom: 1px solid #ccc;
padding-bottom: 10px;
}
// ---------------------------------------------------------------------------------------------------------------------
// Main layer
// ---------------------------------------------------------------------------------------------------------------------
.main_layer
{
max-width: 70%;
width: auto;
min-width: 800px;
margin: 35px auto;
}
.main
{
margin-bottom: 10px;
border-radius: 5px;
background-color: @ColorWhiten;
.box-shadow(0 0 5px, @ColorGrey);
.main_top
{
display: inline-block;
position: absolute;
background-color: @ColorLightBlue;
color: @ColorWhite;
margin: -15px 0px 0px -10px;
padding: 10px 50px 10px 20px;
min-width: 15%;
}
.main_content {
width: 100%;
font-size: @FontSizeNormal;
position: relative;
overflow: hidden;
padding-top: 35px;
padding-bottom: 25px;
}
}
.sidePadding
{
padding: 0 25px;
}
// ---------------------------------------------------------------------------------------------------------------------
// Footer
// ---------------------------------------------------------------------------------------------------------------------