mirror of
https://github.com/Karaka-Management/cssOMS.git
synced 2026-02-14 00:38:40 +00:00
Add sorting icons to tables and fix whitespace
This commit is contained in:
parent
949f11c584
commit
704a120a00
|
|
@ -3,24 +3,24 @@
|
||||||
.ac-container{
|
.ac-container{
|
||||||
margin: 10px auto 30px auto;
|
margin: 10px auto 30px auto;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
|
|
||||||
> input {
|
> input {
|
||||||
display: none;
|
display: none;
|
||||||
|
|
||||||
&:checked + label {
|
&:checked + label {
|
||||||
@include gradient-top-bottom(#ffffff, 0, $content-background-color, 100, #ffffff);
|
@include gradient-top-bottom(#ffffff, 0, $content-background-color, 100, #ffffff);
|
||||||
color: #000;
|
color: #000;
|
||||||
|
|
||||||
+ section {
|
+ section {
|
||||||
display: inherit;
|
display: inherit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
+ label + section {
|
+ label + section {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
label {
|
label {
|
||||||
display: block;
|
display: block;
|
||||||
padding: 5px 20px;
|
padding: 5px 20px;
|
||||||
|
|
@ -33,12 +33,12 @@
|
||||||
border: 1px solid $content-border-color;
|
border: 1px solid $content-border-color;
|
||||||
@include border-radius(3px);
|
@include border-radius(3px);
|
||||||
@include gradient-top-bottom(#e0e3eb, 0, $content-background-color, 100, $content-background-color);
|
@include gradient-top-bottom(#e0e3eb, 0, $content-background-color, 100, $content-background-color);
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
@include gradient-top-bottom(#ffffff, 0, $content-background-color, 100, #ffffff);
|
@include gradient-top-bottom(#ffffff, 0, $content-background-color, 100, #ffffff);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
> section {
|
> section {
|
||||||
background: $content-background-color;
|
background: $content-background-color;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
|
||||||
|
|
@ -3,10 +3,10 @@
|
||||||
margin: 5px;
|
margin: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@each $tuple in
|
@each $tuple in
|
||||||
'ok' #aaffad #81e27d #459442,
|
'ok' #aaffad #81e27d #459442,
|
||||||
'warning' #f8ffa8 #d6d949 #94972f,
|
'warning' #f8ffa8 #d6d949 #94972f,
|
||||||
'error' #ff7d79 #ee5649 #a5302a,
|
'error' #ff7d79 #ee5649 #a5302a,
|
||||||
'info' #b6d2ff #85b0ee #4865a5 {
|
'info' #b6d2ff #85b0ee #4865a5 {
|
||||||
.log-msg-status-#{nth($tuple, 1)} {
|
.log-msg-status-#{nth($tuple, 1)} {
|
||||||
background: #{nth($tuple, 2)};
|
background: #{nth($tuple, 2)};
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@
|
||||||
&:first-child {
|
&:first-child {
|
||||||
@include border-left-radius(3px);
|
@include border-left-radius(3px);
|
||||||
}
|
}
|
||||||
|
|
||||||
&:not(.last):after, &:before {
|
&:not(.last):after, &:before {
|
||||||
content:" ";
|
content:" ";
|
||||||
display: block;
|
display: block;
|
||||||
|
|
@ -34,35 +34,35 @@
|
||||||
margin-top: -18px;
|
margin-top: -18px;
|
||||||
left: 100%;
|
left: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:not(.last):after {
|
&:not(.last):after {
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:before {
|
&:before {
|
||||||
border-left-color: $content-border-color;
|
border-left-color: $content-border-color;
|
||||||
margin-left: 1px;
|
margin-left: 1px;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.active:not(.last):after, &:hover:not(.last):after {
|
&.active:not(.last):after, &:hover:not(.last):after {
|
||||||
border-left: 14px solid #ffffff;
|
border-left: 14px solid #ffffff;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.last {
|
.last {
|
||||||
padding-right: 20px;
|
padding-right: 20px;
|
||||||
@include border-right-radius(3px);
|
@include border-right-radius(3px);
|
||||||
|
|
||||||
&:before {
|
&:before {
|
||||||
border: none;
|
border: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.active {
|
.active {
|
||||||
cursor: default;
|
cursor: default;
|
||||||
}
|
}
|
||||||
|
|
||||||
.active, li:hover {
|
.active, li:hover {
|
||||||
background: #ffffff;
|
background: #ffffff;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
10
button.scss
10
button.scss
|
|
@ -48,7 +48,7 @@ ul.btns {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
|
|
||||||
li {
|
li {
|
||||||
background: $content-background-color;
|
background: $content-background-color;
|
||||||
border-left: 1px solid $content-border-color;
|
border-left: 1px solid $content-border-color;
|
||||||
|
|
@ -63,22 +63,22 @@ ul.btns {
|
||||||
&:last-child {
|
&:last-child {
|
||||||
border-right: 1px solid $content-border-color;
|
border-right: 1px solid $content-border-color;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:before {
|
&:before {
|
||||||
border-left-color: $content-border-color;
|
border-left-color: $content-border-color;
|
||||||
margin-left: 1px;
|
margin-left: 1px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
display: block;
|
display: block;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.active {
|
.active {
|
||||||
cursor: default;
|
cursor: default;
|
||||||
}
|
}
|
||||||
|
|
||||||
.active, li:hover {
|
.active, li:hover {
|
||||||
background: #ffffff;
|
background: #ffffff;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,13 @@
|
||||||
@each $tuple in
|
@each $tuple in
|
||||||
'ok' #5cff56, 'warning' #ff4b41, 'favorite' #d16059 {
|
'ok' #5cff56, 'warning' #ff4b41, 'favorite' #d16059 {
|
||||||
.#{nth($tuple, 1)} {
|
.#{nth($tuple, 1)} {
|
||||||
color: #{nth($tuple, 2)};
|
color: #{nth($tuple, 2)};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@each $tuple in
|
@each $tuple in
|
||||||
'green' #61BD6D, 'red' #D14841, 'blue' #2C82C9,
|
'green' #61BD6D, 'red' #D14841, 'blue' #2C82C9,
|
||||||
'orange' #FBA026, 'lightblue' #54ACD2, 'yellow' #FAC51C, 'purple' #553982, 'pink' #ffa6e3, 'grey' #dcdcdc,
|
'orange' #FBA026, 'lightblue' #54ACD2, 'yellow' #FAC51C, 'purple' #553982, 'pink' #ffa6e3, 'grey' #dcdcdc,
|
||||||
'darkred' #B8312F, 'darkgreen' #41A85F, 'darkblue' #2969B0 {
|
'darkred' #B8312F, 'darkgreen' #41A85F, 'darkblue' #2969B0 {
|
||||||
.#{nth($tuple, 1)} {
|
.#{nth($tuple, 1)} {
|
||||||
background: #{nth($tuple, 2)};
|
background: #{nth($tuple, 2)};
|
||||||
|
|
|
||||||
12
form.scss
12
form.scss
|
|
@ -4,26 +4,26 @@ form {
|
||||||
li {
|
li {
|
||||||
margin: 5px 0 5px 0;
|
margin: 5px 0 5px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
td {
|
td {
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
padding-bottom: 5px;
|
padding-bottom: 5px;
|
||||||
|
|
||||||
textarea+i {
|
textarea+i {
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
label {
|
label {
|
||||||
font-size: 0.9em;
|
font-size: 0.9em;
|
||||||
color: #878787;
|
color: #878787;
|
||||||
text-shadow: -1px -1px 1px #ffffff;
|
text-shadow: -1px -1px 1px #ffffff;
|
||||||
}
|
}
|
||||||
|
|
||||||
i+i {
|
i+i {
|
||||||
margin-left: 3px;
|
margin-left: 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.inputPrefix {
|
.inputPrefix {
|
||||||
border-left: 1px solid $content-border-color;
|
border-left: 1px solid $content-border-color;
|
||||||
border-top: 1px solid $content-border-color;
|
border-top: 1px solid $content-border-color;
|
||||||
|
|
@ -36,7 +36,7 @@ form {
|
||||||
.layout td+td {
|
.layout td+td {
|
||||||
padding-left: 5px;
|
padding-left: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.list {
|
.list {
|
||||||
font-size: 0.9em;
|
font-size: 0.9em;
|
||||||
|
|
||||||
|
|
|
||||||
20
image.scss
20
image.scss
|
|
@ -37,7 +37,7 @@ img {
|
||||||
|
|
||||||
div.slider-1 {
|
div.slider-1 {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
figure {
|
figure {
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 500%;
|
width: 500%;
|
||||||
|
|
@ -47,8 +47,8 @@ div.slider-1 {
|
||||||
font-size: 0;
|
font-size: 0;
|
||||||
animation: 30s slidy infinite;
|
animation: 30s slidy infinite;
|
||||||
|
|
||||||
img {
|
img {
|
||||||
width: 20%; float: left;
|
width: 20%; float: left;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -58,7 +58,7 @@ div.slider-1 {
|
||||||
position: relative;
|
position: relative;
|
||||||
padding-top: auto;
|
padding-top: auto;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
||||||
> img {
|
> img {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|
@ -66,26 +66,26 @@ div.slider-1 {
|
||||||
transition: all 0.5s;
|
transition: all 0.5s;
|
||||||
box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.75);
|
box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.75);
|
||||||
}
|
}
|
||||||
|
|
||||||
input {
|
input {
|
||||||
display: none;
|
display: none;
|
||||||
|
|
||||||
&:checked+label {
|
&:checked+label {
|
||||||
border-color: #666;
|
border-color: #666;
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
|
|
||||||
+img {
|
+img {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
transform: scale(1);
|
transform: scale(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
~ img {
|
~ img {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
transform: scale(1.1);
|
transform: scale(1.1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
label {
|
label {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin-top: calc(50% + 15px);
|
margin-top: calc(50% + 15px);
|
||||||
|
|
@ -93,7 +93,7 @@ div.slider-1 {
|
||||||
border: 3px solid #999;
|
border: 3px solid #999;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
opacity: 0.6;
|
opacity: 0.6;
|
||||||
|
|
||||||
img{
|
img{
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -42,11 +42,11 @@ ul.h-list li {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
border-spacing: 0;
|
border-spacing: 0;
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
|
|
||||||
td:first-child {
|
td:first-child {
|
||||||
padding-right: 20px;
|
padding-right: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
span {
|
span {
|
||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
}
|
}
|
||||||
|
|
@ -58,7 +58,7 @@ ul.h-list li {
|
||||||
border-radius: 30px;
|
border-radius: 30px;
|
||||||
background: #ccc;
|
background: #ccc;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
|
||||||
&.active {
|
&.active {
|
||||||
background: #000;
|
background: #000;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
2
nav.scss
2
nav.scss
|
|
@ -14,7 +14,7 @@
|
||||||
background: #2F2F2F;
|
background: #2F2F2F;
|
||||||
|
|
||||||
span {
|
span {
|
||||||
width: 20px;
|
width: 20px;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
height: 20px; /* Can be anything */
|
height: 20px; /* Can be anything */
|
||||||
position: relative;
|
position: relative;
|
||||||
background: none !important;
|
background: none !important;
|
||||||
|
|
||||||
> span {
|
> span {
|
||||||
display: block;
|
display: block;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|
@ -188,7 +188,7 @@
|
||||||
height: 70px;
|
height: 70px;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
background-color: tomato;
|
background-color: tomato;
|
||||||
|
|
||||||
.overlay {
|
.overlay {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 60px;
|
width: 60px;
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin-top: 0.3rem;
|
margin-top: 0.3rem;
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
|
|
||||||
.inner {
|
.inner {
|
||||||
@include box-sizing(border-box);
|
@include box-sizing(border-box);
|
||||||
@include box-shadow-out(#ffffff);
|
@include box-shadow-out(#ffffff);
|
||||||
|
|
@ -57,7 +57,7 @@ section {
|
||||||
border-bottom: 1px solid #e1e1e1;
|
border-bottom: 1px solid #e1e1e1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
> h2 {
|
> h2 {
|
||||||
@include box-sizing(border-box);
|
@include box-sizing(border-box);
|
||||||
font-size: 1.2em;
|
font-size: 1.2em;
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
.slider {
|
.slider {
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
|
||||||
ul {
|
ul {
|
||||||
display: inline;
|
display: inline;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4729,6 +4729,10 @@ section > h2 {
|
||||||
/* Content box */
|
/* Content box */
|
||||||
/* Navigation */
|
/* Navigation */
|
||||||
/* Colors */
|
/* Colors */
|
||||||
|
table .sort-asc, table .sort-desc {
|
||||||
|
padding-left: 5px;
|
||||||
|
cursor: pointer; }
|
||||||
|
|
||||||
.table {
|
.table {
|
||||||
background: none; }
|
background: none; }
|
||||||
.table caption {
|
.table caption {
|
||||||
|
|
|
||||||
17
table.scss
17
table.scss
|
|
@ -1,39 +1,44 @@
|
||||||
@import "_mixins", "_vars";
|
@import "_mixins", "_vars";
|
||||||
|
|
||||||
|
table .sort-asc, table .sort-desc {
|
||||||
|
padding-left: 5px;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
.table {
|
.table {
|
||||||
background: none;
|
background: none;
|
||||||
caption {
|
caption {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
thead {
|
thead {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.red {
|
&.red {
|
||||||
caption, thead {
|
caption, thead {
|
||||||
background: #B8312F;
|
background: #B8312F;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&.orange {
|
&.orange {
|
||||||
caption, thead {
|
caption, thead {
|
||||||
background: #FBA026;
|
background: #FBA026;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&.green {
|
&.green {
|
||||||
caption, thead {
|
caption, thead {
|
||||||
background: #41A85F;
|
background: #41A85F;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&.blue {
|
&.blue {
|
||||||
caption, thead {
|
caption, thead {
|
||||||
background: #2C82C9;
|
background: #2C82C9;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&.white {
|
&.white {
|
||||||
caption, thead {
|
caption, thead {
|
||||||
background: #fff;
|
background: #fff;
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@
|
||||||
left: 50%;
|
left: 50%;
|
||||||
margin-left: -10px;
|
margin-left: -10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
> i:after{
|
> i:after{
|
||||||
border-top: 10px solid #000000;
|
border-top: 10px solid #000000;
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user