Files
KSP-MGA-Planner/style.css
2023-12-08 01:06:39 +01:00

796 lines
11 KiB
CSS

/* Global styles */
body
{
font-family: "Helvetica Neue", Helvetica;
/*background-color: #222425;*/
background: #1c1e1f;
color: rgb(200, 195, 188);
display: flex;
align-items: center;
}
h1, .calculation-panel-title
{
margin-bottom: 0px;
}
#github-link
{
float: right;
padding-top: 3px;
}
#github-link img
{
width: 32px;
}
.calculation-subtitle
{
margin-top: 5px;
color: #b3afaa;
padding-bottom: 3px;
border-bottom: 1px solid #414242;
}
h6
{
margin-top: 0px;
color: #999692;
}
.error-msg
{
color: rgb(214, 52, 52);
}
.progress-msg
{
color: yellow;
}
strong
{
font-weight: bold;
}
#container
{
display: inline-block;
margin-left: auto;
margin-right: auto;
max-width: 1175px;
margin-top: 30px;
}
#canvas-top-bar
{
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: flex-end;
margin-bottom: 10px;
}
#canvas-top-bar .time-selector
{
margin-bottom: 0;
}
/* Editor forms styles */
#main-content
{
display: flex;
flex-direction: row;
margin-top: 50px;
}
#calculator-panel, #result-panel
{
font-size: 0.9em;
}
#calculator-panel
{
margin-right: 30px;
min-width: 395px;
}
#calculator-panel h2
{
margin-top: 0;
}
select
{
width: 15em;
font-size: inherit;
border: 1px solid black;
background-color: #222425;
scrollbar-color: #3b4042 #222425;
color: inherit;
border-color: rgb(67, 73, 76);
height: 2em;
}
select option
{
color: inherit;
}
select optgroup
{
color: inherit;
}
/* Time selector */
.time-selector
{
display: flex;
flex-direction: row;
margin-bottom: 10px;
}
.control-group .time-selector
{
margin-bottom: 0;
}
.time-input
{
display: flex;
flex-direction: column;
justify-content: flex-start;
width: 70px;
font-size: 0.9em;
margin-right: 10px;
}
.last-time-input
{
margin-right: 0;
}
.time-input label
{
color: #b3afaa;
margin-bottom: 5px;
font-size: 0.83em;
}
/* Editor's inputs */
input[type=number]
{
background-color: rgb(49, 51, 54);
color: white;
border: 1px solid #3c3d3d;
width: 5em;
}
input[type=number]::-webkit-inner-spin-button {
opacity: 0.5;
}
input[type="text"]
{
box-sizing: border-box;
width: 15em;
font-size: inherit;
border: 1px solid black;
background-color: #222425;
scrollbar-color: #3b4042 #222425;
color: inherit;
border-color: rgb(67, 73, 76);
height: 2em;
padding-left: 5px;
padding-right: 5px;
}
input[type="text"]::placeholder
{
font-style: italic;
opacity: 0.25;
}
.control-group
{
margin-bottom: 10px;
display: flex;
align-items: center;
}
.time-selector-group
{
align-items: flex-end;
}
.control-group .control-label
{
width: 140px;
text-align: right;
padding-right: 17px;
}
.time-selector-group .control-label
{
padding-bottom: 2px;
}
.control-group .number-input
{
width: 5em;
}
.controls
{
width: auto;
}
.error-msg, .progress-msg
{
max-width: 356px;
}
#dep-params-subtitle
{
margin-top: 25px;
}
/* Editor forms' action buttons */
.form-actions
{
margin-bottom: 18px;
margin-top: 20px;
background-color: #2c2e2e;
border-top: 1px solid #414242;
height: 50px;
display: flex;
align-items: center;
justify-content: center;
}
#sequence-generator
{
border: none;
background-color: #2c2e2e7e;
}
.submit-btn, .stop-btn
{
color: white;
border: none;
border-radius: 5px;
height: 28px;
font-size: inherit;
border: 1px solid rgb(54, 54, 54);
}
.submit-btn:hover, .stop-btn:hover
{
cursor: pointer;
}
.submit-btn:active, .stop-btn:active
{
cursor: pointer;
}
.submit-btn:disabled, .stop-btn:disabled
{
cursor: default;
}
.stop-btn
{
background-image: linear-gradient(rgb(68, 0, 0), rgb(122, 0, 0));
}
.stop-btn:hover
{
background-image: linear-gradient(rgb(68, 0, 0), rgb(102, 0, 0));
}
.stop-btn:active
{
background-image: none;
background-color: rgb(68, 0, 0);
}
/* Sequence generation button */
#sequence-btn
{
margin-right: 5px;
background-image: linear-gradient(rgb(82, 86, 88), rgb(59, 63, 66));
}
#sequence-btn:hover
{
background-image: linear-gradient(rgb(70, 73, 75), rgb(59, 63, 66));
}
#sequence-btn:active, #sequence-btn:disabled
{
background-image: none;
background-color: rgb(59, 63, 66);
}
/* Trajectory search button */
#search-btn
{
margin-right: 5px;
background-image: linear-gradient(rgb(0, 93, 163), rgb(0, 60, 105));
}
#search-btn:hover
{
background-image: linear-gradient(rgb(0, 78, 138), rgb(0, 60, 105));
}
#search-btn:active, #search-btn:disabled
{
background-image: none;
background-color: rgb(0, 60, 105);
}
/* Chart */
#evolution-plot
{
width: 100%;
height: 250px;
}
/* Result panel */
#system-control-infos
{
font-size: 0.75em;
color: rgba(255, 255, 255, 0.459);
display: flex;
justify-content: space-between;
align-items: center;
}
.control-group p
{
margin: 0;
}
#result-panel
{
border-top: 1px solid #414242;
}
#result-panel h2
{
margin-bottom: 18px;
}
#result-controls .control-label
{
width: 105px;
}
input[type="range"]
{
width: 15.8em;
}
#result-sub-panels
{
height: 127px;
display: flex;
flex-direction: row;
}
.result-details
{
margin-left: 0;
}
.result-details ul
{
margin-top: 0px;
margin-bottom: 0px;
padding-left: 20px;
}
.result-details h3
{
margin-top: 0;
}
#maneuvre-details li strong
{
display: inline-block;
width: 110px;
}
#flyby-details li strong
{
display: inline-block;
width: 127px;
}
#maneuver-dv-li
{
display: flex;
flex-direction: row;
}
/* Maneuver delta-V table */
#maneuver-dv-table
{
border-collapse: collapse;
}
#maneuver-dv-table th
{
width: 65px;
border-width: 0;
padding: 0;
text-align: center;
}
#maneuver-dv-table td
{
padding-top: 5px;
padding-bottom: 5px;
text-align: center;
}
.prograde-label
{
color: #afe54e;
}
.normal-label
{
color: #d45de5;
}
.radial-label
{
color: #66d5f6;
}
/* Clickable dates */
.clickable-date
{
color: rgb(86, 169, 224);
}
.clickable-date:hover
{
cursor: pointer;
}
#result-panel-header
{
display: flex;
justify-content: space-between;
}
#result-panel-header-left
{
display: flex;
justify-content: flex-start;
align-items: center;
}
#show-text-btn
{
margin-left: 10px;
background-image: linear-gradient(rgb(0, 93, 163), rgb(0, 60, 105));
}
#download-csv-btn
{
margin-left: 5px;
background-image: linear-gradient(rgb(0, 137, 57), rgb(0, 87, 46));
}
#show-text-btn:hover
{
background-image: linear-gradient(rgb(0, 78, 138), rgb(0, 60, 105));
}
#download-csv-btn:hover
{
background-image: linear-gradient(rgb(0, 118, 49), rgb(0, 87, 46));
}
#show-text-btn:active
{
background-image: none;
background-color: rgb(0, 60, 105);
}
#download-csv-btn:active
{
background-image: none;
background-color: rgb(0, 87, 46);
}
#show-text-btn:disabled, #download-csv-btn:disabled
{
background-image: none;
background-color: rgb(46, 52, 56);
}
#steps-slider-control-group
{
margin-bottom: 0;
}
#steps-slider-controls
{
width: auto;
}
#displayed-steps-slider
{
margin-bottom: 0;
margin-top: 5px;
}
#result-controls .controls
{
width: auto;
}
#result-controls
{
width: 413px;
}
#insertion-checkbox-container
{
margin-top: 15px;
}
#insertion-checkbox-container .controls
{
margin-left: 157px;
}
#insertion-checkbox
{
margin: 0;
padding: 0;
}
/* Paragraphs */
p
{
font-size: 13px;
margin-top: 7px;
margin-bottom: 7px;
}
em
{
font-style: italic;
}
article h2
{
font-size: 1.9em;
}
article h3
{
font-size: 1.3em;
margin-top: 20px;
}
a:link
{
color: rgb(86, 169, 224);
text-decoration: none;
}
a:hover
{
color: rgb(116, 190, 240);
}
a:visited
{
color: rgb(161, 70, 221);
}
.ref-to-paragraph
{
font-weight: bold;
}
article
{
font-size: 13px;
}
article ul, article ol
{
padding-left: 17px;
}
article li
{
margin-bottom: 5px;
}
#example-image-container
{
border-style: solid;
border-color: #414242;
border-width: 1px;
width: 100%;
margin: 0;
margin-top: 30px;
}
#example-image-container img
{
max-width: 95%;
height: auto;
display:block;
margin-left:auto;
margin-right:auto;
margin-top: 20px;
}
#example-image-container figcaption
{
text-align: center;
margin-top: 10px;
margin-bottom: 10px;
}
/* Footer */
footer
{
margin-top: 50px;
padding-top: 40px;
padding-bottom: 40px;
border-top: 1px solid #414242;
}
footer p
{
margin-bottom: 0;
margin-top: 0;
}
/* Draggable text box */
.draggable-text-box
{
position: fixed;
z-index: 9;
border-style: solid;
border-width: 1px;
border-color: #414242;
border-radius: 5px;
background-color: #0d0e0e;
display: flex;
flex-direction: column;
justify-content: space-between;
top: 100px;
left: 100px;
box-shadow: 5px 5px 5px rgba(0,0,0,0.6);
-moz-box-shadow: 5px 5px 5px rgba(0,0,0,0.6);
-webkit-box-shadow: 5px 5px 5px rgba(0,0,0,0.6);
-o-box-shadow: 5px 5px 5px rgba(0,0,0,0.6);
}
.draggable-text-header
{
padding: 0.3em;
display: flex;
justify-content: space-between;
align-items: center;
}
.draggable-text-header .draggable-text-title
{
margin-top: 0;
margin-bottom: 0;
}
.draggable-text-box textarea
{
/*resize: none;*/
padding: 10px;
color: white;
background-color: rgb(22, 23, 24);
margin-bottom: 0;
min-width: 200px;
width: 100%;
border: none;
overflow: auto;
outline: none;
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.draggable-close-btn, .draggable-copy-btn
{
color: white;
border-radius: 5px;
height: 28px;
width: 28px;
border: 1px solid rgb(54, 54, 54);
font-size: 16px;
}
/* Close button */
.draggable-close-btn
{
background-color: #3e1515;
}
.draggable-close-btn:hover
{
cursor: pointer;
background-color: #512424;
}
.draggable-close-btn:active
{
cursor: pointer;
background-color: #580e0e;
}
.draggable-close-btn:disabled
{
cursor: default;
}
/* Copy to clipboard button */
.draggable-copy-btn
{
background-color: #344c67;
}
.draggable-copy-btn:hover
{
cursor: pointer;
background-color: #4c6786;
}
.draggable-copy-btn:active
{
cursor: pointer;
background-color: #234f81;
}