Fixed mobile styling for table

This commit is contained in:
Luke Barrett 2018-10-05 23:05:18 -06:00
parent 293b58815f
commit 35d25d79eb

View file

@ -1,3 +1,76 @@
@media only screen and (max-width: 425px) {
thead {
> tr {
visibility: collapse;
}
}
tbody {
> tr {
display: grid;
grid-template-columns: auto auto;
grid-template-areas:
"func func"
"name name"
"email link";
width: 87vw;
}
> tr > td:nth-child(3) {
grid-area: email;
}
> tr > td:nth-child(2) {
grid-area: name;
}
> tr > td:nth-child(4) {
display: grid;
justify-items: end;
grid-area: link;
}
> tr > td:nth-child(1) {
grid-area: func;
}
}
tbody {
> tr:last-child {
> td:nth-child(1) {
border: 1px solid #dbdbdb !important;
border-width: 0 0 1px !important;
padding: 0.5em 0.75em !important;
vertical-align: top !important;
}
> td:nth-child(2) {
border: 1px solid #dbdbdb !important;
border-width: 0 0 1px !important;
padding: 0.5em 0.75em !important;
vertical-align: top !important;
}
}
}
tbody {
> tr > td:nth-child(3):before {
content: "E-mail: ";
font-weight: bold;
}
}
tbody {
> tr > td:nth-child(2):before {
content: "Name: ";
font-weight: bold;
}
}
tbody {
> tr > td:nth-child(1):before {
content: "Function: ";
font-weight: bold;
}
}
tbody {
> tr > td:nth-child(4):before {
grid-area: link;
}
}
}
#contact-icons {
display: flex;
justify-content: center;
@ -44,16 +117,14 @@
}
}
.contact-circle-wrapper:hover, .contact-circle-wrapper:focus {
.contact-circle-wrapper:hover,
.contact-circle-wrapper:focus {
.grow {
transition: all .2s ease-in-out;
transition: all 0.2s ease-in-out;
-moz-transform: scale(1.2);
-webkit-transform: scale(1.2);
transform: scale(1.2);
}
}
.contact-description {
@ -74,7 +145,6 @@
color: $secondary;
}
}
}
#contact-info {
@ -92,7 +162,8 @@
text-align: center;
}
.button:hover, .button:focus {
.button:hover,
.button:focus {
border-color: $primary;
}
}