mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-10 15:15:34 +00:00
Refactored responsive stuff.
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
@import 'colors';
|
@import 'colors';
|
||||||
@import 'fonts';
|
@import 'fonts';
|
||||||
|
@import 'responsive';
|
||||||
@import 'utilities';
|
@import 'utilities';
|
||||||
@import 'icons';
|
@import 'icons';
|
||||||
@import 'background-images';
|
@import 'background-images';
|
||||||
|
|||||||
@@ -47,7 +47,6 @@ header {
|
|||||||
color: @warning;
|
color: @warning;
|
||||||
// Less than 600px screen width: hide text
|
// Less than 600px screen width: hide text
|
||||||
|
|
||||||
|
|
||||||
&.disabled {
|
&.disabled {
|
||||||
color: @warning-disabled;
|
color: @warning-disabled;
|
||||||
cursor: default;
|
cursor: default;
|
||||||
@@ -58,15 +57,11 @@ header {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.menu-item-label {
|
.menu-item-label {
|
||||||
@media screen and (min-width: 541px) {
|
|
||||||
margin-left: 1em;
|
margin-left: 1em;
|
||||||
}
|
|
||||||
@media screen and (max-width: 540px) {
|
.medPhone({
|
||||||
margin-left: 0.5em;
|
|
||||||
}
|
|
||||||
@media screen and (max-width: 520px) {
|
|
||||||
display: none;
|
display: none;
|
||||||
}
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -7,17 +7,16 @@
|
|||||||
|
|
||||||
.tablet({
|
.tablet({
|
||||||
width: 100%;
|
width: 100%;
|
||||||
//min-width: 750px;
|
|
||||||
//font-size: 0.8em;
|
|
||||||
});
|
});
|
||||||
|
|
||||||
&>.list {
|
&>.list {
|
||||||
@media screen and (max-width: 1000px) {
|
.tablet({
|
||||||
width: 49%;
|
width: 49%;
|
||||||
}
|
});
|
||||||
@media screen and (max-width: 600px) {
|
|
||||||
|
.largePhone({
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -64,10 +63,10 @@
|
|||||||
color: @primary;
|
color: @primary;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@media screen and (max-width: 340px) {
|
|
||||||
button {
|
button {
|
||||||
|
.smallPhone({
|
||||||
padding: 0.25em;
|
padding: 0.25em;
|
||||||
}
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -88,19 +87,19 @@
|
|||||||
.outfit-button-label {
|
.outfit-button-label {
|
||||||
margin-left: 0.5em;
|
margin-left: 0.5em;
|
||||||
|
|
||||||
@media screen and (max-width: 640px) {
|
.largePhone({
|
||||||
display: none;
|
display: none;
|
||||||
}
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
#jumpRange {
|
#jumpRange {
|
||||||
width: 50%;
|
width: 50%;
|
||||||
padding: 0 0.5em;
|
padding: 0 0.5em;
|
||||||
|
|
||||||
@media screen and (max-width: 1000px) {
|
.tablet({
|
||||||
float: right;
|
float: right;
|
||||||
clear: both;
|
clear: both;
|
||||||
display: block;
|
display: block;
|
||||||
width: 100% !important;
|
width: 100% !important;
|
||||||
}
|
});
|
||||||
}
|
}
|
||||||
28
app/less/responsive.less
Normal file
28
app/less/responsive.less
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
// Screens less than 1024 wide
|
||||||
|
// More will be added over time to support mobile devices better
|
||||||
|
// These are designed to trickle down. So tablet styles will apply to tablet and smaller, etc
|
||||||
|
// To overwrite, put the smallest devices at the bottom
|
||||||
|
|
||||||
|
.smallPhone(@rules) {
|
||||||
|
@media only screen and (max-width: 350px) {
|
||||||
|
@rules();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.medPhone(@rules) {
|
||||||
|
@media only screen and /*(min-width: 351px) and */ (max-width: 550px) {
|
||||||
|
@rules();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.largePhone(@rules) {
|
||||||
|
@media only screen and /*(min-width: 551px) and */ (max-width: 640px) {
|
||||||
|
@rules();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.tablet(@rules) {
|
||||||
|
@media only screen and /*(min-width: 601px) and */(max-width: 1024px) {
|
||||||
|
@rules();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -16,9 +16,9 @@ a.ship {
|
|||||||
text-align: right;
|
text-align: right;
|
||||||
.user-select-none();
|
.user-select-none();
|
||||||
|
|
||||||
@media screen and (max-width: 350px) {
|
.smallPhone({
|
||||||
width: 16em;
|
width: 16em;
|
||||||
}
|
});
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|||||||
@@ -17,17 +17,17 @@
|
|||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 1000px) {
|
.tablet({
|
||||||
width: 50%;
|
width: 50%;
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
margin: 1em 0 0 0;
|
margin: 1em 0 0 0;
|
||||||
}
|
}
|
||||||
}
|
});
|
||||||
|
|
||||||
@media screen and (max-width: 610px) {
|
.largePhone({
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
.slot {
|
.slot {
|
||||||
|
|||||||
@@ -29,11 +29,3 @@
|
|||||||
-ms-user-select: none;
|
-ms-user-select: none;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Screens less than 1024 wide
|
|
||||||
// More will be added over time to support mobile devices better
|
|
||||||
.tablet(@rules) {
|
|
||||||
@media only screen and (min-width: 300px) and (max-width: 1024px) {
|
|
||||||
@rules();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user