discourse-mozilla-theme-beta/desktop/desktop.scss

190 строки
3.3 KiB
SCSS
Исходник Обычный вид История

2017-07-25 20:18:13 +03:00
.d-header {
height: 70px;
.wrap {
2019-05-03 00:59:19 +03:00
width: 100%;
2017-07-25 20:18:13 +03:00
max-width: none;
padding: 0;
}
.title {
margin: -15px 0;
margin-right: 20px;
2018-11-23 19:06:13 +03:00
padding: 0 20px;
2017-07-25 20:18:13 +03:00
border-right: 1px solid #cfcfcf;
}
#site-logo {
max-height: 30px;
}
.logo-small {
margin-right: 0;
}
.login-button {
margin-right: 20px;
}
.icons {
margin: 0;
2018-03-26 17:02:19 +03:00
.icon, .icon:hover, .active .icon {
border: none;
border-left: 1px solid #cfcfcf;
}
2017-07-25 20:18:13 +03:00
.icon {
margin: -15px 0;
padding: 20px;
color: #000;
2018-03-26 17:02:19 +03:00
&, i {
2017-07-25 20:18:13 +03:00
height: 30px;
width: 30px;
}
}
}
.menu-panel.drop-down {
margin-top: 15px;
margin-right: 0.5em;
border: 1px solid #cfcfcf;
box-shadow: none;
}
#current-user {
.icon {
padding: 15px;
}
2018-03-26 17:02:19 +03:00
.icon, .avatar {
2017-07-25 20:18:13 +03:00
height: 40px;
width: 40px;
}
}
}
.drop-down-visible .d-header .icons .active .icon {
border: none;
border-left: 1px solid #cfcfcf;
}
#main-outlet {
padding-top: 92px; /* header + 22px */
}
2017-08-28 22:42:45 +03:00
/* Increase font size of category titles on homepage */
.category-list tbody .category h3 {
font-size: 1.6em;
}
/* Increase font size of category badges */
.badge-wrapper {
font-size: 1em;
}
/* Remove parent category color from subcategory badge */
.badge-wrapper.box span.badge-category-parent-bg + .badge-category-bg + .badge-category {
margin-left: 0px;
}
.badge-wrapper.box span.badge-category-parent-bg + .badge-category-bg {
left: 0px;
width: 100%;
}
.badge-wrapper.box span.badge-category-parent-bg {
display: none;
}
/* Increase font size of posts */
/* Increase font size in composer */
.topic-body .contents .cooked,
#reply-control .wmd-controls .d-editor-input,
#reply-control .wmd-controls .d-editor-preview {
font-size: 1.14em;
line-height: 1.36em;
}
/* Increase font size of titles in topics */
#topic-title h1 {
font-size: 2.14em;
}
/* Move category badges to banner below header */
.d-header .contents {
margin-bottom: 0;
}
2017-08-28 22:42:45 +03:00
.d-header .extra-info-wrapper {
.title-wrapper {
2018-11-23 19:06:13 +03:00
.categories-wrapper {
width: 100%;
2019-05-03 00:59:19 +03:00
max-width: none;
2018-11-23 19:06:13 +03:00
position: absolute;
left: 0px;
top: 70px;
}
2017-08-28 22:42:45 +03:00
.badge-wrapper {
margin: 0;
.badge-category {
margin-top: 0px;
padding: 5px;
}
&:first-of-type {
padding-left: 86px;
.badge-category-bg {
margin-left: -86px;
}
}
&:last-of-type {
flex-grow: 1;
2017-08-28 22:42:45 +03:00
}
}
/* Increase font size of titles in header */
h1 {
font-size: 2.14em;
line-height: 70px;
}
/* Hide tags from header */
.topic-header-extra {
display: none;
}
}
}
/* Put notification icons in the right place */
.d-header-icons {
.badge-notification {
top: 5px;
}
.unread-notifications {
right: 5px;
}
.unread-private-messages {
right: 45px;
}
}