Changeset 3b7e9f6 for src/webapp/common


Ignore:
Timestamp:
Oct 28, 2018, 4:37:10 PM (8 years ago)
Author:
Joachim Langenbach <joachim.langenbach@…>
Branches:
debian/bullseye, master
Children:
2fa2ef8
Parents:
46eee06
Message:
  • Removed not needed styles from GnuBoatColors.css
  • Added subnamespace GnuBoat.Webclient in javascripts
  • Moved common methods into GnuBoat.js (like displayMessage())
  • side-menu.css: Menu is hidden by default (independend from display resolution
Location:
src/webapp/common
Files:
1 added
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • src/webapp/common/css/GnuBoatColors.css

    r46eee06 r3b7e9f6  
    3333        --gnuboat-warning: var(--gnuboat-red);
    3434}
    35 
    36 .backgroundblue {
    37         background-color: var(--gnuboat-primary-middle);
    38         background-image: linear-gradient(var(--gnuboat-primary-light), var(--gnuboat-primary-middle));
    39 }
    40 
    41 .backgroundgreen {
    42         background-color: var(--gnuboat-secondary-middle);
    43         background-image: linear-gradient(var(--gnuboat-secondary-light), var(--gnuboat-secondary-middle));
    44 }
    45 
    46 .l-box {
    47         padding: 1em;
    48 }
    49 
    50 .header h1 img {
    51         height: 2em;
    52         width: auto;
    53 }
    54 
    55 #display {
    56         background-color: var(--gnuboat-primary-light);
    57         height: 9em;
    58         min-width: 14em;
    59         font-size: 12pt;
    60         font-weight: normal;
    61         padding: 0mm;
    62         position:relative;
    63         line-height: 1.5em;
    64         color: black;
    65 }
    66 
    67 #display h2 {
    68         font-size: 12pt;
    69         font-weight: normal;
    70         margin: 0em;
    71         padding: 0em;
    72 }
    73 
    74 #display span {
    75         font-size: 24pt;
    76         font-weight: bold;
    77         margin: 0em;
    78         padding: 0em;
    79 }
    80 
    81 #display #speedthroughwater {
    82         position: absolute;
    83         top: 0.5em;
    84         left: 0.5em;
    85 }
    86 
    87 #display .important {
    88         font-size: 40pt;
    89         line-height: 0.6em;
    90 }
    91 
    92 #display #speedoverground {
    93         position: absolute;
    94         top:  0.5em;
    95         left: 7em;
    96 }
    97 
    98 #display #waterdepth {
    99         position: absolute;
    100         top: 5em;
    101         left: 0.5em;
    102 }
    103 
    104 #display #watertemperature {
    105         position: absolute;
    106         top: 5em;
    107         left: 7em;
    108 }
    109 
    110 #display #gpsfix {
    111         position: absolute;
    112         top: 5em;
    113         left: 11em;
    114 }
    115 
    116 .viewportGeometry {
    117 /*      width: 100%; */
    118         height: 24em;
    119 }
    120 
    121 #mapViewport {
    122         border: 1px solid #347C7C;
    123         margin-top: 1em;
    124 }
    125 
    126 .shutdown-button {
    127         background-color: #8C1C00;
    128         color: white;
    129         font-weight: bold;
    130         height: 3em;
    131         width: 100%;
    132         margin-top: 3em;
    133 }
    134 
    135 #message .error {
    136         font-weight: bold;
    137         color: #8C1C00;
    138 }
    139 
    140 #message .info {
    141         font-weight: bold;
    142         color: #45A545;
    143 }
    144 
    145 .logfiles-reload-button, .logfiles-reload-button:hover, .logfiles-reload-button:active, .logfiles-reload-button:focus {
    146         float: right;
    147         background:url('../resources/view-refresh.svg') no-repeat left center;
    148 }
    149 
    150 .hidden {
    151         display: none;
    152 }
    153 
    154 #mapLgend table {
    155         margin-top: 0.25em;
    156         margin-left: 1em;
    157 }
    158 
    159 #mapLegend table tr td.level {
    160         text-align: right;
    161 }
  • src/webapp/common/css/side-menu.css

    r46eee06 r3b7e9f6  
    227227Hides the menu at `48em`, but modify this based on your app's needs.
    228228*/
    229 @media (min-width: 48em) {
     229@media (min-width: 99999em) {
    230230
    231231    .header,
    … …  
    254254}
    255255
    256 @media (max-width: 48em) {
     256@media (max-width: 99999em) {
    257257    /* Only apply this when the window is small. Otherwise, the following
    258258    case results in extra padding on the left:
Note: See TracChangeset for help on using the changeset viewer.