mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-10 15:15:34 +00:00
UI changes, added utilitiy services, persistance, serialization
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
@import 'list';
|
||||
@import 'slot';
|
||||
@import 'ship';
|
||||
@import 'select';
|
||||
@import 'charts';
|
||||
@import 'meters';
|
||||
|
||||
@@ -32,10 +33,10 @@ body {
|
||||
height: 100%;
|
||||
z-index: -1;
|
||||
opacity: 0.3;
|
||||
//background-image: url(images/docking-bay.jpg);
|
||||
//background-repeat: no-repeat;
|
||||
//background-position: center;
|
||||
//background-size: cover;
|
||||
background-image: url(images/docking-bay.jpg);
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
background-size: cover;
|
||||
}
|
||||
|
||||
#main {
|
||||
|
||||
84
app/less/select.less
Normal file
84
app/less/select.less
Normal file
@@ -0,0 +1,84 @@
|
||||
.select {
|
||||
color: @primary-disabled;
|
||||
position: absolute;
|
||||
left: -1px;
|
||||
padding: 5px 0;
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
max-height: 300px;
|
||||
overflow-y: scroll;
|
||||
background-color: @bg;
|
||||
border: 1px solid @primary;
|
||||
white-space: nowrap;
|
||||
|
||||
.select-group {
|
||||
clear: both;
|
||||
margin: 5px 0;
|
||||
padding-left: 5px;
|
||||
border-top: 1px solid @primary-disabled;
|
||||
border-bottom: 1px solid @primary-disabled;
|
||||
}
|
||||
|
||||
.empty-c, .c, .lc {
|
||||
cursor: pointer;
|
||||
|
||||
color: @primary-disabled;
|
||||
|
||||
&:hover {
|
||||
color: @warning;
|
||||
}
|
||||
}
|
||||
|
||||
@optionSpacing: 1.8em;
|
||||
|
||||
.lc {
|
||||
padding-left: 5px;
|
||||
line-height:@optionSpacing;
|
||||
}
|
||||
|
||||
.empty-c {
|
||||
line-height:@optionSpacing;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
&.hardpoint {
|
||||
.c {
|
||||
width: 4em;
|
||||
&:nth-child(3n + 1) {
|
||||
clear: left;
|
||||
}
|
||||
&:nth-child(5n +1) {
|
||||
clear: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.c {
|
||||
border:1px solid @primary-disabled;
|
||||
display: block;
|
||||
float:left;
|
||||
padding: 0;
|
||||
margin: 0.5em;
|
||||
width: 2em;
|
||||
line-height: @optionSpacing;
|
||||
text-align: center;
|
||||
|
||||
&:hover {
|
||||
border:1px solid @warning;
|
||||
}
|
||||
|
||||
&:nth-child(5n +1) {
|
||||
clear: left;
|
||||
}
|
||||
}
|
||||
|
||||
ul {
|
||||
margin: 0;
|
||||
margin-left: 20px;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -88,77 +88,3 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.select {
|
||||
color: @primary-disabled;
|
||||
position: absolute;
|
||||
left: -1px;
|
||||
padding: 5px 0;
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
max-height: 300px;
|
||||
overflow-y: scroll;
|
||||
background-color: @bg;
|
||||
border: 1px solid @primary;
|
||||
|
||||
|
||||
.select-group {
|
||||
clear: both;
|
||||
margin: 5px 0;
|
||||
padding-left: 5px;
|
||||
border-top: 1px solid @primary-disabled;
|
||||
border-bottom: 1px solid @primary-disabled;
|
||||
}
|
||||
|
||||
.empty-c, .c, .lc {
|
||||
cursor: pointer;
|
||||
|
||||
color: @primary-disabled;
|
||||
|
||||
&:hover {
|
||||
color: @warning;
|
||||
}
|
||||
}
|
||||
|
||||
@optionSpacing: 1.8em;
|
||||
|
||||
.lc {
|
||||
padding-left: 5px;
|
||||
line-height:@optionSpacing;
|
||||
}
|
||||
|
||||
.empty-c {
|
||||
line-height:@optionSpacing;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.c {
|
||||
border:1px solid @primary-disabled;
|
||||
display: block;
|
||||
float:left;
|
||||
padding: 0;
|
||||
margin: 0.5em;
|
||||
width: 2em;
|
||||
//height: 1.5em;
|
||||
line-height: @optionSpacing;
|
||||
text-align: center;
|
||||
|
||||
&:hover {
|
||||
border:1px solid @warning;
|
||||
}
|
||||
|
||||
&:nth-child(5n +1) {
|
||||
clear: left;
|
||||
}
|
||||
}
|
||||
|
||||
ul {
|
||||
margin: 0;
|
||||
margin-left: 20px;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user