Permalink
Browse files

♻️ Refactor style code into .less syntax

This will make future changes so much simpler and less error-prone.
  • Loading branch information...
micgro42 committed Sep 8, 2018
1 parent ebe6a82 commit a951ce89e845275459d641f08f96e179adeb3481
Showing with 85 additions and 70 deletions.
  1. +85 −70 style.less
View
@@ -1,72 +1,87 @@
div.dokuwiki .yearbox {
font-size:12px;
font-family:Tahoma;
padding:5px;
font-size: 12px;
font-family: Tahoma;
padding: 5px;
table {
border-width: 1px;
border-spacing: 2px;
border-style: solid solid solid solid;
border-color: #BFBFBF;
border-collapse: collapse;
background-color: white;
margin: 0 auto;
&.left {
float: left;
}
&.right {
float: right;
}
th {
border-width: 1px;
padding: 2px 3px;
border-style: solid solid solid solid;
border-color: #BFBFBF;
background-color: #F0F5F7;
text-align: center;
color: #666666;
&.wkend {
background-color: #D6DBEA;
}
&.alt {
background-color: #D6DBEA;
}
&.plain {
background: none;
}
}
td {
border-width: 1px;
padding: 1px 4px;
border-style: solid solid solid solid;
border-color: #BFBFBF;
background-color: white;
&.wkend {
background-color: #EAF0F0;
}
&.blank {
background-color: #CDD2E2;
}
&.today {
background-color: #FAEAC9;
}
&:hover {
background-color: #CDD2E2;
}
}
tr {
&.yr-header {
border-bottom-width: 2px;
border-style: none none solid none;
border-color: #D8D8D8;
}
&.blank,
&.blank td {
border: 0;
background: none;
height: 5px;
}
}
a.wikilink2 {
border-bottom: 0 !important;
color: #fca77d !important;
}
}
}
div.dokuwiki .yearbox table.left {
float:left;
}
div.dokuwiki .yearbox table.right {
float:right;
}
div.dokuwiki .yearbox table {
border-width: 1px;
border-spacing: 2px;
border-style: solid solid solid solid;
border-color: #BFBFBF;
border-collapse: collapse;
background-color: white;
margin:0 auto;
}
div.dokuwiki .yearbox table th {
border-width: 1px;
padding:2px 3px;
border-style: solid solid solid solid;
border-color: #BFBFBF;
background-color: #F0F5F7;
text-align: center;
color:#666666;
}
div.dokuwiki .yearbox table tr.yr-header {
border-bottom-width:2px;
border-style: none none solid none;
border-color: #D8D8D8;
}
div.dokuwiki .yearbox table td {
border-width: 1px;
padding: 1px 4px;
border-style: solid solid solid solid;
border-color: #BFBFBF;
background-color: white;
}
div.dokuwiki .yearbox table th.wkend {
background-color: #D6DBEA;
}
div.dokuwiki .yearbox table td.wkend {
background-color: #EAF0F0;
}
div.dokuwiki .yearbox table th.alt {
background-color: #D6DBEA;
}
div.dokuwiki .yearbox table th.plain {
background:none;
}
div.dokuwiki .yearbox a.wikilink2 {
border-bottom:0 !important;
color:#fca77d!important;
}
div.dokuwiki .yearbox table td.blank {
background-color: #CDD2E2;
}
div.dokuwiki .yearbox table td.today {
background-color: #FAEAC9;
}
div.dokuwiki .yearbox table tr.blank,
div.dokuwiki .yearbox table tr.blank td {
border:0;
background:none;
height:5px;
}
div.dokuwiki .yearbox table td:hover {
background-color:#CDD2E2;
}

0 comments on commit a951ce8

Please sign in to comment.