Merge pull request #33 from cosmocode/improve-less-formatting

Improve less formatting
This commit is contained in:
Andreas Gohr 2019-04-11 16:39:36 +02:00 • committed by GitHub
commit e8647cb75c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
51 changed files with 298 additions and 378 deletions

View file

@ -1,7 +1,5 @@
/**
* This file provides the design styles for the page content.
*
* @author Jana Deutschlaender <deutschlaender@cosmocode.de>
*/
.content .row {
@ -31,23 +29,20 @@
}
}
.main-content > .level2,
.main-content > .level1,
.main-content > .level3,
.main-content > .level4,
.main-content > .level5,
.main-content > .level6 {
//padding-bottom: 1rem;
> p, > ul > li .li {
> p,
> ul > li .li {
a {
font-size: inherit;
}
}
}
.level1,
.level2,
.level3,

View file

@ -1,13 +1,9 @@
/**
* This file provides the design styles for the page footer
*
* @author Jana Deutschlaender <deutschlaender@cosmocode.de>
*/
/* + + + + + + + + + + + + + + + + + + + + + + + + + + */
/* no print */
@media screen {
.page-footer {
min-height: @page-header_height;
@ -55,10 +51,8 @@
}
}
/* + + + + + + + + + + + + + + + + + + + + + + + + + + */
/* min-width: 1024px */
@media @screen_min-md {
#dokuwiki__footer {
.col-xs-12 {
@ -91,10 +85,8 @@
}
}
/* + + + + + + + + + + + + + + + + + + + + + + + + + + */
/* max-width: 1023px */
@media @screen_max-md {
#dokuwiki__footer {
.main-footer {
@ -104,10 +96,8 @@
}
}
/* + + + + + + + + + + + + + + + + + + + + + + + + + + */
/* max-width: 768px */
@media @screen_max-xs {
.page-footer {
padding-left: @margin-small;
@ -124,10 +114,8 @@
}
}
/* + + + + + + + + + + + + + + + + + + + + + + + + + + */
/* max-width: 480px */
@media @screen_max-xxs {
#dokuwiki__footer {
.main-footer {

View file

@ -1,6 +1,5 @@
/**
* This file provides the design styles for the footnotes.
*
*/
/* + + + + + + + + + + + + + + + + + + + + + + + + + + */
@ -38,8 +37,6 @@
}
}
/* + + + + + + + + + + + + + + + + + + + + + + + + + + */
/* footnotes in content */
.main-content sup,
@ -55,5 +52,3 @@
.insitu-footnote {
line-height: 130%;
}

View file

@ -1,18 +1,13 @@
/**
* This file provides the design styles for forms.
*
* @author Jana Deutschlaender <deutschlaender@cosmocode.de>
*/
/* for all of the form styles, style.ini colours are not used on purpose (except for fieldset border) */
form {
display: inline;
margin: 0;
padding: 0;
// multiline label
fieldset > label.block > span:first-child {
display: inline-block;
@ -115,7 +110,6 @@ input[type="image"] {
//box-shadow: none; :in ie picture and checkbox disappear
}
input:active,
input:focus,
textarea:active,
@ -132,7 +126,6 @@ input[type="file"] {
padding-bottom: .1rem;
}
/* + + + + + buttons + + + + + */
button {
background-color: #eee;
@ -155,7 +148,6 @@ button {
}
}
/* + + + all types of submit-buttons + + + */
form input[type=submit], // heredity 'adnewpage'
a.button,
@ -213,7 +205,6 @@ button[type=submit] {
}
}
/* + + + all types of buttons not being submit-buttons + + + */
input.button,
input[type=button] {
@ -237,7 +228,6 @@ input[type=button] {
}
}
/* + + + all disabled buttons + + + */
input[disabled],
button[disabled],
@ -277,10 +267,8 @@ button::-moz-focus-inner {
padding: 0;
}
/* + + + + + + + + + + + + + + + + + + + + + + + + + + */
/* media queries - Styles for auth forms */
@media @screen_max-xs {
.tpl_sprintdoc {
#dw__login,

View file

@ -1,10 +1,7 @@
/**
* This file provides the design styles for the page header.
*
* @author Jana Deutschlaender <deutschlaender@cosmocode.de>
*/
#dokuwiki__header {
@header-font-opacity: 1;
@ -12,8 +9,7 @@
min-height: 120px;
}
/* + + + wiki logo + + + */
/* + + + wiki logo + + + */
@media @screen_min-md {
.logo {
padding: 1rem 0 .3rem;
@ -46,8 +42,7 @@
}
}
/* + + + + + DESKTOP - wiki title + claim + + + + + */
/* + + + + + DESKTOP - wiki title + claim + + + + + */
.main-title.desktop-only {
@media @screen_min-md {
display: table-cell;
@ -76,8 +71,7 @@
}
}
/* + + + + + MOBILE - wiki title wrapper + + + + + */
/* + + + + + MOBILE - wiki title wrapper + + + + + */
.main-title:not([class*="desktop-only"]) {
@media @screen_max-md {
display: table-cell;
@ -89,8 +83,7 @@
}
}
/* + + + wiki title + + + */
/* + + + wiki title + + + */
p.title {
background-color: @ini_background_site;
opacity: @header-font-opacity;
@ -109,8 +102,7 @@
}
}
/* + + + + + DESKTOP - wiki claim, logo, title wrapper + + + + + */
/* + + + + + DESKTOP - wiki claim, logo, title wrapper + + + + + */
@media @screen_min-md {
div.claim {
display: table-cell;
@ -119,8 +111,7 @@
}
}
/* + + + wiki claim + + + */
/* + + + wiki claim + + + */
p.claim {
opacity: @header-font-opacity;
color: @ini_text_webframe;
@ -132,8 +123,7 @@
}
}
/* + + + mobile nav togglelink + + + */
/* + + + mobile nav togglelink + + + */
.menu-togglelink {
position: relative;
margin: @headericons-margin-xxs -(@very-small-spacing) 0 0;
@ -176,8 +166,7 @@
}
}
/* + + + + + with magic matcher + + + + + */
/* + + + + + with magic matcher + + + + + */
&.has-magicmatcher {
.logo {
@media @screen_min-md {
@ -208,7 +197,6 @@
}
}
/* + + + + + layout option compact + + + + + */
.header-compact {
#dokuwiki__header {
@ -284,9 +272,6 @@
.menu-tool-select {
padding-top: .3rem;
}
}
}
}

View file

@ -2,7 +2,6 @@
* This styles the "section editing button" (if not added by data-plugin)
*/
#dokuwiki__content.main-content {
.secedit:not([class*="plugin"]):not([class*="table"]) {
position: relative;

View file

@ -1,10 +1,7 @@
/**
* This file provides the design styles for the main-content.
*
* @author Jana Deutschlaender <deutschlaender@cosmocode.de>
*/
#dokuwiki__content.main-content {
div[class^="level"] {
p a.media {
@ -43,16 +40,12 @@
}
}
/* + + + + + + + + + + + + + + + + + + + + + + + + + + */
/* min-width: 1440px */
@media @screen_min-xlg {
}
// @media @screen_min-xlg {
// }
/* + + + + + + + + + + + + + + + + + + + + + + + + + + */
/* max-width: 1199px */
@media @screen_max-xlg {
}
// @media @screen_max-xlg {
// }

View file

@ -1,11 +1,7 @@
/**
* This file provides the design styles the navigational elements in the sidebar
*
* @author Jana Deutschlaender <deutschlaender@cosmocode.de>
* @author Andreas Gohr <gohr@cosmocode.de>
*/
#dokuwiki__aside {
@icon-size: @font-size-big;
@menu-margin: @icon-size + @margin-small * 2;
@ -62,7 +58,7 @@
padding: .15em 0;
/* + + + + + active + + + + + */
/* + + + + + active + + + + + */
span.curid {
font-weight: bold;
}
@ -81,8 +77,7 @@
}
}
/* + + + the wrapper around the toggle to reserve space + + + */
/* + + + the wrapper around the toggle to reserve space + + + */
div.nav {
min-height: @icon-size + @margin-small;
border: 1px solid transparent;
@ -137,13 +132,12 @@
}
}
/* + + + submenu entry is active + + + */
/* + + + submenu entry is active + + + */
&.is-active {
font-weight: bold;
}
/* + + + toggle: open + + + */
/* + + + toggle: open + + + */
&.is-open {
background-color: @ini_nav_menu_hover_color;
border-color: @ini_nav_menu_hover_color;
@ -259,8 +253,7 @@
}
}
/* + + + + + the panel (hidden by default) + + + + + */
/* + + + + + the panel (hidden by default) + + + + + */
div.nav-panel {
display: none;
margin-top: .5rem;
@ -277,10 +270,8 @@
}
}
/* + + + + + + + + + + + + + + + + + + + + + + + + + + */
/* min-width: 1440px */
@media @screen_min-xlg {
#dokuwiki__aside {
nav {
@ -301,10 +292,8 @@
}
}
/* + + + + + + + + + + + + + + + + + + + + + + + + + + */
/* max-width: 1440px */
@media @screen_max-xlg {
#dokuwiki__aside {
div.nav {
@ -315,10 +304,8 @@
}
}
/* + + + + + + + + + + + + + + + + + + + + + + + + + + */
/* max-width: 1023px */
@media @screen_max-md {
#dokuwiki__aside {
div.nav {
@ -366,10 +353,8 @@
}
}
/* + + + + + + + + + + + + + + + + + + + + + + + + + + */
/* max-width: 768px */
@media @screen_max-xs {
body.show-mobile-sidebar {
.page-wrapper > .tools {
@ -386,10 +371,8 @@
}
}
/* + + + + + + + + + + + + + + + + + + + + + + + + + + */
/* max-width: 480px */
@media @screen_max-xxs {
body.show-mobile-sidebar {
#dokuwiki__aside {

View file

@ -1,10 +1,7 @@
/**
* This file provides the design styles for the quick search.
*
* @author Jana Deutschlaender <deutschlaender@cosmocode.de>
*/
.search.main-sidebar {
@main-ico-dummy: @font-size-big + @margin-small*2; //FIXME copied from area_main-sidebar-nav
@icon-size: @page-header_height;
@ -108,8 +105,7 @@
}
}
/* + + + form + + + */
/* + + + form + + + */
form {
position: relative;
display: block;
@ -177,8 +173,7 @@
}
}
/* + + + + + suggestionlist + + + + + */
/* + + + + + suggestionlist + + + + + */
#qsearch__out {
left: auto;
top: auto;
@ -187,10 +182,8 @@
}
}
/* + + + + + + + + + + + + + + + + + + + + + + + + + + */
/* min-width: 1024px */
@media @screen_min-md {
// wide page content
@ -224,10 +217,8 @@
}
}
/* + + + + + + + + + + + + + + + + + + + + + + + + + + */
/* max-width: 1023px */
@media @screen_max-md {
// show when toggled

View file

@ -1,3 +1,8 @@
/**
* This file provides the design styles for tab list in sidebar
*/
/* default view */
#dokuwiki__aside ul.sidebar-tabs {
margin-top: 0;
margin-bottom: @nav-margin;
@ -22,6 +27,7 @@
}
}
/* wide content view */
.wide-content #dokuwiki__aside ul.sidebar-tabs {
visibility: hidden;
}

View file

@ -1,10 +1,7 @@
/**
* This file provides the design styles for message block
*
* @author Jana Deutschlaender <deutschlaender@cosmocode.de>
*/
.msg-area {
clear: both;
padding-top: 1.6rem;
@ -18,7 +15,7 @@
}
}
/* short fix: SPR-891 - Icons für Notifications in Message Area werden gekachelt */
/* short fix: SPR-891 - icons for notifications in message area are repeated */
div.success,
div.error,
div.info,

View file

@ -1,10 +1,7 @@
/**
* This file provides the design styles for the breadcrumb
*
* @author Jana Deutschlaender <deutschlaender@cosmocode.de>
*/
.breadcrumbs {
position: relative;
min-height: @page-header_height;

View file

@ -1,10 +1,7 @@
/**
* This file provides the design styles for the direct / menu jump links.
*
* @author Jana Deutschlaender <deutschlaender@cosmocode.de>
*/
.nav-direct {
background-color: @nav_direct_background;
margin-top: -1px;

View file

@ -1,11 +1,7 @@
/**
* This file provides the design styles for the metatabbox
*
* @author Jana Deutschlaender <deutschlaender@cosmocode.de>
* @author Silke Pisulla <pisulla@cosmocode.de>
*/
#spr__meta-box {
.display-flex();
.flex-direction();
@ -57,7 +53,7 @@
}
/* + + + + + tab controlls + + + + + */
/* + + + + + tab controls + + + + + */
ul.meta-tabs {
list-style: none;
line-height: 160%;
@ -175,8 +171,7 @@
}
}
/* + + + + + toggle content + + + + + */
/* + + + + + toggle content + + + + + */
.meta-content {
margin-top: -1px;
@ -297,8 +292,7 @@
}
}
/* + + + + + tab issues + + + + + */
/* + + + + + tab issues + + + + + */
#spr__tab-issues {
ul.mmissuelist {
padding-left: 0;
@ -337,9 +331,8 @@
}
}
/* + + + + + tab issues + + + + + */
/* see plugins/magic-matcher.less */
/* + + + + + tab issues + + + + + */
/* see plugins/magic-matcher.less */
#spr__tab-issues {
ul.mmissuelist {
padding-left: 0;

View file

@ -2,9 +2,7 @@
* Page Attribute Icons in the breadcrumb bar
*/
/* + + + + + icons in breadcrumb area + + + + + */
.page-attributes {
list-style: none;
float: right;

View file

@ -1,7 +1,5 @@
/**
* This file provides the design styles for the page specific tool bar.
*
* @author Jana Deutschlaender <deutschlaender@cosmocode.de>
*/
/*
@ -21,7 +19,6 @@
.pagetools-item(img_backto, 12);
*/
#dokuwiki__aside {
@media @screen_max-md {
display: none !important;

View file

@ -1,10 +1,7 @@
/**
* This file provides the design styles for the direct / menu jump links.
*
* @author Jana Deutschlaender <deutschlaender@cosmocode.de>
*/
#dokuwiki__usertools.nav-usertools {
@media @screen_min-md {
right: 1.25rem;
@ -26,8 +23,7 @@
}
}
/* + + + + + icon list + + + + + */
/* + + + + + icon list + + + + + */
ul {
float: right;
padding: 0;
@ -76,8 +72,7 @@
}
}
/* !!! &.user-task FIND in plugins/do_tasks.less !!! */
/* !!! &.user-task FIND in plugins/do_tasks.less !!! */
&.user {
position: relative;
display: table-cell;
@ -221,11 +216,9 @@
}
}
} // user
} // li
/* + + + icons + + + */
/* + + + icons + + + */
.menuitem, button {
padding: 2px 0 0 2px;
min-height: @toggle-size; // overrides button[type="submit"] styles
@ -245,10 +238,8 @@
span {
display: none;
}
}
a { // Pre-Greebo backwards compatibility, remove after transitioning to Greebo
.fontello();
.hide-text-show-before();
@ -298,7 +289,6 @@
} // ul
} // nav-usertools
/* + + + + + layout option compact + + + + + */
.header-compact {
#dokuwiki__usertools.nav-usertools {
@ -366,4 +356,3 @@
}
}
}

View file

@ -1,13 +1,10 @@
/**
* This file provides the design styles for page revisions
*
* @author Jana Deutschlaender <deutschlaender@cosmocode.de>
*/
.dokuwiki {
/* + + + + + list of changes + + + + + */
/* + + + + + list of changes + + + + + */
form.changes {
li {
.sizechange {
@ -59,8 +56,7 @@
}
}
/* + + + + + view of differents + + + + + */
/* + + + + + view of differents + + + + + */
a.difflink {
color: @ini_existing;

View file

@ -1,10 +1,7 @@
/**
* This file provides the design styles for the search results
*
* @author Jana Deutschlaender <deutschlaender@cosmocode.de>
*/
/* search hit in normal text */
.dokuwiki .search_hit {
background-color: @ini_highlight;

View file

@ -2,9 +2,7 @@
* This file provides styles for tab boxes
*/
/* + + + + + tabs + + + + + */
#dokuwiki__content {
ul.tabs {
li:not([class~="active"]) {

Some files were not shown because too many files have changed in this diff Show more