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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,10 +1,7 @@
/** /**
* This file provides the design styles for the main-content. * This file provides the design styles for the main-content.
*
* @author Jana Deutschlaender <deutschlaender@cosmocode.de>
*/ */
#dokuwiki__content.main-content { #dokuwiki__content.main-content {
div[class^="level"] { div[class^="level"] {
p a.media { p a.media {
@ -43,16 +40,12 @@
} }
} }
/* + + + + + + + + + + + + + + + + + + + + + + + + + + */ /* + + + + + + + + + + + + + + + + + + + + + + + + + + */
/* min-width: 1440px */ /* min-width: 1440px */
// @media @screen_min-xlg {
@media @screen_min-xlg { // }
}
/* + + + + + + + + + + + + + + + + + + + + + + + + + + */ /* + + + + + + + + + + + + + + + + + + + + + + + + + + */
/* max-width: 1199px */ /* 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 * 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 { #dokuwiki__aside {
@icon-size: @font-size-big; @icon-size: @font-size-big;
@menu-margin: @icon-size + @margin-small * 2; @menu-margin: @icon-size + @margin-small * 2;
@ -62,7 +58,7 @@
padding: .15em 0; padding: .15em 0;
/* + + + + + active + + + + + */ /* + + + + + active + + + + + */
span.curid { span.curid {
font-weight: bold; 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 { div.nav {
min-height: @icon-size + @margin-small; min-height: @icon-size + @margin-small;
border: 1px solid transparent; border: 1px solid transparent;
@ -137,13 +132,12 @@
} }
} }
/* + + + submenu entry is active + + + */ /* + + + submenu entry is active + + + */
&.is-active { &.is-active {
font-weight: bold; font-weight: bold;
} }
/* + + + toggle: open + + + */
/* + + + toggle: open + + + */
&.is-open { &.is-open {
background-color: @ini_nav_menu_hover_color; background-color: @ini_nav_menu_hover_color;
border-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 { div.nav-panel {
display: none; display: none;
margin-top: .5rem; margin-top: .5rem;
@ -277,10 +270,8 @@
} }
} }
/* + + + + + + + + + + + + + + + + + + + + + + + + + + */ /* + + + + + + + + + + + + + + + + + + + + + + + + + + */
/* min-width: 1440px */ /* min-width: 1440px */
@media @screen_min-xlg { @media @screen_min-xlg {
#dokuwiki__aside { #dokuwiki__aside {
nav { nav {
@ -301,10 +292,8 @@
} }
} }
/* + + + + + + + + + + + + + + + + + + + + + + + + + + */ /* + + + + + + + + + + + + + + + + + + + + + + + + + + */
/* max-width: 1440px */ /* max-width: 1440px */
@media @screen_max-xlg { @media @screen_max-xlg {
#dokuwiki__aside { #dokuwiki__aside {
div.nav { div.nav {
@ -315,10 +304,8 @@
} }
} }
/* + + + + + + + + + + + + + + + + + + + + + + + + + + */ /* + + + + + + + + + + + + + + + + + + + + + + + + + + */
/* max-width: 1023px */ /* max-width: 1023px */
@media @screen_max-md { @media @screen_max-md {
#dokuwiki__aside { #dokuwiki__aside {
div.nav { div.nav {
@ -366,10 +353,8 @@
} }
} }
/* + + + + + + + + + + + + + + + + + + + + + + + + + + */ /* + + + + + + + + + + + + + + + + + + + + + + + + + + */
/* max-width: 768px */ /* max-width: 768px */
@media @screen_max-xs { @media @screen_max-xs {
body.show-mobile-sidebar { body.show-mobile-sidebar {
.page-wrapper > .tools { .page-wrapper > .tools {
@ -386,10 +371,8 @@
} }
} }
/* + + + + + + + + + + + + + + + + + + + + + + + + + + */ /* + + + + + + + + + + + + + + + + + + + + + + + + + + */
/* max-width: 480px */ /* max-width: 480px */
@media @screen_max-xxs { @media @screen_max-xxs {
body.show-mobile-sidebar { body.show-mobile-sidebar {
#dokuwiki__aside { #dokuwiki__aside {

View file

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

View file

@ -1,10 +1,7 @@
/** /**
* This file provides the design styles for message block * This file provides the design styles for message block
*
* @author Jana Deutschlaender <deutschlaender@cosmocode.de>
*/ */
.msg-area { .msg-area {
clear: both; clear: both;
padding-top: 1.6rem; 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.success,
div.error, div.error,
div.info, div.info,

View file

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

View file

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

View file

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

View file

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

View file

@ -1,7 +1,5 @@
/** /**
* This file provides the design styles for the page specific tool bar. * 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); .pagetools-item(img_backto, 12);
*/ */
#dokuwiki__aside { #dokuwiki__aside {
@media @screen_max-md { @media @screen_max-md {
display: none !important; display: none !important;

View file

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

View file

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

View file

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

View file

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

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