diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-07-04 13:06:35 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-07-04 13:06:35 -0400 |
commit | b01eb12a6c300583d95a21ecf67d68e5b4956774 (patch) | |
tree | 7391f2a0cb44cad20c2a6a8a27d24192d541ca3b | |
parent | 37c1b79bddfb7a43aacbcad6f790562786645a03 (diff) |
Improve view mode switcher
-rw-r--r-- | app/Template/project/filters.php | 1 | ||||
-rw-r--r-- | assets/css/app.css | 38 | ||||
-rw-r--r-- | assets/css/src/base.css | 10 | ||||
-rw-r--r-- | assets/css/src/filters.css | 29 | ||||
-rwxr-xr-x | scripts/make-assets.sh | 2 |
5 files changed, 58 insertions, 22 deletions
diff --git a/app/Template/project/filters.php b/app/Template/project/filters.php index 402807d7..d86de2a7 100644 --- a/app/Template/project/filters.php +++ b/app/Template/project/filters.php @@ -45,5 +45,4 @@ <?= $this->form->hidden('action', $filters) ?> <?= $this->form->text('search', $filters, array(), array('placeholder="'.t('Filter').'"'), 'form-input-large') ?> </form> - </div>
\ No newline at end of file diff --git a/assets/css/app.css b/assets/css/app.css index 508417fe..87e7e3cc 100644 --- a/assets/css/app.css +++ b/assets/css/app.css @@ -69,16 +69,6 @@ hr { float: left; margin-right: 10px; } - -.views { - display: inline-block; -} - -.views li.active a { - font-weight: bold; - color: #000; - text-decoration: none; -} /* links */ a { color: #3366CC; @@ -1641,4 +1631,32 @@ td li.dropit-trigger { #screenshot-zone.screenshot-pasted { border: 2px solid #333; +}.views { + display: inline-block; +} + +.views li { + border: 1px solid #eee; + padding-left: 12px; + padding-right: 12px; + padding-top: 5px; + padding-bottom: 5px; +} + +.views li.active a { + font-weight: bold; + color: #000; + text-decoration: none; +} + +.views li:first-child { + border-right: none; + border-top-left-radius: 5px; + border-bottom-left-radius: 5px; +} + +.views li:last-child { + border-left: none; + border-top-right-radius: 5px; + border-bottom-right-radius: 5px; }
\ No newline at end of file diff --git a/assets/css/src/base.css b/assets/css/src/base.css index fabe4f82..3b231d07 100644 --- a/assets/css/src/base.css +++ b/assets/css/src/base.css @@ -52,13 +52,3 @@ hr { float: left; margin-right: 10px; } - -.views { - display: inline-block; -} - -.views li.active a { - font-weight: bold; - color: #000; - text-decoration: none; -} diff --git a/assets/css/src/filters.css b/assets/css/src/filters.css new file mode 100644 index 00000000..2bfd500b --- /dev/null +++ b/assets/css/src/filters.css @@ -0,0 +1,29 @@ +.views { + display: inline-block; +} + +.views li { + border: 1px solid #eee; + padding-left: 12px; + padding-right: 12px; + padding-top: 5px; + padding-bottom: 5px; +} + +.views li.active a { + font-weight: bold; + color: #000; + text-decoration: none; +} + +.views li:first-child { + border-right: none; + border-top-left-radius: 5px; + border-bottom-left-radius: 5px; +} + +.views li:last-child { + border-left: none; + border-top-right-radius: 5px; + border-bottom-right-radius: 5px; +}
\ No newline at end of file diff --git a/scripts/make-assets.sh b/scripts/make-assets.sh index 15f807d4..be5a08df 100755 --- a/scripts/make-assets.sh +++ b/scripts/make-assets.sh @@ -1,7 +1,7 @@ #!/bin/bash print_css="print links table board task comment subtask markdown" -app_css="base links title table form button alert tooltip header board task comment subtask markdown listing activity dashboard pagination popover confirm sidebar responsive dropdown screenshot" +app_css="base links title table form button alert tooltip header board task comment subtask markdown listing activity dashboard pagination popover confirm sidebar responsive dropdown screenshot filters" vendor_css="jquery-ui.min chosen.min fullcalendar.min font-awesome.min c3.min" app_js="base board calendar analytic swimlane screenshot" |