From a93d16c9dc0226fd0dec5a5007d0606980bda191 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Wed, 9 Oct 2013 15:41:56 +0200 Subject: [PATCH] Start using SASS --- .gitignore | 1 + public_html/static/css/jsde.base.css | 190 ++++----- public_html/static/css/jsde.style.css | 313 ++++++--------- public_html/static/css/openng.css | 532 +++++++++++--------------- scss/jsde.base.scss | 121 ++++++ scss/jsde.style.scss | 198 ++++++++++ scss/openng.scss | 315 +++++++++++++++ 7 files changed, 1052 insertions(+), 618 deletions(-) mode change 100755 => 100644 public_html/static/css/jsde.base.css mode change 100755 => 100644 public_html/static/css/jsde.style.css create mode 100755 scss/jsde.base.scss create mode 100755 scss/jsde.style.scss create mode 100644 scss/openng.scss diff --git a/.gitignore b/.gitignore index d344ba6..189a89b 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ config.json +.sass-cache diff --git a/public_html/static/css/jsde.base.css b/public_html/static/css/jsde.base.css old mode 100755 new mode 100644 index 32529ed..4c5e0d0 --- a/public_html/static/css/jsde.base.css +++ b/public_html/static/css/jsde.base.css @@ -1,121 +1,85 @@ -html, body -{ - overflow: hidden; -} +html, body { + overflow: hidden; } -body -{ - position: fixed; - margin: 0px; - width: 100%; - height: 100%; -} +body { + position: fixed; + margin: 0px; + width: 100%; + height: 100%; } -#jsde_templates -{ - display: none; -} +#jsde_templates { + display: none; } /* MDIWindow Styling | Generic */ - -div.window-wrapper -{ - position: absolute; -} - -div.window-title -{ - position: absolute; - z-index: 2; - left: 0px; - right: 0px; - top: 0px; - cursor: default; - text-overflow: ellipsis; - overflow: hidden; - white-space: nowrap; -} - -div.window-outer -{ - position: absolute; - z-index: 3; - left: 0px; - right: 0px; - bottom: 0px; -} - -div.window-inner-wrapper -{ - position: absolute; - top: 0px; - bottom: 0px; - left: 0px; - right: 0px; - overflow-y: auto; - overflow-x: auto; -} - -.window-noscroll -{ - overflow-x: hidden !important; - overflow-y: hidden !important; -} - -div.window-close -{ - float: right; -} - -div.window-close a -{ - position: absolute; - right: 3px; - top: 2px; - display: block; - padding: 1px 4px; - text-decoration: none; - font-size: 12px; - border-radius: 5px; -} +div.window-wrapper { + position: absolute; } + +div.window-title { + position: absolute; + z-index: 2; + left: 0px; + right: 0px; + top: 0px; + cursor: default; + text-overflow: ellipsis; + overflow: hidden; + white-space: nowrap; } + +div.window-outer { + position: absolute; + z-index: 3; + left: 0px; + right: 0px; + bottom: 0px; } + +div.window-inner-wrapper { + position: absolute; + top: 0px; + bottom: 0px; + left: 0px; + right: 0px; + overflow-y: auto; + overflow-x: auto; } + +.window-noscroll { + overflow-x: hidden !important; + overflow-y: hidden !important; } + +div.window-close { + float: right; } + +div.window-close a { + position: absolute; + right: 3px; + top: 2px; + display: block; + padding: 1px 4px; + text-decoration: none; + font-size: 12px; + border-radius: 5px; } /* MDIWindow Styling | Normal state */ - - -div.window-styled div.window-inner -{ - visibility: visible; -} - +div.window-styled div.window-inner { + visibility: visible; } /* MDIWindow Styling | Dragging state */ - - -div.window-dragged div.window-inner -{ - visibility: hidden; -} - -div.workspace-bar -{ - position: absolute; - bottom: 0px; - left: 0px; - right: 0px; -} - -a.workspace-tab -{ - display: block; - float: left; -} - -div.window-resizer -{ - position: absolute; - width: 12px; - height: 12px; - bottom: -6px; - right: -6px; - cursor: se-resize; -} +div.window-dragged div.window-inner { + visibility: hidden; } + +div.workspace-bar { + position: absolute; + bottom: 0px; + left: 0px; + right: 0px; } + +a.workspace-tab { + display: block; + float: left; } + +div.window-resizer { + position: absolute; + width: 12px; + height: 12px; + bottom: -6px; + right: -6px; + cursor: se-resize; } diff --git a/public_html/static/css/jsde.style.css b/public_html/static/css/jsde.style.css old mode 100755 new mode 100644 index ebb4dd7..5eeb315 --- a/public_html/static/css/jsde.style.css +++ b/public_html/static/css/jsde.style.css @@ -1,198 +1,131 @@ -html,body -{ - font-family: 'Varela Round', sans-serif, Trebuchet MS; - background-color: silver; - background-attachment:fixed; - background-position:center; -} +html, body { + font-family: "Varela Round", sans-serif, Trebuchet MS; + background-color: silver; + background-attachment: fixed; + background-position: center; } /* Temporary styles */ - -div#make-window -{ - background-color: white; - border: 1px solid gray; - padding: 14px; - width: 350px; - filter:alpha(opacity=85); - opacity:0.85; -} +div#make-window { + background-color: white; + border: 1px solid gray; + padding: 14px; + width: 350px; + filter: alpha(opacity=85); + opacity: 0.85; } /* MDIWindow Styling | Generic */ - -div.window-title -{ - -webkit-border-top-left-radius: 10px; - -webkit-border-top-right-radius: 10px; - -moz-border-radius-topleft: 10px; - -moz-border-radius-topright: 10px; - border-top-left-radius: 10px; - border-top-right-radius: 10px; - height: 16px; - color: white; - font-size: 14px; - font-weight: bold; - padding: 4px; - padding-left: 7px; - border-top: 1px solid #959595; - border-right: 1px solid #959595; - border-left: 1px solid #959595; -} - -div.window-focused div.window-title -{ - border-top: 1px solid #6262FF; - border-right: 1px solid #6262FF; - border-left: 1px solid #6262FF; -} - -div.window-outer -{ - font-size: 13px; - top: 25px; - border-bottom: 1px solid gray; - border-right: 1px solid gray; - border-left: 1px solid gray; -} - -div.window-inner -{ - padding: 7px; -} - -div.window-close a -{ - color: white; - border: 1px solid #014D8C; -} - -div.window-close a:hover -{ - background-color: #014D8C; - border: 1px solid white; -} +div.window-title { + -webkit-border-top-left-radius: 10px; + -webkit-border-top-right-radius: 10px; + -moz-border-radius-topleft: 10px; + -moz-border-radius-topright: 10px; + border-top-left-radius: 10px; + border-top-right-radius: 10px; + height: 16px; + color: white; + font-size: 14px; + font-weight: bold; + padding: 4px; + padding-left: 7px; + border-top: 1px solid #959595; + border-right: 1px solid #959595; + border-left: 1px solid #959595; } + +div.window-focused div.window-title { + border-top: 1px solid #6262ff; + border-right: 1px solid #6262ff; + border-left: 1px solid #6262ff; } + +div.window-outer { + font-size: 13px; + top: 25px; + border-bottom: 1px solid gray; + border-right: 1px solid gray; + border-left: 1px solid gray; } + +div.window-inner { + padding: 7px; } + +div.window-close a { + color: white; + border: 1px solid #014d8c; } + +div.window-close a:hover { + background-color: #014D8C; + border: 1px solid white; } /* MDIWindow Styling | Normal state */ - -div.window-styled div.window-title, div.window-styled div.window-outer -{ - -webkit-box-shadow: 5px 5px 10px #1a1a1a; - -moz-box-shadow: 5px 5px 10px #1a1a1a; - box-shadow: 5px 5px 10px #1a1a1a; -} - -div.window-styled div.window-title -{ - background-image: -webkit-gradient( - linear, - left bottom, - left top, - color-stop(0, rgb(82,82,82)), - color-stop(1, rgb(145,172,190)) - ); - background-image: -moz-linear-gradient( - center bottom, - rgb(82,82,82) 0%, - rgb(145,172,190) 100% - ); - - filter:alpha(opacity=95); - opacity:0.95; -} - -div.window-styled div.window-outer -{ - background-color: #F7F7F0; - filter:alpha(opacity=95); - opacity:0.95; -} - -div.window-focused.window-styled div.window-title -{ - background-image: -webkit-gradient( - linear, - left bottom, - left top, - color-stop(0, rgb(0,87,179)), - color-stop(1, rgb(0,153,255)) - ); - background-image: -moz-linear-gradient( - center bottom, - rgb(0,87,179) 0%, - rgb(0,153,255) 100% - ); - filter:alpha(opacity=85); - opacity:0.85; -} +div.window-styled div.window-title, div.window-styled div.window-outer { + -webkit-box-shadow: 5px 5px 10px #1a1a1a; + -moz-box-shadow: 5px 5px 10px #1a1a1a; + box-shadow: 5px 5px 10px #1a1a1a; } + +div.window-styled div.window-title { + background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #525252), color-stop(1, #91acbe)); + background-image: -moz-linear-gradient(center bottom, #525252 0%, #91acbe 100%); + filter: alpha(opacity=95); + opacity: 0.95; } + +div.window-styled div.window-outer { + background-color: #F7F7F0; + filter: alpha(opacity=95); + opacity: 0.95; } + +div.window-focused.window-styled div.window-title { + background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #0057b3), color-stop(1, #0099ff)); + background-image: -moz-linear-gradient(center bottom, #0057b3 0%, #0099ff 100%); + filter: alpha(opacity=85); + opacity: 0.85; } /* MDIWindow Styling | Dragging state */ - -div.window-dragged div.window-title -{ - background-color: #0070D5; - background-image: none; -} - -div.workspace-bar -{ - height: 32px; -} - -div.window-dragged div.window-outer -{ - background: none; -} - -div.window-dragged div.window-title, div.window-dragged div.window-outer -{ - -webkit-box-shadow: none; - -moz-box-shadow: none; - box-shadow: none; -} - -a.workspace-tab -{ - height: 32px; - width: 48px; - -webkit-border-top-left-radius: 10px; - -webkit-border-top-right-radius: 10px; - -moz-border-radius-topleft: 10px; - -moz-border-radius-topright: 10px; - border-top-left-radius: 10px; - border-top-right-radius: 10px; - border: 1px solid black; - background-color: #E9E9E9; - padding-top: 6px; - text-align: center; - text-decoration: none; - font-size: 14px; - color: black; - margin-top: 10px; - filter:alpha(opacity=95); - opacity:0.95; -} - -a.workspace-tab:hover -{ - background-color: #DADADA; - margin-top: 0px; -} - -a.workspace-tab-active -{ - font-weight: bold; - background-color: #B9B9B9; - color: #BC0000; -} - -a.workspace-tab-popup -{ - margin-top: 0px; -} - -a.workspace-tab-add -{ - background-color: #C8C8C8; - filter:alpha(opacity=85); - opacity:0.85; -} +div.window-dragged div.window-title { + background-color: #0070D5; + background-image: none; } + +div.workspace-bar { + height: 32px; } + +div.window-dragged div.window-outer { + background: none; } + +div.window-dragged div.window-title, div.window-dragged div.window-outer { + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; } + +a.workspace-tab { + height: 32px; + width: 48px; + -webkit-border-top-left-radius: 10px; + -webkit-border-top-right-radius: 10px; + -moz-border-radius-topleft: 10px; + -moz-border-radius-topright: 10px; + border-top-left-radius: 10px; + border-top-right-radius: 10px; + border: 1px solid black; + background-color: #E9E9E9; + padding-top: 6px; + text-align: center; + text-decoration: none; + font-size: 14px; + color: black; + margin-top: 10px; + filter: alpha(opacity=95); + opacity: 0.95; } + +a.workspace-tab:hover { + background-color: #DADADA; + margin-top: 0px; } + +a.workspace-tab-active { + font-weight: bold; + background-color: #B9B9B9; + color: #BC0000; } + +a.workspace-tab-popup { + margin-top: 0px; } + +a.workspace-tab-add { + background-color: #C8C8C8; + filter: alpha(opacity=85); + opacity: 0.85; } diff --git a/public_html/static/css/openng.css b/public_html/static/css/openng.css index 826bdb6..06bfd0c 100644 --- a/public_html/static/css/openng.css +++ b/public_html/static/css/openng.css @@ -1,315 +1,217 @@ -.clear -{ - clear: both; -} - -#main_toolbar, #main_toolbar button -{ - font-family: "Istok Web"; -} - -#main_toolbar -{ - padding: 36px 24px; -} - -form.inline -{ - display: inline; -} - -#form_search -{ - float: left; - margin-left: 12px; -} - -#form_search input, #form_search button -{ - height: 37px; -} - -#form_search input -{ - margin-left: 12px; - font-size: 16px; - padding: 7px 14px; - border-top-right-radius: 0px; - border-bottom-right-radius: 0px; - width: 290px; -} - -#form_search button -{ - border-top-left-radius: 0px; - border-bottom-left-radius: 0px; -} - -#autocomplete_search -{ - display: none; - position: absolute; - width: 400px; - background-color: white; - border: 1px solid #5A6DBB; - border-radius: 0px 0px 3px 3px; - border-top: none; - -webkit-font-smoothing: antialiased; - font-family: 'Istok Web'; - z-index: 9999999; -} - -#autocomplete_search .entry -{ - border-bottom: 1px solid #C2C2C2; - padding: 7px 9px; - color: #393939; -} - -#autocomplete_search .entry:last-child -{ - border-bottom: none; -} - -#autocomplete_search .entry.selected -{ - background-color: #4253B6; - color: white; -} - -#autocomplete_search .entry .name -{ - font-size: 18px; - font-weight: bold; -} - -#autocomplete_search .entry .description, #autocomplete_search .entry .date -{ - font-size: 14px; -} - -#autocomplete_search .entry .date -{ - float: right; - color: gray; -} - -#autocomplete_search .entry.selected .date -{ - color: white; -} - -#autocomplete_search .loading, #autocomplete_search .noresults -{ - padding: 8px 10px; - font-size: 17px; -} - -#autocomplete_search .loading -{ - font-style: italic; -} - -.group-first, .group-middle -{ - border-top-right-radius: 0px !important; - border-bottom-right-radius: 0px !important; -} - -.group-middle, .group-last -{ - border-top-left-radius: 0px !important; - border-bottom-left-radius: 0px !important; -} - -#main_toolbar a.add -{ - float: left; -} - -.pure-button -{ - padding: 7px 14px; -} - -.pure-button.shadow -{ - text-shadow: 1px 1px 1px #424242; - -webkit-text-shadow: 1px 1px 1px #424242; - -moz-text-shadow: 1px 1px 2px #424242; - -o-text-shadow: 1px 1px 1px #424242; - -ms-text-shadow: 1px 1px 1px #424242; -} - -.pure-button.add -{ - background-color: #15BA31; - color: white; -} - -.pure-button.okay -{ - background-color: #148C29; - color: white; -} - -.pure-button.search -{ - background-color: #152DBA; - color: white; -} - -.pure-button i -{ - margin-right: 8px; - position: relative; - top: 1px; -} - -.element-group -{ - display: block; - float: left; -} - -.element-group * -{ - float: left; -} - -h1.form -{ - font-size: 16px; - margin-top: 0px; - margin-bottom: 6px; -} - -.form-block -{ - margin-bottom: 5px; -} - -.pure-form label -{ - font-size: 95%; - margin-left: 1px; -} - -.pure-form input.invalid, .pure-form textarea.invalid -{ - border-color: #B60202 !important; -} - -div.label -{ - padding-top: 4px; -} - -div.formfield, div.property -{ - margin-bottom: 1px; -} - -textarea -{ - height: 90px; -} - -.toolbarwindow-contents -{ - position: absolute; - padding: 7px; - top: 0px; - left: 0px; - right: 0px; - bottom: 38px; - overflow-x: hidden; - overflow-y: auto; -} - -.toolbarwindow-toolbar -{ - position: absolute; - padding: 4px; - height: 30px; - left: 0px; - right: 0px; - bottom: 0px; - text-align: right; -} - -i.required -{ - font-size: 10px; - margin-left: 4px; - color: rgb(159,68,74); - float: right; - margin-right: 7px; - margin-top: 2px; -} - -i.error, i.notification -{ - font-size: 19px; - margin-right: 9px !important; -} - -i.error -{ - color: #FFD2D2; -} - -i.notification -{ - color: #CBCAFF; -} - -#notification_area -{ - position: absolute; - right: 0px; - bottom: 32px; - z-index: 2147483640; -} - -.notification-header -{ - margin-right: 6px; - font-weight: bold; -} - -.notification-popup, .error-popup -{ - text-align: right; -} - -.notification-popup .notification-contents, .error-popup .notification-contents -{ - text-align: left; - display: inline-block; - border-radius: 6px; - margin-right: 19px; - margin-top: 10px; - padding: 9px 14px; - color: white; - font-size: 15px; - filter: alpha(opacity=85); - opacity: 0.85; - width: auto; -} - -.notification-popup .notification-contents -{ - background-color: #2D2D2D; -} - -.error-popup .notification-contents -{ - background-color: #371B1B; -} - -.notification-popup ul, .error-popup ul -{ - margin: 4px 0px; - padding-left: 48px; -} +.clear { + clear: both; } + +#main_toolbar, #main_toolbar button { + font-family: "Istok Web"; } + +#main_toolbar { + padding: 36px 24px; } + +form.inline { + display: inline; } + +#form_search { + float: left; + margin-left: 12px; } + +#form_search input, #form_search button { + height: 37px; } + +#form_search input { + margin-left: 12px; + font-size: 16px; + padding: 7px 14px; + border-top-right-radius: 0px; + border-bottom-right-radius: 0px; + width: 290px; } + +#form_search button { + border-top-left-radius: 0px; + border-bottom-left-radius: 0px; } + +#autocomplete_search { + display: none; + position: absolute; + width: 400px; + background-color: white; + border: 1px solid #5a6dbb; + border-radius: 0px 0px 3px 3px; + border-top: none; + -webkit-font-smoothing: antialiased; + font-family: 'Istok Web'; + z-index: 9999999; } + +#autocomplete_search .entry { + border-bottom: 1px solid #c2c2c2; + padding: 7px 9px; + color: #393939; } + +#autocomplete_search .entry:last-child { + border-bottom: none; } + +#autocomplete_search .entry.selected { + background-color: #4253B6; + color: white; } + +#autocomplete_search .entry .name { + font-size: 18px; + font-weight: bold; } + +#autocomplete_search .entry .description, #autocomplete_search .entry .date { + font-size: 14px; } + +#autocomplete_search .entry .date { + float: right; + color: gray; } + +#autocomplete_search .entry.selected .date { + color: white; } + +#autocomplete_search .loading, #autocomplete_search .noresults { + padding: 8px 10px; + font-size: 17px; } + +#autocomplete_search .loading { + font-style: italic; } + +.group-first, .group-middle { + border-top-right-radius: 0px !important; + border-bottom-right-radius: 0px !important; } + +.group-middle, .group-last { + border-top-left-radius: 0px !important; + border-bottom-left-radius: 0px !important; } + +#main_toolbar a.add { + float: left; } + +.pure-button { + padding: 7px 14px; } + +.pure-button.shadow { + text-shadow: 1px 1px 1px #424242; + -webkit-text-shadow: 1px 1px 1px #424242; + -moz-text-shadow: 1px 1px 2px #424242; + -o-text-shadow: 1px 1px 1px #424242; + -ms-text-shadow: 1px 1px 1px #424242; } + +.pure-button.add { + background-color: #15BA31; + color: white; } + +.pure-button.okay { + background-color: #148C29; + color: white; } + +.pure-button.search { + background-color: #152DBA; + color: white; } + +.pure-button i { + margin-right: 8px; + position: relative; + top: 1px; } + +.element-group { + display: block; + float: left; } + +.element-group * { + float: left; } + +h1.form { + font-size: 16px; + margin-top: 0px; + margin-bottom: 6px; } + +.form-block { + margin-bottom: 5px; } + +.pure-form label { + font-size: 95%; + margin-left: 1px; } + +.pure-form input.invalid, .pure-form textarea.invalid { + border-color: #b60202 !important; } + +div.label { + padding-top: 4px; } + +div.formfield, div.property { + margin-bottom: 1px; } + +textarea { + height: 90px; } + +.toolbarwindow-contents { + position: absolute; + padding: 7px; + top: 0px; + left: 0px; + right: 0px; + bottom: 38px; + overflow-x: hidden; + overflow-y: auto; } + +.toolbarwindow-toolbar { + position: absolute; + padding: 4px; + height: 30px; + left: 0px; + right: 0px; + bottom: 0px; + text-align: right; } + +i.required { + font-size: 10px; + margin-left: 4px; + color: #9f444a; + float: right; + margin-right: 7px; + margin-top: 2px; } + +i.error, i.notification { + font-size: 19px; + margin-right: 9px !important; } + +i.error { + color: #FFD2D2; } + +i.notification { + color: #CBCAFF; } + +#notification_area { + position: absolute; + right: 0px; + bottom: 32px; + z-index: 2147483640; } + +.notification-header { + margin-right: 6px; + font-weight: bold; } + +.notification-popup, .error-popup { + text-align: right; } + +.notification-popup .notification-contents, .error-popup .notification-contents { + text-align: left; + display: inline-block; + border-radius: 6px; + margin-right: 19px; + margin-top: 10px; + padding: 9px 14px; + color: white; + font-size: 15px; + filter: alpha(opacity=85); + opacity: 0.85; + width: auto; } + +.notification-popup .notification-contents { + background-color: #2D2D2D; } + +.error-popup .notification-contents { + background-color: #371B1B; } + +.notification-popup ul, .error-popup ul { + margin: 4px 0px; + padding-left: 48px; } diff --git a/scss/jsde.base.scss b/scss/jsde.base.scss new file mode 100755 index 0000000..32529ed --- /dev/null +++ b/scss/jsde.base.scss @@ -0,0 +1,121 @@ +html, body +{ + overflow: hidden; +} + +body +{ + position: fixed; + margin: 0px; + width: 100%; + height: 100%; +} + +#jsde_templates +{ + display: none; +} + +/* MDIWindow Styling | Generic */ + +div.window-wrapper +{ + position: absolute; +} + +div.window-title +{ + position: absolute; + z-index: 2; + left: 0px; + right: 0px; + top: 0px; + cursor: default; + text-overflow: ellipsis; + overflow: hidden; + white-space: nowrap; +} + +div.window-outer +{ + position: absolute; + z-index: 3; + left: 0px; + right: 0px; + bottom: 0px; +} + +div.window-inner-wrapper +{ + position: absolute; + top: 0px; + bottom: 0px; + left: 0px; + right: 0px; + overflow-y: auto; + overflow-x: auto; +} + +.window-noscroll +{ + overflow-x: hidden !important; + overflow-y: hidden !important; +} + +div.window-close +{ + float: right; +} + +div.window-close a +{ + position: absolute; + right: 3px; + top: 2px; + display: block; + padding: 1px 4px; + text-decoration: none; + font-size: 12px; + border-radius: 5px; +} + +/* MDIWindow Styling | Normal state */ + + +div.window-styled div.window-inner +{ + visibility: visible; +} + + +/* MDIWindow Styling | Dragging state */ + + +div.window-dragged div.window-inner +{ + visibility: hidden; +} + +div.workspace-bar +{ + position: absolute; + bottom: 0px; + left: 0px; + right: 0px; +} + +a.workspace-tab +{ + display: block; + float: left; +} + +div.window-resizer +{ + position: absolute; + width: 12px; + height: 12px; + bottom: -6px; + right: -6px; + cursor: se-resize; +} diff --git a/scss/jsde.style.scss b/scss/jsde.style.scss new file mode 100755 index 0000000..ebb4dd7 --- /dev/null +++ b/scss/jsde.style.scss @@ -0,0 +1,198 @@ +html,body +{ + font-family: 'Varela Round', sans-serif, Trebuchet MS; + background-color: silver; + background-attachment:fixed; + background-position:center; +} + +/* Temporary styles */ + +div#make-window +{ + background-color: white; + border: 1px solid gray; + padding: 14px; + width: 350px; + filter:alpha(opacity=85); + opacity:0.85; +} + +/* MDIWindow Styling | Generic */ + +div.window-title +{ + -webkit-border-top-left-radius: 10px; + -webkit-border-top-right-radius: 10px; + -moz-border-radius-topleft: 10px; + -moz-border-radius-topright: 10px; + border-top-left-radius: 10px; + border-top-right-radius: 10px; + height: 16px; + color: white; + font-size: 14px; + font-weight: bold; + padding: 4px; + padding-left: 7px; + border-top: 1px solid #959595; + border-right: 1px solid #959595; + border-left: 1px solid #959595; +} + +div.window-focused div.window-title +{ + border-top: 1px solid #6262FF; + border-right: 1px solid #6262FF; + border-left: 1px solid #6262FF; +} + +div.window-outer +{ + font-size: 13px; + top: 25px; + border-bottom: 1px solid gray; + border-right: 1px solid gray; + border-left: 1px solid gray; +} + +div.window-inner +{ + padding: 7px; +} + +div.window-close a +{ + color: white; + border: 1px solid #014D8C; +} + +div.window-close a:hover +{ + background-color: #014D8C; + border: 1px solid white; +} + +/* MDIWindow Styling | Normal state */ + +div.window-styled div.window-title, div.window-styled div.window-outer +{ + -webkit-box-shadow: 5px 5px 10px #1a1a1a; + -moz-box-shadow: 5px 5px 10px #1a1a1a; + box-shadow: 5px 5px 10px #1a1a1a; +} + +div.window-styled div.window-title +{ + background-image: -webkit-gradient( + linear, + left bottom, + left top, + color-stop(0, rgb(82,82,82)), + color-stop(1, rgb(145,172,190)) + ); + background-image: -moz-linear-gradient( + center bottom, + rgb(82,82,82) 0%, + rgb(145,172,190) 100% + ); + + filter:alpha(opacity=95); + opacity:0.95; +} + +div.window-styled div.window-outer +{ + background-color: #F7F7F0; + filter:alpha(opacity=95); + opacity:0.95; +} + +div.window-focused.window-styled div.window-title +{ + background-image: -webkit-gradient( + linear, + left bottom, + left top, + color-stop(0, rgb(0,87,179)), + color-stop(1, rgb(0,153,255)) + ); + background-image: -moz-linear-gradient( + center bottom, + rgb(0,87,179) 0%, + rgb(0,153,255) 100% + ); + filter:alpha(opacity=85); + opacity:0.85; +} + +/* MDIWindow Styling | Dragging state */ + +div.window-dragged div.window-title +{ + background-color: #0070D5; + background-image: none; +} + +div.workspace-bar +{ + height: 32px; +} + +div.window-dragged div.window-outer +{ + background: none; +} + +div.window-dragged div.window-title, div.window-dragged div.window-outer +{ + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; +} + +a.workspace-tab +{ + height: 32px; + width: 48px; + -webkit-border-top-left-radius: 10px; + -webkit-border-top-right-radius: 10px; + -moz-border-radius-topleft: 10px; + -moz-border-radius-topright: 10px; + border-top-left-radius: 10px; + border-top-right-radius: 10px; + border: 1px solid black; + background-color: #E9E9E9; + padding-top: 6px; + text-align: center; + text-decoration: none; + font-size: 14px; + color: black; + margin-top: 10px; + filter:alpha(opacity=95); + opacity:0.95; +} + +a.workspace-tab:hover +{ + background-color: #DADADA; + margin-top: 0px; +} + +a.workspace-tab-active +{ + font-weight: bold; + background-color: #B9B9B9; + color: #BC0000; +} + +a.workspace-tab-popup +{ + margin-top: 0px; +} + +a.workspace-tab-add +{ + background-color: #C8C8C8; + filter:alpha(opacity=85); + opacity:0.85; +} diff --git a/scss/openng.scss b/scss/openng.scss new file mode 100644 index 0000000..826bdb6 --- /dev/null +++ b/scss/openng.scss @@ -0,0 +1,315 @@ +.clear +{ + clear: both; +} + +#main_toolbar, #main_toolbar button +{ + font-family: "Istok Web"; +} + +#main_toolbar +{ + padding: 36px 24px; +} + +form.inline +{ + display: inline; +} + +#form_search +{ + float: left; + margin-left: 12px; +} + +#form_search input, #form_search button +{ + height: 37px; +} + +#form_search input +{ + margin-left: 12px; + font-size: 16px; + padding: 7px 14px; + border-top-right-radius: 0px; + border-bottom-right-radius: 0px; + width: 290px; +} + +#form_search button +{ + border-top-left-radius: 0px; + border-bottom-left-radius: 0px; +} + +#autocomplete_search +{ + display: none; + position: absolute; + width: 400px; + background-color: white; + border: 1px solid #5A6DBB; + border-radius: 0px 0px 3px 3px; + border-top: none; + -webkit-font-smoothing: antialiased; + font-family: 'Istok Web'; + z-index: 9999999; +} + +#autocomplete_search .entry +{ + border-bottom: 1px solid #C2C2C2; + padding: 7px 9px; + color: #393939; +} + +#autocomplete_search .entry:last-child +{ + border-bottom: none; +} + +#autocomplete_search .entry.selected +{ + background-color: #4253B6; + color: white; +} + +#autocomplete_search .entry .name +{ + font-size: 18px; + font-weight: bold; +} + +#autocomplete_search .entry .description, #autocomplete_search .entry .date +{ + font-size: 14px; +} + +#autocomplete_search .entry .date +{ + float: right; + color: gray; +} + +#autocomplete_search .entry.selected .date +{ + color: white; +} + +#autocomplete_search .loading, #autocomplete_search .noresults +{ + padding: 8px 10px; + font-size: 17px; +} + +#autocomplete_search .loading +{ + font-style: italic; +} + +.group-first, .group-middle +{ + border-top-right-radius: 0px !important; + border-bottom-right-radius: 0px !important; +} + +.group-middle, .group-last +{ + border-top-left-radius: 0px !important; + border-bottom-left-radius: 0px !important; +} + +#main_toolbar a.add +{ + float: left; +} + +.pure-button +{ + padding: 7px 14px; +} + +.pure-button.shadow +{ + text-shadow: 1px 1px 1px #424242; + -webkit-text-shadow: 1px 1px 1px #424242; + -moz-text-shadow: 1px 1px 2px #424242; + -o-text-shadow: 1px 1px 1px #424242; + -ms-text-shadow: 1px 1px 1px #424242; +} + +.pure-button.add +{ + background-color: #15BA31; + color: white; +} + +.pure-button.okay +{ + background-color: #148C29; + color: white; +} + +.pure-button.search +{ + background-color: #152DBA; + color: white; +} + +.pure-button i +{ + margin-right: 8px; + position: relative; + top: 1px; +} + +.element-group +{ + display: block; + float: left; +} + +.element-group * +{ + float: left; +} + +h1.form +{ + font-size: 16px; + margin-top: 0px; + margin-bottom: 6px; +} + +.form-block +{ + margin-bottom: 5px; +} + +.pure-form label +{ + font-size: 95%; + margin-left: 1px; +} + +.pure-form input.invalid, .pure-form textarea.invalid +{ + border-color: #B60202 !important; +} + +div.label +{ + padding-top: 4px; +} + +div.formfield, div.property +{ + margin-bottom: 1px; +} + +textarea +{ + height: 90px; +} + +.toolbarwindow-contents +{ + position: absolute; + padding: 7px; + top: 0px; + left: 0px; + right: 0px; + bottom: 38px; + overflow-x: hidden; + overflow-y: auto; +} + +.toolbarwindow-toolbar +{ + position: absolute; + padding: 4px; + height: 30px; + left: 0px; + right: 0px; + bottom: 0px; + text-align: right; +} + +i.required +{ + font-size: 10px; + margin-left: 4px; + color: rgb(159,68,74); + float: right; + margin-right: 7px; + margin-top: 2px; +} + +i.error, i.notification +{ + font-size: 19px; + margin-right: 9px !important; +} + +i.error +{ + color: #FFD2D2; +} + +i.notification +{ + color: #CBCAFF; +} + +#notification_area +{ + position: absolute; + right: 0px; + bottom: 32px; + z-index: 2147483640; +} + +.notification-header +{ + margin-right: 6px; + font-weight: bold; +} + +.notification-popup, .error-popup +{ + text-align: right; +} + +.notification-popup .notification-contents, .error-popup .notification-contents +{ + text-align: left; + display: inline-block; + border-radius: 6px; + margin-right: 19px; + margin-top: 10px; + padding: 9px 14px; + color: white; + font-size: 15px; + filter: alpha(opacity=85); + opacity: 0.85; + width: auto; +} + +.notification-popup .notification-contents +{ + background-color: #2D2D2D; +} + +.error-popup .notification-contents +{ + background-color: #371B1B; +} + +.notification-popup ul, .error-popup ul +{ + margin: 4px 0px; + padding-left: 48px; +}