/* * Подключение всех стилей сайта */ // Стили сторонних разработок: @import "../!phph-pack-collection/bootstrap/less/bootstrap.less"; @import "../!phph-pack-collection/bootstrap/less/responsive.less"; // Ускорятели верстки: @import "phph-layout-speedups.less"; // Стили для данного сайта: @import "less-current-site/bu.less"; // стиль шаблона дизайна // Корректировка путей к картинкам бутстрапа6: // @iconSpritePath: "../!phph-pack-collection/bootstrap/img/glyphicons-halflings.png"; // @iconWhiteSpritePath: "../!phph-pack-collection/bootstrap/img/glyphicons-halflings-white.png"; /****************************************************************************************/ /* Стили для RealTime-разработки если к адресу страницы добавить " #!watch ", то на локальной машине можно в реальном времени наблюдать изменения, через пару секунд после сохранения файла. Но! Стили в этом случае надо писать именно в этом файле, т.к. это единственный файл, подключаемый из макета дизайна, об "импортных" файлах браузер ничего не знает. Поэтому верстку в реальном времени можно писать прямо сюда, а потом уже раскидывать по целевым файлам. */ /*****************************************************************************************************/ body { font-family: arial; color: #666; } h1 {margin-top: 0;} /* Header ********************/ .header { margin-bottom: 20px; line-height: 100px; border-bottom: 1px solid #eee; nav li { font-size: 18px; line-height: 18px; &.active {text-decoration: underline;} a {color: #666 !important;} } } .tag-menu { top: 64px; min-width: 160px; padding: 1px 0 0; margin: 0; font-size: 16px; border-radius: 0 0 4px 4px; box-shadow: none; } .tag-menu > li > a { padding: 3px 6px; margin-bottom: 1px; line-height: 20px; color: #666; &:hover { text-decoration: underline; color: #666; } } .tag-toggle, .tag-toggle:hover, .tag-toggle:focus { min-width: 148px; padding: 6px; text-align: left; background: #fff !important; box-shadow: none !important; .caret { margin-left: 5px; } } /* Tags ********************/ .tags-item { display: block; float: left; width: 130px; height: 220px; margin: 0 0 20px 18px; padding: 0; font-size: 12px; line-height: 14px; color: #333; background-color: #fff; .box-shadow(0 3px 5px rgba(0,0,0,0.1)); .border-radius(10px); &:nth-child(6n+1) { margin: 0 0 20px 0; } &:hover { text-decoration: none; color: #333; .box-shadow(0 3px 5px rgba(0,0,0,0.2)); } img { width: 100%; height: 100px; .border-radius(10px 10px 0 0); } } .tags-body { padding: 0 5px; h3 { font-size: 17px; font-weight: normal; line-height: 17px; text-shadow: 1px 1px rgba(0,0,0,0.2); } } .tags-count { float: right; margin-top: 2px; height: 16px; } .tags-block { display: block; float: left; width: 128px; height: 34px; margin: 0 0 12px 18px; line-height: 34px; text-align: center; color: #333; border: 1px solid rgba(0,0,0,0.1); .border-radius(4px); &:nth-child(6n+1) { margin: 0 0 12px 0; } &:hover { color: #333; box-shadow: 1px 1px 2px rgba(0,0,0,0.1); } &.active { color: #333; box-shadow: 1px 1px 2px rgba(0,0,0,0.2); } h3 { display: inline-block; margin: 0; font-size: 15px; font-weight: normal; line-height: 15px; text-shadow: 1px 1px rgba(0,0,0,0.1); } } /* Posts ********************/ .post-item { position: relative; height: 420px; margin-bottom: 30px; padding: 0; font-size: 15px; background-color: #fff; .box-shadow(0 4px 5px rgba(0, 0, 0, 0.1)); img { height: 190px; } } .post-body { padding: 0 10px; h2 { font-size: 20px; line-height: 22px; a { color: #666; } } } .post-tags { position: absolute; bottom: 10px; left: 10px; } .last-post { position: relative; margin-top: 24px; margin-bottom: 20px; padding: 10px 0; border: 1px solid #eee; &:before { content: "Последние обновления"; position: absolute; top: -24px; left: -1px; padding: 2px 5px; background-color: #eee; } .nav { margin: 0; } li > a { padding: 0 10px; } } /* Footer ********************/ .footer { margin-top: 20px; margin-bottom: 20px; line-height: 60px; border-top: 1px solid #eee; border-bottom: 1px solid #eee; nav li { font-size: 16px; line-height: 16px; color: #999; &.active {text-decoration: underline;} a {color: #999 !important;} } }