From 15f55fda6a4338b89363766dfcabc5b4404918f2 Mon Sep 17 00:00:00 2001 From: Andreas Weninger Date: Sun, 20 May 2018 16:38:16 +0200 Subject: [#25957] Improved css-File. (Comments, structure, less redundancy) --- src/main/resources/styles/main.css | 58 ++++++++++++++++++++++++++++++-------- 1 file changed, 47 insertions(+), 11 deletions(-) (limited to 'src/main/resources/styles') diff --git a/src/main/resources/styles/main.css b/src/main/resources/styles/main.css index fbacc41..886e756 100644 --- a/src/main/resources/styles/main.css +++ b/src/main/resources/styles/main.css @@ -1,19 +1,52 @@ -.shadowed-white { - -fx-background-color: white; +/* === shadow === */ +.shadowed { -fx-effect: dropshadow(gaussian, rgba(100,100,100,0.8), 5, 0, 0, 3); } -.shadowed-yellow { +/* === background === */ +/* -- basic -- */ +.bg-white { + -fx-background-color: white; +} +/* -- vehiclePane -- */ +.bg-yellow { -fx-background-color: #FFE699; - -fx-effect: dropshadow(gaussian, rgba(100,100,100,0.8), 5, 0, 0, 3); } - -.border-sw { - -fx-background-color: white; - -fx-effect: dropshadow(gaussian, rgba(100,100,100,0.8), 5, 0, 0, 3); - -fx-border-color: black; +.bg-status-green { + -fx-background-color: #C5E0B4; +} +.bg-status-orange { + -fx-background-color: #F8CBAD; +} +/* -- header areas -- */ +.bg-blue { + -fx-background-color: #2E75B6; +} +.bg-green { + -fx-background-color: #548235; +} +.bg-light-orange { + -fx-background-color: #BF9000; +} +.bg-dark-orange { + -fx-background-color: #C55A11; +} +/* -- content areas -- */ +.bg-gray-blue { + -fx-background-color: #E8EAEF; +} +.bg-gray-green { + -fx-background-color: #EBEFE8; +} +.bg-gray-orange { + -fx-background-color: #EFEBE8; +} +/* -- edit area -- */ +.bg-edit-area-orange { + -fx-background-color: #FBE5D6; } +/* === text === */ .text-big { -fx-font-size: 18px; } @@ -26,13 +59,14 @@ -fx-font-size: 14px; } +/* === button === */ .button { -fx-background-radius: 0em; -fx-border-color: black; } .button-main { - -fx-background-color: darkgreen; + -fx-background-color: #548235; -fx-text-fill: white; -fx-font-weight: bold; } @@ -45,6 +79,7 @@ -fx-background-color: #F8CBAD; } +/* === menu item === */ .mi-free { -fx-background-color: #C5E0B4; } @@ -56,4 +91,5 @@ .menu-item:focused .label { -fx-text-fill: black; -fx-font-weight: bold; -} \ No newline at end of file +} + -- cgit v1.2.3-70-g09d2