Skip to content
This repository has been archived by the owner on Apr 5, 2022. It is now read-only.

Commit

Permalink
Adjust mobile tables css (#116)
Browse files Browse the repository at this point in the history
* Adjust mobile tables css

* Adjust default text-align
  • Loading branch information
pacollins committed Feb 29, 2020
1 parent 9a96574 commit eb79012
Showing 1 changed file with 19 additions and 13 deletions.
32 changes: 19 additions & 13 deletions assets/scss/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ textarea {
::-webkit-input-placeholder, :-moz-placeholder,
::-moz-placeholder, :-ms-input-placeholder, .formerize-placeholder {
color: #aaaaaa;
opacity: 1.0;
opacity: 1;
}

/* Table */
Expand Down Expand Up @@ -376,6 +376,7 @@ textarea {
> tbody {
> tr {
border-bottom: 1px solid #e0e0e0;
text-align: center;
@include for-laptop-up {
&:nth-child(even) {
background-color: #f4f4f4;
Expand All @@ -386,24 +387,16 @@ textarea {
}
> td {
display: block;
text-align: right;
@include for-laptop-up {
display: table-cell;
text-align: center;
}

&[align="center"] {
text-align: center;
}
&[align="right"] {
text-align: right;
}
&[data-header]:before {
color: #757575;
content: attr(data-header);
float: left;
font-size: inherit;
font-weight: bold;
margin-right: 1em;
@include for-laptop-up {
display: none;
}
Expand Down Expand Up @@ -436,15 +429,28 @@ textarea {
-ms-transition: none;
-o-transition: none;
-webkit-transition: none;
text-align: right;
transition: none;
z-index: -1;
@include for-laptop-up {
border: 0;
opacity: 100;
opacity: 1;
position: relative;
text-align: center;
z-index: 0;
}
}
@include for-laptop-up {
&[align="left"] {
text-align: left;
}
&[align="center"] {
text-align: center;
}
&[align="right"] {
text-align: right;
}
}
}
&.active > td {
&:first-child {
Expand Down Expand Up @@ -1007,7 +1013,7 @@ textarea {
padding: 0 2.5em;
}
&.overlay {
opacity: .25;
opacity: 0.25;
}
}

Expand Down Expand Up @@ -1468,7 +1474,7 @@ textarea {
}
.no-lang {
cursor: not-allowed;
opacity: .25;
opacity: 0.25;
span {
&:hover {
box-shadow: none;
Expand Down

0 comments on commit eb79012

Please sign in to comment.