Browse Source

Merge branch 'master' of github.com:quirkyinc/semantic

Conflicts:
	build/packaged/semantic.min.css

Former-commit-id: fdddd1ecd9
Former-commit-id: a97d93fde2
pull/258/head
Jack Lukic 12 years ago
parent
commit
d4a63a0300
47 changed files with 1196 additions and 289 deletions
  1. 2
      build/minified/collections/grid.min.css
  2. 2
      build/minified/collections/menu.min.css
  3. 2
      build/minified/collections/message.min.css
  4. 2
      build/minified/collections/table.min.css
  5. 2
      build/minified/elements/button.min.css
  6. 2
      build/minified/elements/header.min.css
  7. 2
      build/minified/elements/icons.min.css
  8. 2
      build/minified/modules/dropdown.min.css
  9. 2
      build/minified/modules/tab.js
  10. 2
      build/minified/modules/tab.min.js
  11. 2
      build/packaged/modules/tab.js
  12. 2
      build/packaged/semantic.min.css.REMOVED.git-id
  13. 2
      build/packaged/semantic.min.js.REMOVED.git-id
  14. 65
      build/uncompressed/collections/grid.css
  15. 5
      build/uncompressed/collections/menu.css
  16. 3
      build/uncompressed/collections/message.css
  17. 8
      build/uncompressed/collections/table.css
  18. 48
      build/uncompressed/elements/button.css
  19. 30
      build/uncompressed/elements/header.css
  20. 7
      build/uncompressed/elements/icons.css
  21. 1
      build/uncompressed/modules/dropdown.css
  22. 2
      build/uncompressed/modules/tab.js
  23. 138
      node/src/documents/index.html
  24. 2
      node/src/documents/specification/cssguide.html
  25. 138
      node/src/documents/specification/spec.html
  26. 65
      node/src/files/components/semantic/collections/grid.css
  27. 5
      node/src/files/components/semantic/collections/menu.css
  28. 3
      node/src/files/components/semantic/collections/message.css
  29. 8
      node/src/files/components/semantic/collections/table.css
  30. 48
      node/src/files/components/semantic/elements/button.css
  31. 30
      node/src/files/components/semantic/elements/header.css
  32. 7
      node/src/files/components/semantic/elements/icons.css
  33. 1
      node/src/files/components/semantic/modules/dropdown.css
  34. 2
      node/src/files/components/semantic/modules/tab.js
  35. 35
      node/src/files/javascript/home.js
  36. 598
      node/src/files/javascript/library/history.js
  37. 8
      node/src/files/stylesheets/semantic.css
  38. 3
      node/src/layouts/default.html.eco
  39. 93
      src/collections/grid.less
  40. 3
      src/collections/menu.less
  41. 3
      src/collections/message.less
  42. 9
      src/collections/table.less
  43. 48
      src/elements/button.less
  44. 31
      src/elements/header.less
  45. 8
      src/elements/icons.less
  46. 2
      src/modules/dropdown.less
  47. 2
      src/modules/tab.js

2
build/minified/collections/grid.min.css
File diff suppressed because it is too large
View File

2
build/minified/collections/menu.min.css
File diff suppressed because it is too large
View File

2
build/minified/collections/message.min.css

@ -1 +1 @@
.ui.message{position:relative;min-height:18px;margin:1em 0;height:auto;background-color:rgba(0,0,0,.04);padding:1em;line-height:1.33;color:rgba(0,0,0,.6);-webkit-transition:opacity .1s ease,color .1s ease,background .1s ease,box-shadow .1s ease;-moz-transition:opacity .1s ease,color .1s ease,background .1s ease,box-shadow .1s ease;-o-transition:opacity .1s ease,color .1s ease,background .1s ease,box-shadow .1s ease;-ms-transition:opacity .1s ease,color .1s ease,background .1s ease,box-shadow .1s ease;transition:opacity .1s ease,color .1s ease,background .1s ease,box-shadow .1s ease;-webkit-border-radius:.325em;-moz-border-radius:.325em;border-radius:.325em}.ui.message .header{font-size:1.33em;font-weight:700}.ui.message .header+p{margin-top:0}.ui.message p{opacity:.85;margin:1em 0}.ui.message>:first-child{margin-top:0}.ui.message>:last-child{margin-bottom:0}.ui.message ul.list{opacity:.85;list-style-position:inside;margin:.2em 0;padding:0}.ui.message ul.list li{position:relative;list-style-type:none;font-style:italic;margin:0 0 0 1em;padding:0}.ui.message ul.list li:before{position:absolute;content:'\2022';top:-.05em;left:-.8em;height:100%;vertical-align:baseline;opacity:.5}.ui.message ul.list li:first-child{margin-top:0}.ui.message>.icon.close{cursor:pointer;position:absolute;top:1em;right:.5em;opacity:.7;-webkit-transition:opacity .1s linear;-moz-transition:opacity .1s linear;-o-transition:opacity .1s linear;-ms-transition:opacity .1s linear;transition:opacity .1s linear}.ui.message>.icon.close:hover{opacity:1}.ui.message.visible,.ui.header.visible{display:block!important}.ui.message.hidden,.ui.header.hidden{display:none}.ui.compact.message{display:inline-block}.ui.attached.message{margin-bottom:0;-webkit-border-radius:.325em .325em 0 0;-moz-border-radius:.325em .325em 0 0;border-radius:.325em .325em 0 0;-webkit-box-shadow:0 0 0 1px #DDD;-moz-box-shadow:0 0 0 1px #DDD;box-shadow:0 0 0 1px #DDD}.ui.bottom.attached.message{margin-top:0;-webkit-border-radius:0 0 .325em .325em;-moz-border-radius:0 0 .325em .325em;border-radius:0 0 .325em .325em;-webkit-box-shadow:0 0 0 1px #DDD;-moz-box-shadow:0 0 0 1px #DDD;box-shadow:0 0 0 1px #DDD}.ui.attached.message .header{font-size:1.1em}.ui.attached.message .icon{float:right}.ui.icon.message>.icon{display:table-cell;vertical-align:middle;font-size:3.8em;padding-right:.4em;opacity:.2}.ui.icon.message>.content{display:table-cell;vertical-align:middle}.ui.inverted.message{background-color:rgba(255,255,255,.05);color:rgba(255,255,255,.95)}.ui.black.message{background-color:#333;color:rgba(255,255,255,.95)}.ui.blue.message,.ui.info.message{border-color:#E4F5FB;background-color:#E9F9FF;color:#4D8796}.ui.green.message,.ui.success.message,.ui.positive.message{background-color:#DEFCD5;color:#52A954;border-color:#4D965B}.ui.yellow.message,.ui.warning.message{background-color:#F6F3D5;border-color:#CBB105;color:#96904D}.ui.red.message,.ui.error.message,.ui.negative.message{background-color:#F1D7D7;color:#A95252;border-color:#964D4D}.ui.small.message{font-size:.875em}.ui.message{font-size:1em}.ui.large.message{font-size:1.125em}.ui.huge.message{font-size:1.5em}.ui.massive.message{font-size:2em}
.ui.message{position:relative;min-height:18px;margin:1em 0;height:auto;background-color:rgba(0,0,0,.04);padding:1em;line-height:1.33;color:rgba(0,0,0,.6);-webkit-transition:opacity .1s ease,color .1s ease,background .1s ease,box-shadow .1s ease;-moz-transition:opacity .1s ease,color .1s ease,background .1s ease,box-shadow .1s ease;-o-transition:opacity .1s ease,color .1s ease,background .1s ease,box-shadow .1s ease;-ms-transition:opacity .1s ease,color .1s ease,background .1s ease,box-shadow .1s ease;transition:opacity .1s ease,color .1s ease,background .1s ease,box-shadow .1s ease;-webkit-border-radius:.325em;-moz-border-radius:.325em;border-radius:.325em}.ui.message .header{font-size:1.33em;font-weight:700}.ui.message .header+p{margin-top:0}.ui.message p{opacity:.85;margin:1em 0}.ui.message>:first-child{margin-top:0}.ui.message>:last-child{margin-bottom:0}.ui.message ul.list{opacity:.85;list-style-position:inside;margin:.2em 0;padding:0}.ui.message ul.list li{position:relative;list-style-type:none;font-style:italic;margin:0 0 0 1em;padding:0}.ui.message ul.list li:before{position:absolute;content:'\2022';top:-.05em;left:-.8em;height:100%;vertical-align:baseline;opacity:.5}.ui.message ul.list li:first-child{margin-top:0}.ui.message>.icon.close{cursor:pointer;position:absolute;top:1em;right:.5em;opacity:.7;-webkit-transition:opacity .1s linear;-moz-transition:opacity .1s linear;-o-transition:opacity .1s linear;-ms-transition:opacity .1s linear;transition:opacity .1s linear}.ui.message>.icon.close:hover{opacity:1}.ui.message.visible,.ui.header.visible{display:block!important}.ui.message.hidden,.ui.header.hidden{display:none}.ui.compact.message{display:inline-block}.ui.attached.message{margin-bottom:0;-webkit-border-radius:.325em .325em 0 0;-moz-border-radius:.325em .325em 0 0;border-radius:.325em .325em 0 0;-webkit-box-shadow:0 0 0 1px #DDD;-moz-box-shadow:0 0 0 1px #DDD;box-shadow:0 0 0 1px #DDD}.ui.bottom.attached.message{margin-top:0;-webkit-border-radius:0 0 .325em .325em;-moz-border-radius:0 0 .325em .325em;border-radius:0 0 .325em .325em;-webkit-box-shadow:0 0 0 1px #DDD;-moz-box-shadow:0 0 0 1px #DDD;box-shadow:0 0 0 1px #DDD}.ui.attached.message .icon{float:right}.ui.icon.message>.icon{display:table-cell;vertical-align:middle;font-size:3.8em;padding-right:.4em;opacity:.2}.ui.icon.message>.content{display:table-cell;vertical-align:middle}.ui.inverted.message{background-color:rgba(255,255,255,.05);color:rgba(255,255,255,.95)}.ui.black.message{background-color:#333;color:rgba(255,255,255,.95)}.ui.blue.message,.ui.info.message{border-color:#E4F5FB;background-color:#E9F9FF;color:#4D8796}.ui.green.message,.ui.success.message,.ui.positive.message{background-color:#DEFCD5;color:#52A954;border-color:#4D965B}.ui.yellow.message,.ui.warning.message{background-color:#F6F3D5;border-color:#CBB105;color:#96904D}.ui.red.message,.ui.error.message,.ui.negative.message{background-color:#F1D7D7;color:#A95252;border-color:#964D4D}.ui.small.message{font-size:.875em}.ui.message{font-size:1em}.ui.large.message{font-size:1.125em}.ui.huge.message{font-size:1.5em}.ui.massive.message{font-size:2em}

2
build/minified/collections/table.min.css

@ -1 +1 @@
.ui.table{width:100%;border-collapse:collapse}.ui.table thead{border-bottom:1px solid rgba(0,0,0,.1)}.ui.table th,.ui.table tr,.ui.table td{border-collapse:collapse;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box;-webkit-transition:all .1s ease-out;-moz-transition:all .1s ease-out;-o-transition:all .1s ease-out;-ms-transition:all .1s ease-out;transition:all .1s ease-out}.ui.table th{cursor:auto;background-color:rgba(0,0,0,.05);text-align:left;font-weight:700;padding:.5em .7em;vertical-align:middle}.ui.table tfoot th{font-weight:400;font-style:italic}.ui.table td{padding:.4em .7em;vertical-align:middle}.ui.table tfoot{border-top:1px solid rgba(0,0,0,.1)}.ui.table tbody tr:nth-child(2n){background-color:rgba(0,0,50,.02)}.ui.table>.icon{vertical-align:baseline}.ui.table>.icon:only-child{margin:0}.ui.table.segment:after{display:none}.ui.table.segment.stacked:after{display:block}.ui.celled.table tr:hover td{background-color:rgba(0,0,0,.02);color:#000}.ui.sortable.table thead th:hover{background-image:none;background-color:rgba(0,0,0,.04);color:#333}.ui.sortable.table th.disabled:hover{cursor:auto;background-color:rgba(0,0,0,.1);text-align:left;font-weight:700;color:#333;color:rgba(0,0,0,.8)}.ui.table tr.positive td,.ui.table td.positive{background-color:#F2F8F0!important;color:#119000}.ui.celled.table tr.positive:hover td,.ui.celled.table tr:hover td.positive,.ui.table tr.positive:hover td,.ui.table td:hover.positive,.ui.table th:hover.positive{background-color:#ECF5E9!important;color:#119000}.ui.table tr.negative td,.ui.table td.negative{background-color:#F9F4F4;color:#CD2929}.ui.celled.table tr.negative:hover td,.ui.celled.table tr:hover td.negative,.ui.table tr.negative:hover td,.ui.table td:hover.negative,.ui.table th:hover.negative{background-color:#F2E8E8!important;color:#CD2929}.ui.table tr.error td,.ui.table td.error,.ui.table th.error{background-color:#F9F4F4!important;color:#CD2929}.ui.celled.table tr.error:hover td,.ui.celled.table tr:hover td.error,.ui.table tr.error:hover td,.ui.table td:hover.error,.ui.table th:hover.error{background-color:#F2E8E8!important;color:#CD2929}.ui.table tr.warning td,.ui.table td.warning,.ui.table th.warning{background-color:#FBF6E9;color:#7D6C00}.ui.celled.table tr.warning:hover td,.ui.celled.table tr:hover td.warning,.ui.table tr.warning:hover td,.ui.table td:hover.warning,.ui.table th:hover.warning{background-color:#F3EDDC!important;color:#7D6C00}.ui.table tr.active td,.ui.table tr td.active{background-color:#F0F0F0!important;color:rgba(50,50,50,.9)}.ui.table tr.disabled td,.ui.table tr td.disabled,.ui.table tr.disabled:hover td,.ui.table tr:hover td.disabled{color:rgba(150,150,150,.3)}.ui.two.column.table td{width:50%}.ui.three.column.table td{width:33.3333%}.ui.four.column.table td{width:25%}.ui.five.column.table td{width:20%}.ui.six.column.table td{width:16.66667%}.ui.seven.column.table td{width:14.2857%}.ui.eight.column.table td{width:12.5%}.ui.nine.column.table td{width:11.1111%}.ui.ten.column.table td{width:10%}.ui.eleven.column.table td{width:9.0909%}.ui.twelve.column.table td{width:8.3333%}.ui.thirteen.column.table td{width:7.6923%}.ui.fourteen.column.table td{width:7.1428%}.ui.fifteen.column.table td{width:6.6666%}.ui.sixteen.column.table td{width:6.25%}.ui.celled.table{color:rgba(0,0,0,.8)}.ui.celled.table tbody tr,.ui.celled.table tfoot tr{border:0}.ui.celled.table th{border:1px solid #E0E0E0}.ui.celled.table tbody td{border:1px solid #E0E0E0}.ui.sortable.table thead th{cursor:pointer;white-space:nowrap}.ui.sortable.table thead th.sorted,.ui.sortable.table thead th.sorted:hover{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:rgba(0,0,0,.05)}.ui.sortable.table thead th:after{display:inline-block;content:'';width:1em;opacity:.8;margin:0 0 0 .5em;font-family:Icons;font-style:normal;font-weight:400;text-decoration:inherit;vertical-align:text-top}.ui.sortable.table thead th.ascending:after{content:'\25b4'}.ui.sortable.table thead th.descending:after{content:'\25be'}.ui.inverted.table th{background-color:rgba(0,0,0,.15)}.ui.inverted.table tbody tr:nth-child(2n){background-color:rgba(255,255,255,.06)}.ui.collapsing.table{width:auto}.ui.basic.table th{background-color:transparent;padding:.5em;font-weight:400}.ui.basic.table tbody tr{border-bottom:1px solid rgba(0,0,0,.05)}.ui.basic.table td{padding:.8em .5em}.ui.padded.table th,.ui.padded.table td{padding:.8em 1em}.ui.compact.table th{padding:.3em .5em}.ui.compact.table td{padding:.2em .5em}.ui.small.table{font-size:14px}.ui.table{font-size:16px}.ui.large.table{font-size:18px}
.ui.table{width:100%;border-collapse:collapse}.ui.table thead{border-bottom:1px solid rgba(0,0,0,.1)}.ui.table th,.ui.table tr,.ui.table td{border-collapse:collapse;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box;-webkit-transition:all .1s ease-out;-moz-transition:all .1s ease-out;-o-transition:all .1s ease-out;-ms-transition:all .1s ease-out;transition:all .1s ease-out}.ui.table th{cursor:auto;background-color:rgba(0,0,0,.05);text-align:left;color:rgba(0,0,0,.5);padding:.5em .7em;vertical-align:middle}.ui.table tfoot th{font-weight:400;font-style:italic}.ui.table td{padding:.4em .7em;vertical-align:middle}.ui.table tfoot{border-top:1px solid rgba(0,0,0,.1)}.ui.table tbody tr:nth-child(2n){background-color:rgba(0,0,50,.02)}.ui.table>.icon{vertical-align:baseline}.ui.table>.icon:only-child{margin:0}.ui.table.segment:after{display:none}.ui.table.segment.stacked:after{display:block}.ui.sortable.table thead th:hover{background-image:none;background-color:rgba(0,0,0,.04);color:#333}.ui.sortable.table th.disabled:hover{cursor:auto;background-color:rgba(0,0,0,.1);text-align:left;font-weight:700;color:#333;color:rgba(0,0,0,.8)}.ui.table tr.positive td,.ui.table td.positive{background-color:#F2F8F0!important;color:#119000}.ui.celled.table tr.positive:hover td,.ui.celled.table tr:hover td.positive,.ui.table tr.positive:hover td,.ui.table td:hover.positive,.ui.table th:hover.positive{background-color:#ECF5E9!important;color:#119000}.ui.table tr.negative td,.ui.table td.negative{background-color:#F9F4F4;color:#CD2929}.ui.celled.table tr.negative:hover td,.ui.celled.table tr:hover td.negative,.ui.table tr.negative:hover td,.ui.table td:hover.negative,.ui.table th:hover.negative{background-color:#F2E8E8!important;color:#CD2929}.ui.table tr.error td,.ui.table td.error,.ui.table th.error{background-color:#F9F4F4!important;color:#CD2929}.ui.celled.table tr.error:hover td,.ui.celled.table tr:hover td.error,.ui.table tr.error:hover td,.ui.table td:hover.error,.ui.table th:hover.error{background-color:#F2E8E8!important;color:#CD2929}.ui.table tr.warning td,.ui.table td.warning,.ui.table th.warning{background-color:#FBF6E9;color:#7D6C00}.ui.celled.table tr.warning:hover td,.ui.celled.table tr:hover td.warning,.ui.table tr.warning:hover td,.ui.table td:hover.warning,.ui.table th:hover.warning{background-color:#F3EDDC!important;color:#7D6C00}.ui.table tr.active td,.ui.table tr td.active{background-color:#F0F0F0!important;color:rgba(50,50,50,.9)}.ui.table tr.disabled td,.ui.table tr td.disabled,.ui.table tr.disabled:hover td,.ui.table tr:hover td.disabled{color:rgba(150,150,150,.3)}.ui.two.column.table td{width:50%}.ui.three.column.table td{width:33.3333%}.ui.four.column.table td{width:25%}.ui.five.column.table td{width:20%}.ui.six.column.table td{width:16.66667%}.ui.seven.column.table td{width:14.2857%}.ui.eight.column.table td{width:12.5%}.ui.nine.column.table td{width:11.1111%}.ui.ten.column.table td{width:10%}.ui.eleven.column.table td{width:9.0909%}.ui.twelve.column.table td{width:8.3333%}.ui.thirteen.column.table td{width:7.6923%}.ui.fourteen.column.table td{width:7.1428%}.ui.fifteen.column.table td{width:6.6666%}.ui.sixteen.column.table td{width:6.25%}.ui.celled.table{color:rgba(0,0,0,.8)}.ui.celled.table tbody tr,.ui.celled.table tfoot tr{border:0}.ui.celled.table th{border:1px solid #E0E0E0}.ui.celled.table tbody td{border:1px solid #E0E0E0}.ui.sortable.table thead th{cursor:pointer;white-space:nowrap}.ui.sortable.table thead th.sorted,.ui.sortable.table thead th.sorted:hover{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:rgba(0,0,0,.05)}.ui.sortable.table thead th:after{display:inline-block;content:'';width:1em;opacity:.8;margin:0 0 0 .5em;font-family:Icons;font-style:normal;font-weight:400;text-decoration:inherit;vertical-align:text-top}.ui.sortable.table thead th.ascending:after{content:'\25b4'}.ui.sortable.table thead th.descending:after{content:'\25be'}.ui.inverted.table th{background-color:rgba(0,0,0,.15);color:rgba(255,255,255,.9)}.ui.inverted.table tbody tr:nth-child(2n){background-color:rgba(255,255,255,.06)}.ui.collapsing.table{width:auto}.ui.basic.table th{background-color:transparent;padding:.5em;font-weight:400}.ui.basic.table tbody tr{border-bottom:1px solid rgba(0,0,0,.05)}.ui.basic.table td{padding:.8em .5em}.ui.padded.table th,.ui.padded.table td{padding:.8em 1em}.ui.compact.table th{padding:.3em .5em}.ui.compact.table td{padding:.2em .5em}.ui.small.table{font-size:14px}.ui.table{font-size:16px}.ui.large.table{font-size:18px}

2
build/minified/elements/button.min.css
File diff suppressed because it is too large
View File

2
build/minified/elements/header.min.css

@ -1 +1 @@
.ui.header{border:0;margin:1em 0 1rem;padding:0;font-size:1.33em;color:rgba(0,0,0,.8);font-weight:700;line-height:1.33}.ui.header .ui.sub.header,.ui.header .sub.header{font-size:1rem;font-weight:400;margin:0;padding:0;line-height:1.2;color:rgba(0,0,0,.5)}.ui.header .content{display:inline-block;vertical-align:middle}.ui.header .icon{margin-right:.5em}.ui.header:first-child{margin-top:0}.ui.header+p{margin-top:0}h1.ui.header{min-height:1rem;line-height:1.33;font-size:2rem}h2.ui.header{line-height:1.33;font-size:1.75rem}h3.ui.header{line-height:1.33;font-size:1.33rem}h4.ui.header{line-height:1.33;font-size:1.1rem}h5.ui.header{line-height:1.2;font-size:1rem}.ui.huge.header{min-height:1em;font-size:2em}.ui.large.header{font-size:1.75em}.ui.medium.header{font-size:1.33em}.ui.small.header{font-size:1.1em}.ui.tiny.header{font-size:1em}.ui.disabled.header{opacity:.5}.ui.blue.header{color:#6ECFF5!important}.ui.black.header{color:#5C6166!important}.ui.green.header{color:#A1CF64!important}.ui.red.header{color:#EF4D6D!important}.ui.purple.header{color:#564F8A!important}.ui.teal.header{color:#00B5AD!important}.ui.blue.dividing.header{border-bottom:3px solid #6ECFF5}.ui.black.dividing.header{border-bottom:3px solid #5C6166}.ui.green.dividing.header{border-bottom:3px solid #A1CF64}.ui.red.dividing.header{border-bottom:3px solid #EF4D6D}.ui.purple.dividing.header{border-bottom:3px solid #564F8A}.ui.teal.dividing.header{border-bottom:3px solid #00B5AD}.ui.inverted.header{color:#FFF}.ui.inverted.header .sub.header{color:rgba(255,255,255,.85)}.ui.inverted.black.header{background-color:#5C6166!important;color:#FFF!important}.ui.inverted.blue.header{background-color:#6ECFF5!important;color:#FFF!important}.ui.inverted.green.header{background-color:#A1CF64!important;color:#FFF!important}.ui.inverted.red.header{background-color:#EF4D6D!important;color:#FFF!important}.ui.inverted.purple.header{background-color:#564F8A!important;color:#FFF!important}.ui.inverted.teal.header{background-color:#00B5AD!important;color:#FFF!important}.ui.inverted.block.header{border-bottom:0}.ui.left.aligned.header{text-align:left}.ui.right.aligned.header{text-align:right}.ui.center.aligned.header{text-align:center}.ui.floated.header,.ui.left.floated.header{float:left;margin-right:.5em}.ui.right.floated.header{float:right;margin-left:.5em}.ui.fitted.header{padding:0}.ui.dividing.header{padding-bottom:.2rem;border-bottom:1px solid rgba(0,0,0,.1)}.ui.dividing.header .icon{margin-bottom:.2em}.ui.block.header{background-color:#F5F5F5;padding:.5em 1em}.ui.attached.header{padding:.5em 1rem;-webkit-box-shadow:0 0 0 1px rgba(0,0,0,.1);-moz-box-shadow:0 0 0 1px rgba(0,0,0,.1);box-shadow:0 0 0 1px rgba(0,0,0,.1)}.ui.top.attached.header{margin-bottom:0;-webkit-border-radius:.3125em .3125em 0 0;-moz-border-radius:.3125em .3125em 0 0;border-radius:.3125em .3125em 0 0}.ui.bottom.attached.header{margin-top:0;-webkit-border-radius:0 0 .3125em .3125em;-moz-border-radius:0 0 .3125em .3125em;border-radius:0 0 .3125em .3125em}.ui.icon.header{display:block;margin-left:auto;margin-right:auto;text-align:center}.ui.icon.header .icon{display:block;font-size:4em;margin:0 auto .2em}.ui.icon.header .circular.icon,.ui.icon.header .square.icon{font-size:2em}.ui.block.icon.header .icon{margin-bottom:0}.ui.icon.header.aligned{display:block}
.ui.header{border:0;margin:1em 0 1rem;padding:0;font-size:1.33em;color:rgba(0,0,0,.8);font-weight:700;line-height:1.33}.ui.header:after{content:".";display:block;height:0;clear:both;visibility:hidden}.ui.header .ui.sub.header,.ui.header .sub.header{font-size:1rem;font-weight:400;margin:0;padding:0;line-height:1.2;color:rgba(0,0,0,.5)}.ui.header .content{display:inline-block;vertical-align:middle}.ui.header .icon{margin-right:.5em}.ui.header:first-child{margin-top:0}.ui.header:last-child{margin-bottom:0}.ui.header+p{margin-top:0}h1.ui.header{min-height:1rem;line-height:1.33;font-size:2rem}h2.ui.header{line-height:1.33;font-size:1.75rem}h3.ui.header{line-height:1.33;font-size:1.33rem}h4.ui.header{line-height:1.33;font-size:1.1rem}h5.ui.header{line-height:1.2;font-size:1rem}.ui.huge.header{min-height:1em;font-size:2em}.ui.large.header{font-size:1.75em}.ui.medium.header{font-size:1.33em}.ui.small.header{font-size:1.1em}.ui.tiny.header{font-size:1em}.ui.disabled.header{opacity:.5}.ui.blue.header{color:#6ECFF5!important}.ui.black.header{color:#5C6166!important}.ui.green.header{color:#A1CF64!important}.ui.red.header{color:#EF4D6D!important}.ui.purple.header{color:#564F8A!important}.ui.teal.header{color:#00B5AD!important}.ui.blue.dividing.header{border-bottom:3px solid #6ECFF5}.ui.black.dividing.header{border-bottom:3px solid #5C6166}.ui.green.dividing.header{border-bottom:3px solid #A1CF64}.ui.red.dividing.header{border-bottom:3px solid #EF4D6D}.ui.purple.dividing.header{border-bottom:3px solid #564F8A}.ui.teal.dividing.header{border-bottom:3px solid #00B5AD}.ui.inverted.header{color:#FFF}.ui.inverted.header .sub.header{color:rgba(255,255,255,.85)}.ui.inverted.black.header{background-color:#5C6166!important;color:#FFF!important}.ui.inverted.blue.header{background-color:#6ECFF5!important;color:#FFF!important}.ui.inverted.green.header{background-color:#A1CF64!important;color:#FFF!important}.ui.inverted.red.header{background-color:#EF4D6D!important;color:#FFF!important}.ui.inverted.purple.header{background-color:#564F8A!important;color:#FFF!important}.ui.inverted.teal.header{background-color:#00B5AD!important;color:#FFF!important}.ui.inverted.block.header{border-bottom:0}.ui.left.aligned.header{text-align:left}.ui.right.aligned.header{text-align:right}.ui.center.aligned.header{text-align:center}.ui.floated.header,.ui.left.floated.header{float:left;margin-right:.5em}.ui.right.floated.header{float:right;margin-left:.5em}.ui.fitted.header{padding:0}.ui.dividing.header{padding-bottom:.2rem;border-bottom:1px solid rgba(0,0,0,.1)}.ui.dividing.header .icon{margin-bottom:.2em}.ui.block.header{background-color:#F5F5F5;padding:.5em 1em}.ui.attached.header{padding:.5em 1rem;-webkit-box-shadow:0 0 0 1px rgba(0,0,0,.1);-moz-box-shadow:0 0 0 1px rgba(0,0,0,.1);box-shadow:0 0 0 1px rgba(0,0,0,.1)}.ui.top.attached.header{margin-bottom:0;-webkit-border-radius:.3125em .3125em 0 0;-moz-border-radius:.3125em .3125em 0 0;border-radius:.3125em .3125em 0 0}.ui.bottom.attached.header{margin-top:0;-webkit-border-radius:0 0 .3125em .3125em;-moz-border-radius:0 0 .3125em .3125em;border-radius:0 0 .3125em .3125em}.ui.icon.header{display:block;margin-left:auto;margin-right:auto;text-align:center}.ui.icon.header .icon{float:none;display:block;font-size:4em;margin:0 auto .2em}.ui.icon.header .circular.icon,.ui.icon.header .square.icon{font-size:2em}.ui.block.icon.header .icon{margin-bottom:0}.ui.icon.header.aligned{display:block}

2
build/minified/elements/icons.min.css
File diff suppressed because it is too large
View File

2
build/minified/modules/dropdown.min.css
File diff suppressed because it is too large
View File

2
build/minified/modules/tab.js

@ -47,9 +47,11 @@
if(settings.history) {
if( $.address === undefined ) {
module.error(errors.state);
return false;
}
else if(settings.path === false) {
module.error(errors.path);
return false;
}
else {
module.verbose('Address library found adding state change event');

2
build/minified/modules/tab.min.js
File diff suppressed because it is too large
View File

2
build/packaged/modules/tab.js

@ -47,9 +47,11 @@
if(settings.history) {
if( $.address === undefined ) {
module.error(errors.state);
return false;
}
else if(settings.path === false) {
module.error(errors.path);
return false;
}
else {
module.verbose('Address library found adding state change event');

2
build/packaged/semantic.min.css.REMOVED.git-id

@ -1 +1 @@
85c9e9a93541d688e90e6efc123558746af62295
ee56553797de7db20d068816c781bed8c186abd7

2
build/packaged/semantic.min.js.REMOVED.git-id

@ -1 +1 @@
d32baf742e05293d9320369a687d7a2cb59b3ba0
bb2f5a577f6450a45c1b7d7e797d6059011256af

65
build/uncompressed/collections/grid.css

@ -55,8 +55,8 @@
width: 100%;
}
.ui.grid > .row {
margin-top: 2%;
padding-top: 2%;
margin-top: 1rem;
padding-top: 1rem;
}
.ui.grid > .row:first-child {
padding-top: 0rem;
@ -93,7 +93,8 @@
Responsive
--------------------*/
.ui.responsive.grid {
margin: 0%;
margin-left: 0% !important;
margin-right: 0% !important;
min-width: 320px;
}
@media only screen and (max-width: 1000px) {
@ -182,70 +183,91 @@
width: 6.25%;
}
/* Assume full width with one column */
.ui.grid > .column:only-child,
.ui.grid > .row > .column:only-child {
.ui.one.column.grid > .row > .column,
.ui.one.column.grid > .column,
.ui.grid > .one.column.row > .column {
width: 100%;
}
.ui.two.column.grid > .row > .column,
.ui.two.column.grid > .column {
.ui.two.column.grid > .column,
.ui.grid > .two.column.row > .column {
width: 50%;
}
.ui.three.column.grid > .row > .column,
.ui.three.column.grid > .column {
.ui.three.column.grid > .column,
.ui.grid > .three.column.row > .column {
width: 33.3333%;
}
.ui.four.column.grid > .row > .column,
.ui.four.column.grid > .column {
.ui.four.column.grid > .column,
.ui.grid > .four.column.row > .column {
width: 25%;
}
.ui.five.column.grid > .row > .column,
.ui.five.column.grid > .column {
.ui.five.column.grid > .column,
.ui.grid > .five.column.row > .column {
width: 20%;
}
.ui.six.column.grid > .row > .column,
.ui.six.column.grid > .column {
.ui.six.column.grid > .column,
.ui.grid > .six.column.row > .column {
width: 16.66667%;
}
.ui.seven.column.grid > .row > .column,
.ui.seven.column.grid > .column {
.ui.seven.column.grid > .column,
.ui.grid > .seven.column.row > .column {
width: 14.2857%;
}
.ui.eight.column.grid > .row > .column,
.ui.eight.column.grid > .column {
.ui.eight.column.grid > .column,
.ui.grid > .eight.column.row > .column {
width: 12.5%;
}
.ui.nine.column.grid > .row > .column,
.ui.nine.column.grid > .column {
.ui.nine.column.grid > .column,
.ui.grid > .nine.column.row > .column {
width: 11.1111%;
}
.ui.ten.column.grid > .row > .column,
.ui.ten.column.grid > .column {
.ui.ten.column.grid > .column,
.ui.grid > .ten.column.row > .column {
width: 10%;
}
.ui.eleven.column.grid > .row > .column,
.ui.eleven.column.grid > .column {
.ui.eleven.column.grid > .column,
.ui.grid > .eleven.column.row > .column {
width: 9.0909%;
}
.ui.twelve.column.grid > .row > .column,
.ui.twelve.column.grid > .column {
.ui.twelve.column.grid > .column,
.ui.grid > .twelve.column.row > .column {
width: 8.3333%;
}
.ui.thirteen.column.grid > .row > .column,
.ui.thirteen.column.grid > .column {
.ui.thirteen.column.grid > .column,
.ui.grid > .thirteen.column.row > .column {
width: 7.6923%;
}
.ui.fourteen.column.grid > .row > .column,
.ui.fourteen.column.grid > .column {
.ui.fourteen.column.grid > .column,
.ui.grid > .fourteen.column.row > .column {
width: 7.1428%;
}
.ui.fifteen.column.grid > .row > .column,
.ui.fifteen.column.grid > .column {
.ui.fifteen.column.grid > .column,
.ui.grid > .fifteen.column.row > .column {
width: 6.6666%;
}
.ui.sixteen.column.grid > .row > .column,
.ui.sixteen.column.grid > .column {
.ui.sixteen.column.grid > .column,
.ui.grid > .sixteen.column.row > .column {
width: 6.25%;
}
/* Assume full width with one column */
.ui.grid > .column:only-child,
.ui.grid > .row > .column:only-child {
width: 100%;
}
/* Increase Gutters */
.ui.two.column.grid,
.ui.three.column.grid,
@ -415,7 +437,8 @@
display: block !important;
padding: 0em;
}
.ui.stackable.grid .column {
.ui.stackable.grid .row > .column,
.ui.stackable.grid > .column {
display: block !important;
width: auto !important;
margin: 1.5em 5% 0em !important;

5
build/uncompressed/collections/menu.css

@ -1212,13 +1212,16 @@
}
.ui.small.menu .item {
font-size: 0.875rem;
min-height: 2.25rem;
/* min-height: 2.25rem;*/
}
.ui.small.vertical.menu {
width: 13rem;
}
.ui.menu .item {
font-size: 1rem;
/* min-height: 2.5em;*/
}
.ui.vertical.menu {
width: 15rem;

3
build/uncompressed/collections/message.css

@ -146,9 +146,6 @@
box-shadow: 0em 0em 0em 1px #DDDDDD
;
}
.ui.attached.message .header {
font-size: 1.1em;
}
.ui.attached.message .icon {
float: right;
}

8
build/uncompressed/collections/table.css

@ -38,7 +38,7 @@
cursor: auto;
background-color: rgba(0, 0, 0, 0.05);
text-align: left;
font-weight: bold;
color: rgba(0, 0, 0, 0.5);
padding: 0.5em 0.7em;
vertical-align: middle;
}
@ -77,11 +77,6 @@
/*--------------
Hover
---------------*/
/* Celled */
.ui.celled.table tr:hover td {
background-color: rgba(0, 0, 0, 0.02);
color: #000000;
}
/* Sortable */
.ui.sortable.table thead th:hover {
background-image: none;
@ -286,6 +281,7 @@
---------------*/
.ui.inverted.table th {
background-color: rgba(0, 0, 0, 0.15);
color: rgba(255, 255, 255, 0.9);
}
.ui.inverted.table tbody tr:nth-child(2n) {
background-color: rgba(255, 255, 255, 0.06);

48
build/uncompressed/elements/button.css

@ -754,42 +754,38 @@
.ui.button.fluid,
.ui.fluid.buttons > .button {
width: 100%;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
-ms-box-sizing: border-box;
box-sizing: border-box;
}
.ui.two.fluid.buttons > .button {
.ui.two.buttons > .button {
width: 50%;
}
.ui.three.fluid.buttons > .button {
.ui.three.buttons > .button {
width: 33.333%;
}
.ui.four.fluid.buttons > .button {
.ui.four.buttons > .button {
width: 25%;
}
.ui.five.fluid.buttons > .button {
.ui.five.buttons > .button {
width: 20%;
}
.ui.six.fluid.buttons > .button {
.ui.six.buttons > .button {
width: 16.666%;
}
.ui.seven.fluid.buttons > .button {
.ui.seven.buttons > .button {
width: 14.285%;
}
.ui.eight.fluid.buttons > .button {
.ui.eight.buttons > .button {
width: 12.500%;
}
.ui.nine.fluid.buttons > .button {
.ui.nine.buttons > .button {
width: 11.11%;
}
.ui.ten.fluid.buttons > .button {
.ui.ten.buttons > .button {
width: 10%;
}
.ui.eleven.fluid.buttons > .button {
.ui.eleven.buttons > .button {
width: 9.09%;
}
.ui.twelve.fluid.buttons > .button {
.ui.twelve.buttons > .button {
width: 8.3333%;
}
/* Fluid Vertical Buttons */
@ -801,37 +797,37 @@
-ms-box-sizing: border-box;
box-sizing: border-box;
}
.ui.two.fluid.buttons > .button {
.ui.two.vertical.buttons > .button {
height: 50%;
}
.ui.three.fluid.buttons > .button {
.ui.three.vertical.buttons > .button {
height: 33.333%;
}
.ui.four.fluid.buttons > .button {
.ui.four.vertical.buttons > .button {
height: 25%;
}
.ui.five.fluid.buttons > .button {
.ui.five.vertical.buttons > .button {
height: 20%;
}
.ui.six.fluid.buttons > .button {
.ui.six.vertical.buttons > .button {
height: 16.666%;
}
.ui.seven.fluid.buttons > .button {
.ui.seven.vertical.buttons > .button {
height: 14.285%;
}
.ui.eight.fluid.buttons > .button {
.ui.eight.vertical.buttons > .button {
height: 12.500%;
}
.ui.nine.fluid.buttons > .button {
.ui.nine.vertical.buttons > .button {
height: 11.11%;
}
.ui.ten.fluid.buttons > .button {
.ui.ten.vertical.buttons > .button {
height: 10%;
}
.ui.eleven.fluid.buttons > .button {
.ui.eleven.vertical.buttons > .button {
height: 9.09%;
}
.ui.twelve.fluid.buttons > .button {
.ui.twelve.vertical.buttons > .button {
height: 8.3333%;
}
/*******************************

30
build/uncompressed/elements/header.css

@ -22,6 +22,13 @@
font-weight: bold;
line-height: 1.33;
}
.ui.header:after {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
.ui.header .ui.sub.header,
.ui.header .sub.header {
font-size: 1rem;
@ -42,6 +49,9 @@
.ui.header:first-child {
margin-top: 0em;
}
.ui.header:last-child {
margin-bottom: 0em;
}
.ui.header + p {
margin-top: 0em;
}
@ -118,25 +128,6 @@ h5.ui.header {
.ui.teal.header {
color: #00B5AD !important;
}
/*
.ui.blue.block.header {
background-color: #E6EEF1;
}
.ui.black.block.header {
background-color: #EAEAEA;
}
.ui.green.block.header {
background-color: #EFF8E4;
}
.ui.red.block.header {
background-color: #F6E5E8;
}
.ui.purple.block.header {
background-color: #EFEDF8;
}
.ui.teal.block.header {
background-color: #E9F7F6;
}*/
.ui.blue.dividing.header {
border-bottom: 3px solid #6ECFF5;
}
@ -272,6 +263,7 @@ h5.ui.header {
text-align: center;
}
.ui.icon.header .icon {
float: none;
display: block;
font-size: 4em;
margin: 0em auto 0.2em;

7
build/uncompressed/elements/icons.css

@ -768,3 +768,10 @@ i.massive.icon {
margin-right: 1em;
vertical-align: middle;
}
/*--------------
Sketchy Sizing
---------------*/
i.sketchy.circular.icon,
i.sketchy.square.icon {
padding: 0.35em !important;
}

1
build/uncompressed/modules/dropdown.css

@ -29,6 +29,7 @@
background-color: #FFFFFF;
min-width: 100%;
white-space: nowrap;
text-shadow: none;
-webkit-box-shadow: 0px 0px 1px 1px rgba(0, 0, 0, 0.1), 0px -2px 0px 0px rgba(0, 0, 0, 0.1) inset;
-moz-box-shadow: 0px 0px 1px 1px rgba(0, 0, 0, 0.1), 0px -2px 0px 0px rgba(0, 0, 0, 0.1) inset;
box-shadow: 0px 0px 1px 1px rgba(0, 0, 0, 0.1), 0px -2px 0px 0px rgba(0, 0, 0, 0.1) inset;

2
build/uncompressed/modules/tab.js

@ -47,9 +47,11 @@
if(settings.history) {
if( $.address === undefined ) {
module.error(errors.state);
return false;
}
else if(settings.path === false) {
module.error(errors.path);
return false;
}
else {
module.verbose('Address library found adding state change event');

138
node/src/documents/index.html

@ -4,6 +4,7 @@ css : 'index'
title : 'Introduction'
type : 'Semantic'
---
<script src="/javascript/home.js"></script>
<div class="masthead segment">
<div class="ui responsive grid">
@ -45,50 +46,131 @@ type : 'Semantic'
</div>
</div>
<div class="stripe">
<div class="two column stackable responsive ui grid">
<div class="column">
<div class="large inverted purple ui block header">
<i class="book icon"></i> HTML
<div class="sub header">Sometimes it is easier to just see the code</div>
<div class="two column stackable responsive ui demo grid">
<div class="equal row">
<div class="column">
<div class="large teal ui dividing block header">
<i class="terminal icon"></i> Code
</div>
</div>
<p>This code example shows the code powering the code example.</p>
<div class="code" data-type="html">
<div class="two column stackable responsive ui grid">
<div class="column">
<div class="large red ui dividing block header">
<i class="book icon"></i> View
</div>
</div>
</div>
<div class="equal row">
<div class="column">
<div class="large inverted purple ui block header">
<i class="book icon"></i> HTML
<div class="sub header">Sometimes it is easier to just see the code</div>
<h3 class="ui header">Definitions</h3>
<p>HTML elements are nouns.</p>
<div class="code">
<div class="ui button">Submit</div>
</div>
<p>This code example shows the code powering the code example.</p>
<div class="code">
<!-- Recursion Narrowly Avoided !-->
</div>
<div class="column">
<div class="ui button">Submit</div>
</div>
</div>
<div class="ui divider"></div>
<div class="equal row">
<div class="column">
<h3 class="ui header">Variations</h3>
<p>HTML elements can have variations which modify the way they look or behave.</p>
<p>Variations are mutually exclusive and can be used freedly together in any combination</p>
<div class="code" data-type="html">
<div class="ui large button">Add User</div>
<div class="ui icon button"><i class="add user icon"></i></div>
<div class="ui red button">Add User</div>
<div class="ui large red labeled icon button">
<i class="add user icon"></i>
Add User
</div>
</div>
</div>
<div class="column">
<div class="large inverted teal ui block header">
<i class="terminal icon"></i> Javascript
<div class="sub header">Not everything is static</div>
<div class="ui large button">Add User</div> <br><br>
<div class="ui icon button"><i class="add user icon"></i></div> <br><br>
<div class="ui red button">Add User</div> <br><br>
<div class="ui large red labeled icon button">
<i class="add user icon"></i>
Add User
</div>
<p>Javascript modules use verbs to show actions</p>
<div class="code">
<!-- Once more unto the breach, dear friends, once more; !-->
</div>
</div>
</div>
<div class="ui divider"></div>
<div class="equal row">
<div class="column">
<h3 class="ui header">Plurality</h3>
<p>HTML elements can share qualities as a group to avoid having to define them redundantly.</p>
<div class="code" data-type="html">
<div class="blue ui icon buttons">
<div class="ui button"><i class="grid layout icon"></i></div>
<div class="ui button"><i class="block layout icon"></i></div>
<div class="ui button"><i class="list layout icon"></i></div>
</div>
</div>
</div>
<div class="column">
<div class="blue ui icon buttons">
<div class="ui button"><i class="grid layout icon"></i></div>
<div class="ui button"><i class="block layout icon"></i></div>
<div class="ui button"><i class="list layout icon"></i></div>
</div>
</div>
</div>
<div class="equal row">
<div class="column">
<div class="large inverted teal ui block header">
<i class="terminal icon"></i> Javascript
<div class="sub header">Not everything is static</div>
<h3 class="ui header">Behavior</h3>
<p>Elements may contain definitions of their behavior. An element's behavior is defined as a public API which other parts of your code can invoke.</p>
<div class="ui label">HTML</div>
<div class="code" data-type="html">
<div class="ui pointing secondary menu">
<div class="active red item" data-tab="first">First</div>
<div class="blue item" data-tab="second">Second</div>
<div class="green item" data-tab="third">Third</div>
<div class="right menu">
<div class="oddball item">Open third</div>
</div>
</div>
<div class="ui active tab" data-tab="first">First</div>
<div class="ui tab" data-tab="second">Second</div>
<div class="ui tab" data-tab="third">Third</div>
</div>
<p>Javascript modules use verbs to show actions</p>
<div class="code">
$('.ui.tab')
.tab('activate.tab', 'help')
<div class="ui label">Javascript</div>
<div class="code" data-type="javascript">
// navigation items should open tabs and preserve history
$('.ui.navigation .item')
.tabNavigation({
history: true,
path: '/'
})
;
// we can also execute behavior specifically
$('.ui.navigation .oddball.item')
.on('click', function() {
$(this)
.tabNavigation('deactivate.all')
.tabNavigation('activate.tab', 'third')
.tabNavigation('activate.navigation', 'third')
;
})
;
</div>
</div>
<div class="column">
<div class="ui pointing menu">
<a class="active red item" data-tab="first">First</a>
<a class="blue item" data-tab="second">Second</a>
<a class="green item" data-tab="third">Third</a>
<div class="right menu">
<a class="oddball item">Open third</a>
</div>
</div>
<div class="ui active tab segment" data-tab="first">First</div>
<div class="ui tab segment" data-tab="second">Second</div>
<div class="ui tab segment" data-tab="third">Third</div>
</div>
</div>
</div>
</div>

2
node/src/documents/specification/cssguide.html

@ -23,8 +23,6 @@ type : 'UI Specification'
}
// incorrect
.ui.menu {
}
.ui.menu .ui.item {
}

138
node/src/documents/specification/spec.html

@ -0,0 +1,138 @@
---
layout : 'default'
css : 'guide'
title : 'Spec Files'
type : 'UI Specification'
---
<div class="segment">
<div class="container">
<h1 class="ui header">Spec Files</h1>
</div>
</div>
<div class="main container">
<h2>Introduction</h2>
<p>Semantic defines an exchange format for user interface. Writing your interface components to match the specifications allows others to easily use your interface components in their project.</p>
<h3>Writing a Spec File</h3>
<p>Before authoring an element you should begin by writing a spec file for your element. A specification file defines the structure and names used inside your element. For more information on naming convention visit our css and html guides.</p>
<p>A spec file also allows you to provide metadata to generate code for your element, this can be used to generate visual documentation of your element.</p>
<h3>Common Specification</h3>
<p>A spec file is a specially formatted json file.</p>
<div class="code" type="javascript">
{
// your element name should be a single word and match to the classname of your element
"Name": "Button",
// you may include metadata
"Author": "Jack Lukic",
"Website": "http://www.semantic-ui.com"
"Version": "2.0",
// All elements must specify whether it is an element, collection, module, or behavior
"Type": "Element",
// definition of the html structure of each type of an element
"Types": {
"Standard" : ".ui.button"
},
// States are ways which elements show an innate change in its quality.
"States": {
"Active" : "active",
"Loading" : "loading",
"Disabled" : "disabled"
},
// Variations are individual classnames which your element may receive to alter its look. Variations should, for the most part, be able to be used together to create more complex styles of an element.
"Variations": {
// If a set of variations are options of a single type (for example sizing may contain, small, medium, etc) then this can be defined as an array.
"Size": [
"mini",
"tiny",
"small",
"medium",
"large",
"huge",
"massive"
],
// Types are exclusive forms of your element. For example a button cannot be an icon button and a text button. The definitions of the html structure of each element is written using emmet syntax. These are used to generate html structures for your elements. For more information visit: http://docs.emmet.io/abbreviations/syntax/
"Types": {
"Standard" : ".ui.button",
"Icon" : ".ui.icon.button > i.icon",
}
"Color": [
"black",
"green",
"red",
"blue",
"green",
"red",
"teal"
],
"Ordinality": [
"secondary",
"tertiary"
],
"Attached": [
"attached top",
"attached bottom",
"attached left",
"attached right"
],
"Circular" : "circular",
"Fluid" : "fluid"
},
// You may define a list of dummy text and selectors which can be filled with them. This is used by generators to export a style guide of your interface element. If you specify an array, each item will be used in order to fill the content of each match.
"Text": {
".ui.button": ["Button", "Click Me", "Lorem Ipsum"]
},
// Your module may optionally include a text definition of its variations to help clarify their purpose. This may include the definition of types or variations
"Definition": {
"Standard" : "A simple button",
"Icon" : "A button icon is formatted to contain only an icon",
"Size" : "A button can vary in size",
"Color" : "A button can have different colors",
"Ordinality" : "A button can blend into a page",
"Attached" : "A button can attach to other content",
"Circular" : "A button can be circular",
"Fluid" : "A button can be fluid"
}
}
</div>
<h3>UI Elements</h3>
<p>A UI element is a basic building block of a website. It may have a singular or group (plural) definition</p>
<div class="code" type="javascript">
{
// in addition to the parameters above an element may contain a definition for its singular and plural type
"Types": {
// these types can only exist for class="ui button"
"Singular": {
"Standard" : ".ui.button",
"Icon" : ".ui.icon.button > i.add.icon",
"Labeled Icon" : ".ui.labeled.icon.button > i.add.icon"
},
// these types can exist only for class="ui button"
"Group": {
"Standard" : ".ui.buttons > .button+.button+.button",
"Icon" : ".ui.buttons > ( (.button > i.icon.user) + (.button > i.icon.heart) + (.button > i.icon.lab))",
"Conditional" : ".ui.buttons > .button+.or+.button",
"Vertical" : ".vertical.ui.buttons > .button+.button+.button"
}
}
}
</div>
</div>

65
node/src/files/components/semantic/collections/grid.css

@ -55,8 +55,8 @@
width: 100%;
}
.ui.grid > .row {
margin-top: 2%;
padding-top: 2%;
margin-top: 1rem;
padding-top: 1rem;
}
.ui.grid > .row:first-child {
padding-top: 0rem;
@ -93,7 +93,8 @@
Responsive
--------------------*/
.ui.responsive.grid {
margin: 0%;
margin-left: 0% !important;
margin-right: 0% !important;
min-width: 320px;
}
@media only screen and (max-width: 1000px) {
@ -182,70 +183,91 @@
width: 6.25%;
}
/* Assume full width with one column */
.ui.grid > .column:only-child,
.ui.grid > .row > .column:only-child {
.ui.one.column.grid > .row > .column,
.ui.one.column.grid > .column,
.ui.grid > .one.column.row > .column {
width: 100%;
}
.ui.two.column.grid > .row > .column,
.ui.two.column.grid > .column {
.ui.two.column.grid > .column,
.ui.grid > .two.column.row > .column {
width: 50%;
}
.ui.three.column.grid > .row > .column,
.ui.three.column.grid > .column {
.ui.three.column.grid > .column,
.ui.grid > .three.column.row > .column {
width: 33.3333%;
}
.ui.four.column.grid > .row > .column,
.ui.four.column.grid > .column {
.ui.four.column.grid > .column,
.ui.grid > .four.column.row > .column {
width: 25%;
}
.ui.five.column.grid > .row > .column,
.ui.five.column.grid > .column {
.ui.five.column.grid > .column,
.ui.grid > .five.column.row > .column {
width: 20%;
}
.ui.six.column.grid > .row > .column,
.ui.six.column.grid > .column {
.ui.six.column.grid > .column,
.ui.grid > .six.column.row > .column {
width: 16.66667%;
}
.ui.seven.column.grid > .row > .column,
.ui.seven.column.grid > .column {
.ui.seven.column.grid > .column,
.ui.grid > .seven.column.row > .column {
width: 14.2857%;
}
.ui.eight.column.grid > .row > .column,
.ui.eight.column.grid > .column {
.ui.eight.column.grid > .column,
.ui.grid > .eight.column.row > .column {
width: 12.5%;
}
.ui.nine.column.grid > .row > .column,
.ui.nine.column.grid > .column {
.ui.nine.column.grid > .column,
.ui.grid > .nine.column.row > .column {
width: 11.1111%;
}
.ui.ten.column.grid > .row > .column,
.ui.ten.column.grid > .column {
.ui.ten.column.grid > .column,
.ui.grid > .ten.column.row > .column {
width: 10%;
}
.ui.eleven.column.grid > .row > .column,
.ui.eleven.column.grid > .column {
.ui.eleven.column.grid > .column,
.ui.grid > .eleven.column.row > .column {
width: 9.0909%;
}
.ui.twelve.column.grid > .row > .column,
.ui.twelve.column.grid > .column {
.ui.twelve.column.grid > .column,
.ui.grid > .twelve.column.row > .column {
width: 8.3333%;
}
.ui.thirteen.column.grid > .row > .column,
.ui.thirteen.column.grid > .column {
.ui.thirteen.column.grid > .column,
.ui.grid > .thirteen.column.row > .column {
width: 7.6923%;
}
.ui.fourteen.column.grid > .row > .column,
.ui.fourteen.column.grid > .column {
.ui.fourteen.column.grid > .column,
.ui.grid > .fourteen.column.row > .column {
width: 7.1428%;
}
.ui.fifteen.column.grid > .row > .column,
.ui.fifteen.column.grid > .column {
.ui.fifteen.column.grid > .column,
.ui.grid > .fifteen.column.row > .column {
width: 6.6666%;
}
.ui.sixteen.column.grid > .row > .column,
.ui.sixteen.column.grid > .column {
.ui.sixteen.column.grid > .column,
.ui.grid > .sixteen.column.row > .column {
width: 6.25%;
}
/* Assume full width with one column */
.ui.grid > .column:only-child,
.ui.grid > .row > .column:only-child {
width: 100%;
}
/* Increase Gutters */
.ui.two.column.grid,
.ui.three.column.grid,
@ -415,7 +437,8 @@
display: block !important;
padding: 0em;
}
.ui.stackable.grid .column {
.ui.stackable.grid .row > .column,
.ui.stackable.grid > .column {
display: block !important;
width: auto !important;
margin: 1.5em 5% 0em !important;

5
node/src/files/components/semantic/collections/menu.css

@ -1212,13 +1212,16 @@
}
.ui.small.menu .item {
font-size: 0.875rem;
min-height: 2.25rem;
/* min-height: 2.25rem;*/
}
.ui.small.vertical.menu {
width: 13rem;
}
.ui.menu .item {
font-size: 1rem;
/* min-height: 2.5em;*/
}
.ui.vertical.menu {
width: 15rem;

3
node/src/files/components/semantic/collections/message.css

@ -146,9 +146,6 @@
box-shadow: 0em 0em 0em 1px #DDDDDD
;
}
.ui.attached.message .header {
font-size: 1.1em;
}
.ui.attached.message .icon {
float: right;
}

8
node/src/files/components/semantic/collections/table.css

@ -38,7 +38,7 @@
cursor: auto;
background-color: rgba(0, 0, 0, 0.05);
text-align: left;
font-weight: bold;
color: rgba(0, 0, 0, 0.5);
padding: 0.5em 0.7em;
vertical-align: middle;
}
@ -77,11 +77,6 @@
/*--------------
Hover
---------------*/
/* Celled */
.ui.celled.table tr:hover td {
background-color: rgba(0, 0, 0, 0.02);
color: #000000;
}
/* Sortable */
.ui.sortable.table thead th:hover {
background-image: none;
@ -286,6 +281,7 @@
---------------*/
.ui.inverted.table th {
background-color: rgba(0, 0, 0, 0.15);
color: rgba(255, 255, 255, 0.9);
}
.ui.inverted.table tbody tr:nth-child(2n) {
background-color: rgba(255, 255, 255, 0.06);

48
node/src/files/components/semantic/elements/button.css

@ -754,42 +754,38 @@
.ui.button.fluid,
.ui.fluid.buttons > .button {
width: 100%;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
-ms-box-sizing: border-box;
box-sizing: border-box;
}
.ui.two.fluid.buttons > .button {
.ui.two.buttons > .button {
width: 50%;
}
.ui.three.fluid.buttons > .button {
.ui.three.buttons > .button {
width: 33.333%;
}
.ui.four.fluid.buttons > .button {
.ui.four.buttons > .button {
width: 25%;
}
.ui.five.fluid.buttons > .button {
.ui.five.buttons > .button {
width: 20%;
}
.ui.six.fluid.buttons > .button {
.ui.six.buttons > .button {
width: 16.666%;
}
.ui.seven.fluid.buttons > .button {
.ui.seven.buttons > .button {
width: 14.285%;
}
.ui.eight.fluid.buttons > .button {
.ui.eight.buttons > .button {
width: 12.500%;
}
.ui.nine.fluid.buttons > .button {
.ui.nine.buttons > .button {
width: 11.11%;
}
.ui.ten.fluid.buttons > .button {
.ui.ten.buttons > .button {
width: 10%;
}
.ui.eleven.fluid.buttons > .button {
.ui.eleven.buttons > .button {
width: 9.09%;
}
.ui.twelve.fluid.buttons > .button {
.ui.twelve.buttons > .button {
width: 8.3333%;
}
/* Fluid Vertical Buttons */
@ -801,37 +797,37 @@
-ms-box-sizing: border-box;
box-sizing: border-box;
}
.ui.two.fluid.buttons > .button {
.ui.two.vertical.buttons > .button {
height: 50%;
}
.ui.three.fluid.buttons > .button {
.ui.three.vertical.buttons > .button {
height: 33.333%;
}
.ui.four.fluid.buttons > .button {
.ui.four.vertical.buttons > .button {
height: 25%;
}
.ui.five.fluid.buttons > .button {
.ui.five.vertical.buttons > .button {
height: 20%;
}
.ui.six.fluid.buttons > .button {
.ui.six.vertical.buttons > .button {
height: 16.666%;
}
.ui.seven.fluid.buttons > .button {
.ui.seven.vertical.buttons > .button {
height: 14.285%;
}
.ui.eight.fluid.buttons > .button {
.ui.eight.vertical.buttons > .button {
height: 12.500%;
}
.ui.nine.fluid.buttons > .button {
.ui.nine.vertical.buttons > .button {
height: 11.11%;
}
.ui.ten.fluid.buttons > .button {
.ui.ten.vertical.buttons > .button {
height: 10%;
}
.ui.eleven.fluid.buttons > .button {
.ui.eleven.vertical.buttons > .button {
height: 9.09%;
}
.ui.twelve.fluid.buttons > .button {
.ui.twelve.vertical.buttons > .button {
height: 8.3333%;
}
/*******************************

30
node/src/files/components/semantic/elements/header.css

@ -22,6 +22,13 @@
font-weight: bold;
line-height: 1.33;
}
.ui.header:after {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
.ui.header .ui.sub.header,
.ui.header .sub.header {
font-size: 1rem;
@ -42,6 +49,9 @@
.ui.header:first-child {
margin-top: 0em;
}
.ui.header:last-child {
margin-bottom: 0em;
}
.ui.header + p {
margin-top: 0em;
}
@ -118,25 +128,6 @@ h5.ui.header {
.ui.teal.header {
color: #00B5AD !important;
}
/*
.ui.blue.block.header {
background-color: #E6EEF1;
}
.ui.black.block.header {
background-color: #EAEAEA;
}
.ui.green.block.header {
background-color: #EFF8E4;
}
.ui.red.block.header {
background-color: #F6E5E8;
}
.ui.purple.block.header {
background-color: #EFEDF8;
}
.ui.teal.block.header {
background-color: #E9F7F6;
}*/
.ui.blue.dividing.header {
border-bottom: 3px solid #6ECFF5;
}
@ -272,6 +263,7 @@ h5.ui.header {
text-align: center;
}
.ui.icon.header .icon {
float: none;
display: block;
font-size: 4em;
margin: 0em auto 0.2em;

7
node/src/files/components/semantic/elements/icons.css

@ -768,3 +768,10 @@ i.massive.icon {
margin-right: 1em;
vertical-align: middle;
}
/*--------------
Sketchy Sizing
---------------*/
i.sketchy.circular.icon,
i.sketchy.square.icon {
padding: 0.35em !important;
}

1
node/src/files/components/semantic/modules/dropdown.css

@ -29,6 +29,7 @@
background-color: #FFFFFF;
min-width: 100%;
white-space: nowrap;
text-shadow: none;
-webkit-box-shadow: 0px 0px 1px 1px rgba(0, 0, 0, 0.1), 0px -2px 0px 0px rgba(0, 0, 0, 0.1) inset;
-moz-box-shadow: 0px 0px 1px 1px rgba(0, 0, 0, 0.1), 0px -2px 0px 0px rgba(0, 0, 0, 0.1) inset;
box-shadow: 0px 0px 1px 1px rgba(0, 0, 0, 0.1), 0px -2px 0px 0px rgba(0, 0, 0, 0.1) inset;

2
node/src/files/components/semantic/modules/tab.js

@ -47,9 +47,11 @@
if(settings.history) {
if( $.address === undefined ) {
module.error(errors.state);
return false;
}
else if(settings.path === false) {
module.error(errors.path);
return false;
}
else {
module.verbose('Address library found adding state change event');

35
node/src/files/javascript/home.js

@ -0,0 +1,35 @@
semantic.home = {};
// ready event
semantic.home.ready = function() {
// selector cache
var
$navigationItem = $('.demo .menu .item'),
$oddballItem = $navigationItem.filter('.oddball'),
// alias
handler
;
$navigationItem
.tabNavigation({
history: true,
path: '/'
})
;
$oddballItem
.on('click', function() {
$(this)
.tabNavigation('deactivate.all')
.tabNavigation('activate.tab', 'third')
.tabNavigation('activate.navigation', 'third')
;
})
;
};
// attach ready event
$(document)
.ready(semantic.home.ready)
;

598
node/src/files/javascript/library/history.js

@ -0,0 +1,598 @@
/*! jQuery Address v${version} | (c) 2009, 2013 Rostislav Hristov | jquery.org/license */
(function ($) {
$.address = (function () {
var _trigger = function(name) {
var e = $.extend($.Event(name), (function() {
var parameters = {},
parameterNames = $.address.parameterNames();
for (var i = 0, l = parameterNames.length; i < l; i++) {
parameters[parameterNames[i]] = $.address.parameter(parameterNames[i]);
}
return {
value: $.address.value(),
path: $.address.path(),
pathNames: $.address.pathNames(),
parameterNames: parameterNames,
parameters: parameters,
queryString: $.address.queryString()
};
}).call($.address));
$($.address).trigger(e);
return e;
},
_array = function(obj) {
return Array.prototype.slice.call(obj);
},
_bind = function(value, data, fn) {
$().bind.apply($($.address), Array.prototype.slice.call(arguments));
return $.address;
},
_unbind = function(value, fn) {
$().unbind.apply($($.address), Array.prototype.slice.call(arguments));
return $.address;
},
_supportsState = function() {
return (_h.pushState && _opts.state !== UNDEFINED);
},
_hrefState = function() {
return ('/' + _l.pathname.replace(new RegExp(_opts.state), '') +
_l.search + (_hrefHash() ? '#' + _hrefHash() : '')).replace(_re, '/');
},
_hrefHash = function() {
var index = _l.href.indexOf('#');
return index != -1 ? _l.href.substr(index + 1) : '';
},
_href = function() {
return _supportsState() ? _hrefState() : _hrefHash();
},
_window = function() {
try {
return top.document !== UNDEFINED && top.document.title !== UNDEFINED ? top : window;
} catch (e) {
return window;
}
},
_js = function() {
return 'javascript';
},
_strict = function(value) {
value = value.toString();
return (_opts.strict && value.substr(0, 1) != '/' ? '/' : '') + value;
},
_cssint = function(el, value) {
return parseInt(el.css(value), 10);
},
_listen = function() {
if (!_silent) {
var hash = _href(),
diff = decodeURI(_value) != decodeURI(hash);
if (diff) {
if (_msie && _version < 7) {
_l.reload();
} else {
if (_msie && !_hashchange && _opts.history) {
_st(_html, 50);
}
_value = hash;
_update(FALSE);
}
}
}
},
_update = function(internal) {
_st(_track, 10);
return _trigger(CHANGE).isDefaultPrevented() ||
_trigger(internal ? INTERNAL_CHANGE : EXTERNAL_CHANGE).isDefaultPrevented();
},
_track = function() {
if (_opts.tracker !== 'null' && _opts.tracker !== NULL) {
var fn = $.isFunction(_opts.tracker) ? _opts.tracker : _t[_opts.tracker],
value = (_l.pathname + _l.search +
($.address && !_supportsState() ? $.address.value() : ''))
.replace(/\/\//, '/').replace(/^\/$/, '');
if ($.isFunction(fn)) {
fn(value);
} else if ($.isFunction(_t.urchinTracker)) {
_t.urchinTracker(value);
} else if (_t.pageTracker !== UNDEFINED && $.isFunction(_t.pageTracker._trackPageview)) {
_t.pageTracker._trackPageview(value);
} else if (_t._gaq !== UNDEFINED && $.isFunction(_t._gaq.push)) {
_t._gaq.push(['_trackPageview', decodeURI(value)]);
}
}
},
_html = function() {
var src = _js() + ':' + FALSE + ';document.open();document.writeln(\'<html><head><title>' +
_d.title.replace(/\'/g, '\\\'') + '</title><script>var ' + ID + ' = "' + encodeURIComponent(_href()).replace(/\'/g, '\\\'') +
(_d.domain != _l.hostname ? '";document.domain="' + _d.domain : '') +
'";</' + 'script></head></html>\');document.close();';
if (_version < 7) {
_frame.src = src;
} else {
_frame.contentWindow.location.replace(src);
}
},
_options = function() {
if (_url && _qi != -1) {
var i, param, params = _url.substr(_qi + 1).split('&');
for (i = 0; i < params.length; i++) {
param = params[i].split('=');
if (/^(autoUpdate|history|strict|wrap)$/.test(param[0])) {
_opts[param[0]] = (isNaN(param[1]) ? /^(true|yes)$/i.test(param[1]) : (parseInt(param[1], 10) !== 0));
}
if (/^(state|tracker)$/.test(param[0])) {
_opts[param[0]] = param[1];
}
}
_url = NULL;
}
_value = _href();
},
_load = function() {
if (!_loaded) {
_loaded = TRUE;
_options();
$('a[rel*="address:"]').address();
if (_opts.wrap) {
var body = $('body'),
wrap = $('body > *')
.wrapAll('<div style="padding:' +
(_cssint(body, 'marginTop') + _cssint(body, 'paddingTop')) + 'px ' +
(_cssint(body, 'marginRight') + _cssint(body, 'paddingRight')) + 'px ' +
(_cssint(body, 'marginBottom') + _cssint(body, 'paddingBottom')) + 'px ' +
(_cssint(body, 'marginLeft') + _cssint(body, 'paddingLeft')) + 'px;" />')
.parent()
.wrap('<div id="' + ID + '" style="height:100%;overflow:auto;position:relative;' +
(_webkit && !window.statusbar.visible ? 'resize:both;' : '') + '" />');
$('html, body')
.css({
height: '100%',
margin: 0,
padding: 0,
overflow: 'hidden'
});
if (_webkit) {
$('<style type="text/css" />')
.appendTo('head')
.text('#' + ID + '::-webkit-resizer { background-color: #fff; }');
}
}
if (_msie && !_hashchange) {
var frameset = _d.getElementsByTagName('frameset')[0];
_frame = _d.createElement((frameset ? '' : 'i') + 'frame');
_frame.src = _js() + ':' + FALSE;
if (frameset) {
frameset.insertAdjacentElement('beforeEnd', _frame);
frameset[frameset.cols ? 'cols' : 'rows'] += ',0';
_frame.noResize = TRUE;
_frame.frameBorder = _frame.frameSpacing = 0;
} else {
_frame.style.display = 'none';
_frame.style.width = _frame.style.height = 0;
_frame.tabIndex = -1;
_d.body.insertAdjacentElement('afterBegin', _frame);
}
_st(function() {
$(_frame).bind('load', function() {
var win = _frame.contentWindow;
_value = win[ID] !== UNDEFINED ? win[ID] : '';
if (_value != _href()) {
_update(FALSE);
_l.hash = _value;
}
});
if (_frame.contentWindow[ID] === UNDEFINED) {
_html();
}
}, 50);
}
_st(function() {
_trigger('init');
_update(FALSE);
}, 1);
if (!_supportsState()) {
if ((_msie && _version > 7) || (!_msie && _hashchange)) {
if (_t.addEventListener) {
_t.addEventListener(HASH_CHANGE, _listen, FALSE);
} else if (_t.attachEvent) {
_t.attachEvent('on' + HASH_CHANGE, _listen);
}
} else {
_si(_listen, 50);
}
}
if ('state' in window.history) {
$(window).trigger('popstate');
}
}
},
_popstate = function() {
if (decodeURI(_value) != decodeURI(_href())) {
_value = _href();
_update(FALSE);
}
},
_unload = function() {
if (_t.removeEventListener) {
_t.removeEventListener(HASH_CHANGE, _listen, FALSE);
} else if (_t.detachEvent) {
_t.detachEvent('on' + HASH_CHANGE, _listen);
}
},
_uaMatch = function(ua) {
ua = ua.toLowerCase();
var match = /(chrome)[ \/]([\w.]+)/.exec( ua ) ||
/(webkit)[ \/]([\w.]+)/.exec( ua ) ||
/(opera)(?:.*version|)[ \/]([\w.]+)/.exec( ua ) ||
/(msie) ([\w.]+)/.exec( ua ) ||
ua.indexOf('compatible') < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec( ua ) ||
[];
return {
browser: match[ 1 ] || '',
version: match[ 2 ] || '0'
};
},
_detectBrowser = function() {
var browser = {},
matched = _uaMatch(navigator.userAgent);
if (matched.browser) {
browser[matched.browser] = true;
browser.version = matched.version;
}
if (browser.chrome) {
browser.webkit = true;
} else if (browser.webkit) {
browser.safari = true;
}
return browser;
},
UNDEFINED,
NULL = null,
ID = 'jQueryAddress',
STRING = 'string',
HASH_CHANGE = 'hashchange',
INIT = 'init',
CHANGE = 'change',
INTERNAL_CHANGE = 'internalChange',
EXTERNAL_CHANGE = 'externalChange',
TRUE = true,
FALSE = false,
_opts = {
autoUpdate: TRUE,
history: TRUE,
strict: TRUE,
wrap: FALSE
},
_browser = _detectBrowser(),
_version = parseFloat(_browser.version),
_webkit = _browser.webkit || _browser.safari,
_msie = !$.support.opacity,
_t = _window(),
_d = _t.document,
_h = _t.history,
_l = _t.location,
_si = setInterval,
_st = setTimeout,
_re = /\/{2,9}/g,
_agent = navigator.userAgent,
_hashchange = 'on' + HASH_CHANGE in _t,
_frame,
_form,
_url = $('script:last').attr('src'),
_qi = _url ? _url.indexOf('?') : -1,
_title = _d.title,
_silent = FALSE,
_loaded = FALSE,
_juststart = TRUE,
_updating = FALSE,
_listeners = {},
_value = _href();
if (_msie) {
_version = parseFloat(_agent.substr(_agent.indexOf('MSIE') + 4));
if (_d.documentMode && _d.documentMode != _version) {
_version = _d.documentMode != 8 ? 7 : 8;
}
var pc = _d.onpropertychange;
_d.onpropertychange = function() {
if (pc) {
pc.call(_d);
}
if (_d.title != _title && _d.title.indexOf('#' + _href()) != -1) {
_d.title = _title;
}
};
}
if (_h.navigationMode) {
_h.navigationMode = 'compatible';
}
if (document.readyState == 'complete') {
var interval = setInterval(function() {
if ($.address) {
_load();
clearInterval(interval);
}
}, 50);
} else {
_options();
$(_load);
}
$(window).bind('popstate', _popstate).bind('unload', _unload);
return {
bind: function(type, data, fn) {
return _bind.apply(this, _array(arguments));
},
unbind: function(type, fn) {
return _unbind.apply(this, _array(arguments));
},
init: function(data, fn) {
return _bind.apply(this, [INIT].concat(_array(arguments)));
},
change: function(data, fn) {
return _bind.apply(this, [CHANGE].concat(_array(arguments)));
},
internalChange: function(data, fn) {
return _bind.apply(this, [INTERNAL_CHANGE].concat(_array(arguments)));
},
externalChange: function(data, fn) {
return _bind.apply(this, [EXTERNAL_CHANGE].concat(_array(arguments)));
},
baseURL: function() {
var url = _l.href;
if (url.indexOf('#') != -1) {
url = url.substr(0, url.indexOf('#'));
}
if (/\/$/.test(url)) {
url = url.substr(0, url.length - 1);
}
return url;
},
autoUpdate: function(value) {
if (value !== UNDEFINED) {
_opts.autoUpdate = value;
return this;
}
return _opts.autoUpdate;
},
history: function(value) {
if (value !== UNDEFINED) {
_opts.history = value;
return this;
}
return _opts.history;
},
state: function(value) {
if (value !== UNDEFINED) {
_opts.state = value;
var hrefState = _hrefState();
if (_opts.state !== UNDEFINED) {
if (_h.pushState) {
if (hrefState.substr(0, 3) == '/#/') {
_l.replace(_opts.state.replace(/^\/$/, '') + hrefState.substr(2));
}
} else if (hrefState != '/' && hrefState.replace(/^\/#/, '') != _hrefHash()) {
_st(function() {
_l.replace(_opts.state.replace(/^\/$/, '') + '/#' + hrefState);
}, 1);
}
}
return this;
}
return _opts.state;
},
strict: function(value) {
if (value !== UNDEFINED) {
_opts.strict = value;
return this;
}
return _opts.strict;
},
tracker: function(value) {
if (value !== UNDEFINED) {
_opts.tracker = value;
return this;
}
return _opts.tracker;
},
wrap: function(value) {
if (value !== UNDEFINED) {
_opts.wrap = value;
return this;
}
return _opts.wrap;
},
update: function() {
_updating = TRUE;
this.value(_value);
_updating = FALSE;
return this;
},
title: function(value) {
if (value !== UNDEFINED) {
_st(function() {
_title = _d.title = value;
if (_juststart && _frame && _frame.contentWindow && _frame.contentWindow.document) {
_frame.contentWindow.document.title = value;
_juststart = FALSE;
}
}, 50);
return this;
}
return _d.title;
},
value: function(value) {
if (value !== UNDEFINED) {
value = _strict(value);
if (value == '/') {
value = '';
}
if (_value == value && !_updating) {
return;
}
_value = value;
if (_opts.autoUpdate || _updating) {
if (_update(TRUE)) {
return this;
}
if (_supportsState()) {
_h[_opts.history ? 'pushState' : 'replaceState']({}, '',
_opts.state.replace(/\/$/, '') + (_value === '' ? '/' : _value));
} else {
_silent = TRUE;
if (_webkit) {
if (_opts.history) {
_l.hash = '#' + _value;
} else {
_l.replace('#' + _value);
}
} else if (_value != _href()) {
if (_opts.history) {
_l.hash = '#' + _value;
} else {
_l.replace('#' + _value);
}
}
if ((_msie && !_hashchange) && _opts.history) {
_st(_html, 50);
}
if (_webkit) {
_st(function(){ _silent = FALSE; }, 1);
} else {
_silent = FALSE;
}
}
}
return this;
}
return _strict(_value);
},
path: function(value) {
if (value !== UNDEFINED) {
var qs = this.queryString(),
hash = this.hash();
this.value(value + (qs ? '?' + qs : '') + (hash ? '#' + hash : ''));
return this;
}
return _strict(_value).split('#')[0].split('?')[0];
},
pathNames: function() {
var path = this.path(),
names = path.replace(_re, '/').split('/');
if (path.substr(0, 1) == '/' || path.length === 0) {
names.splice(0, 1);
}
if (path.substr(path.length - 1, 1) == '/') {
names.splice(names.length - 1, 1);
}
return names;
},
queryString: function(value) {
if (value !== UNDEFINED) {
var hash = this.hash();
this.value(this.path() + (value ? '?' + value : '') + (hash ? '#' + hash : ''));
return this;
}
var arr = _value.split('?');
return arr.slice(1, arr.length).join('?').split('#')[0];
},
parameter: function(name, value, append) {
var i, params;
if (value !== UNDEFINED) {
var names = this.parameterNames();
params = [];
value = value === UNDEFINED || value === NULL ? '' : value.toString();
for (i = 0; i < names.length; i++) {
var n = names[i],
v = this.parameter(n);
if (typeof v == STRING) {
v = [v];
}
if (n == name) {
v = (value === NULL || value === '') ? [] :
(append ? v.concat([value]) : [value]);
}
for (var j = 0; j < v.length; j++) {
params.push(n + '=' + v[j]);
}
}
if ($.inArray(name, names) == -1 && value !== NULL && value !== '') {
params.push(name + '=' + value);
}
this.queryString(params.join('&'));
return this;
}
value = this.queryString();
if (value) {
var r = [];
params = value.split('&');
for (i = 0; i < params.length; i++) {
var p = params[i].split('=');
if (p[0] == name) {
r.push(p.slice(1).join('='));
}
}
if (r.length !== 0) {
return r.length != 1 ? r : r[0];
}
}
},
parameterNames: function() {
var qs = this.queryString(),
names = [];
if (qs && qs.indexOf('=') != -1) {
var params = qs.split('&');
for (var i = 0; i < params.length; i++) {
var name = params[i].split('=')[0];
if ($.inArray(name, names) == -1) {
names.push(name);
}
}
}
return names;
},
hash: function(value) {
if (value !== UNDEFINED) {
this.value(_value.split('#')[0] + (value ? '#' + value : ''));
return this;
}
var arr = _value.split('#');
return arr.slice(1, arr.length).join('#');
}
};
})();
$.fn.address = function(fn) {
if (!this.data('address')) {
this.on('click', function(e) {
if (e.shiftKey || e.ctrlKey || e.metaKey || e.which == 2) {
return true;
}
var target = e.currentTarget;
if ($(target).is('a')) {
e.preventDefault();
var value = fn ? fn.call(target) :
/address:/.test($(target).attr('rel')) ? $(target).attr('rel').split('address:')[1].split(' ')[0] :
$.address.state() !== undefined && !/^\/?$/.test($.address.state()) ?
$(target).attr('href').replace(new RegExp('^(.*' + $.address.state() + '|\\.)'), '') :
$(target).attr('href').replace(/^(#\!?|\.)/, '');
$.address.value(value);
}
}).on('submit', function(e) {
var target = e.currentTarget;
if ($(target).is('form')) {
e.preventDefault();
var action = $(target).attr('action'),
value = fn ? fn.call(target) : (action.indexOf('?') != -1 ? action.replace(/&$/, '') : action + '?') +
$(target).serialize();
$.address.value(value);
}
}).data('address', true);
}
return this;
};
})(jQuery);

8
node/src/files/stylesheets/semantic.css

@ -219,6 +219,9 @@ table code {
p {
margin: 1em 0em;
}
p:first-child {
margin-top: 0em;
}
p:last-child {
margin-bottom: 0em;
}
@ -980,11 +983,6 @@ a:hover {
}
#example.index .grid .column {
padding-left: 3%;
padding-right: 3%;
}
@media only screen and (max-width : 1725px) {
#example .container {
width: auto;

3
node/src/layouts/default.html.eco

@ -54,6 +54,7 @@
<link rel="stylesheet" type="text/css" class="ui" href="/components/semantic/modules/dropdown.css">
<link rel="stylesheet" type="text/css" class="ui" href="/components/semantic/modules/popup.css">
<link rel="stylesheet" type="text/css" class="ui" href="/components/semantic/modules/shape.css">
<link rel="stylesheet" type="text/css" class="ui" href="/components/semantic/modules/tab.css">
<link rel="stylesheet" type="text/css" class="ui" href="/components/semantic/modules/checkbox.css">
<link rel="stylesheet" type="text/css" class="ui" href="/components/semantic/modules/dimmer.css">
@ -63,6 +64,7 @@
<%- @getBlock('scripts').toHTML() %>
<script src="/javascript/library/jquery.js"></script>
<script src="/javascript/library/history.js"></script>
<script src="/javascript/library/easing.js"></script>
<script src="/javascript/library/ace/ace.js"></script>
<script src="/javascript/library/sidr.js"></script>
@ -71,6 +73,7 @@
<script src="/components/semantic/modules/behavior/state.js"></script>
<script src="/components/semantic/modules/checkbox.js"></script>
<script src="/components/semantic/modules/popup.js"></script>
<script src="/components/semantic/modules/tab.js"></script>
<script src="/javascript/semantic.js"></script>

93
src/collections/grid.less

@ -68,8 +68,8 @@
}
.ui.grid > .row {
margin-top: 2%;
padding-top: 2%;
margin-top: 1rem;
padding-top: 1rem;
}
.ui.grid > .row:first-child {
padding-top: 0rem;
@ -121,7 +121,8 @@
--------------------*/
.ui.responsive.grid {
margin: 0%;
margin-left: 0% !important;
margin-right: 0% !important;
min-width: 320px;
}
@ -229,73 +230,96 @@
.ui.grid > .row > .column {
width: 6.25%;
}
/* Assume full width with one column */
.ui.grid > .column:only-child,
.ui.grid > .row > .column:only-child {
.ui.one.column.grid > .row > .column,
.ui.one.column.grid > .column,
.ui.grid > .one.column.row > .column {
width: 100%;
}
.ui.two.column.grid > .row > .column,
.ui.two.column.grid > .column {
.ui.two.column.grid > .column,
.ui.grid > .two.column.row > .column {
width: 50%;
}
.ui.three.column.grid > .row > .column,
.ui.three.column.grid > .column {
.ui.three.column.grid > .row > .column,
.ui.three.column.grid > .column,
.ui.grid > .three.column.row > .column {
width: 33.3333%;
}
.ui.four.column.grid > .row > .column,
.ui.four.column.grid > .column {
.ui.four.column.grid > .row > .column,
.ui.four.column.grid > .column,
.ui.grid > .four.column.row > .column {
width: 25%;
}
.ui.five.column.grid > .row > .column,
.ui.five.column.grid > .column {
.ui.five.column.grid > .row > .column,
.ui.five.column.grid > .column,
.ui.grid > .five.column.row > .column {
width: 20%;
}
.ui.six.column.grid > .row > .column,
.ui.six.column.grid > .column {
.ui.six.column.grid > .column,
.ui.grid > .six.column.row > .column {
width: 16.66667%;
}
.ui.seven.column.grid > .row > .column,
.ui.seven.column.grid > .column {
.ui.seven.column.grid > .row > .column,
.ui.seven.column.grid > .column,
.ui.grid > .seven.column.row > .column {
width: 14.2857%;
}
.ui.eight.column.grid > .row > .column,
.ui.eight.column.grid > .column {
.ui.eight.column.grid > .row > .column,
.ui.eight.column.grid > .column,
.ui.grid > .eight.column.row > .column {
width: 12.5%;
}
.ui.nine.column.grid > .row > .column,
.ui.nine.column.grid > .column {
.ui.nine.column.grid > .row > .column,
.ui.nine.column.grid > .column,
.ui.grid > .nine.column.row > .column {
width: 11.1111%;
}
.ui.ten.column.grid > .row > .column,
.ui.ten.column.grid > .column {
.ui.ten.column.grid > .column,
.ui.grid > .ten.column.row > .column {
width: 10%;
}
.ui.eleven.column.grid > .row > .column,
.ui.eleven.column.grid > .column {
.ui.eleven.column.grid > .row > .column,
.ui.eleven.column.grid > .column,
.ui.grid > .eleven.column.row > .column {
width: 9.0909%;
}
.ui.twelve.column.grid > .row > .column,
.ui.twelve.column.grid > .column {
.ui.twelve.column.grid > .row > .column,
.ui.twelve.column.grid > .column,
.ui.grid > .twelve.column.row > .column {
width: 8.3333%;
}
.ui.thirteen.column.grid > .row > .column,
.ui.thirteen.column.grid > .column {
.ui.thirteen.column.grid > .row > .column,
.ui.thirteen.column.grid > .column,
.ui.grid > .thirteen.column.row > .column {
width: 7.6923%;
}
.ui.fourteen.column.grid > .row > .column,
.ui.fourteen.column.grid > .column {
.ui.fourteen.column.grid > .row > .column,
.ui.fourteen.column.grid > .column,
.ui.grid > .fourteen.column.row > .column {
width: 7.1428%;
}
.ui.fifteen.column.grid > .row > .column,
.ui.fifteen.column.grid > .column {
.ui.fifteen.column.grid > .row > .column,
.ui.fifteen.column.grid > .column,
.ui.grid > .fifteen.column.row > .column {
width: 6.6666%;
}
.ui.sixteen.column.grid > .row > .column,
.ui.sixteen.column.grid > .column {
.ui.sixteen.column.grid > .row > .column,
.ui.sixteen.column.grid > .column,
.ui.grid > .sixteen.column.row > .column {
width: 6.25%;
}
/* Assume full width with one column */
.ui.grid > .column:only-child,
.ui.grid > .row > .column:only-child {
width: 100%;
}
/* Increase Gutters */
.ui.two.column.grid,
.ui.three.column.grid,
@ -493,7 +517,8 @@
display: block !important;
padding: 0em;
}
.ui.stackable.grid .column {
.ui.stackable.grid .row > .column,
.ui.stackable.grid > .column {
display: block !important;
width: auto !important;

3
src/collections/menu.less

@ -1535,7 +1535,7 @@
.ui.small.menu .item {
font-size: 0.875rem;
min-height: 2.25rem;
/* min-height: 2.25rem;*/
}
.ui.small.vertical.menu {
width: 13rem;
@ -1543,6 +1543,7 @@
.ui.menu .item {
font-size: 1rem;
/* min-height: 2.5em;*/
}
.ui.vertical.menu {
width: 15rem;

3
src/collections/message.less

@ -210,9 +210,6 @@
0em 0em 0em 1px #DDDDDD
;
}
.ui.attached.message .header {
font-size: 1.1em;
}
.ui.attached.message .icon {
float: right;
}

9
src/collections/table.less

@ -45,7 +45,7 @@
background-color: rgba(0, 0, 0, 0.05);
text-align: left;
font-weight: bold;
color: rgba(0, 0, 0, 0.5);
padding: 0.5em 0.7em;
vertical-align: middle;
}
@ -92,12 +92,6 @@
Hover
---------------*/
/* Celled */
.ui.celled.table tr:hover td {
background-color: rgba(0, 0, 0, 0.02);
color: rgba(0, 0, 0, 1);
}
/* Sortable */
.ui.sortable.table thead th:hover {
background-image: none;
@ -328,6 +322,7 @@
.ui.inverted.table th {
background-color: rgba(0, 0, 0, 0.15);
color: rgba(255, 255, 255, 0.9);
}
.ui.inverted.table tbody tr:nth-child(2n) {
background-color: rgba(255, 255, 255, 0.06);

48
src/elements/button.less

@ -916,42 +916,38 @@
.ui.button.fluid,
.ui.fluid.buttons > .button {
width: 100%;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
-ms-box-sizing: border-box;
box-sizing: border-box;
}
.ui.two.fluid.buttons > .button {
.ui.two.buttons > .button {
width: 50%;
}
.ui.three.fluid.buttons > .button {
.ui.three.buttons > .button {
width: 33.333%;
}
.ui.four.fluid.buttons > .button {
.ui.four.buttons > .button {
width: 25%;
}
.ui.five.fluid.buttons > .button {
.ui.five.buttons > .button {
width: 20%;
}
.ui.six.fluid.buttons > .button {
.ui.six.buttons > .button {
width: 16.666%;
}
.ui.seven.fluid.buttons > .button {
.ui.seven.buttons > .button {
width: 14.285%;
}
.ui.eight.fluid.buttons > .button {
.ui.eight.buttons > .button {
width: 12.500%;
}
.ui.nine.fluid.buttons > .button {
.ui.nine.buttons > .button {
width: 11.11%;
}
.ui.ten.fluid.buttons > .button {
.ui.ten.buttons > .button {
width: 10%;
}
.ui.eleven.fluid.buttons > .button {
.ui.eleven.buttons > .button {
width: 9.09%;
}
.ui.twelve.fluid.buttons > .button {
.ui.twelve.buttons > .button {
width: 8.3333%;
}
@ -964,37 +960,37 @@
-ms-box-sizing: border-box;
box-sizing: border-box;
}
.ui.two.fluid.buttons > .button {
.ui.two.vertical.buttons > .button {
height: 50%;
}
.ui.three.fluid.buttons > .button {
.ui.three.vertical.buttons > .button {
height: 33.333%;
}
.ui.four.fluid.buttons > .button {
.ui.four.vertical.buttons > .button {
height: 25%;
}
.ui.five.fluid.buttons > .button {
.ui.five.vertical.buttons > .button {
height: 20%;
}
.ui.six.fluid.buttons > .button {
.ui.six.vertical.buttons > .button {
height: 16.666%;
}
.ui.seven.fluid.buttons > .button {
.ui.seven.vertical.buttons > .button {
height: 14.285%;
}
.ui.eight.fluid.buttons > .button {
.ui.eight.vertical.buttons > .button {
height: 12.500%;
}
.ui.nine.fluid.buttons > .button {
.ui.nine.vertical.buttons > .button {
height: 11.11%;
}
.ui.ten.fluid.buttons > .button {
.ui.ten.vertical.buttons > .button {
height: 10%;
}
.ui.eleven.fluid.buttons > .button {
.ui.eleven.vertical.buttons > .button {
height: 9.09%;
}
.ui.twelve.fluid.buttons > .button {
.ui.twelve.vertical.buttons > .button {
height: 8.3333%;
}

31
src/elements/header.less

@ -26,6 +26,14 @@
font-weight: bold;
line-height: 1.33;
}
.ui.header:after {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
.ui.header .ui.sub.header,
.ui.header .sub.header {
@ -50,6 +58,9 @@
.ui.header:first-child {
margin-top: 0em;
}
.ui.header:last-child {
margin-bottom: 0em;
}
.ui.header + p {
margin-top: 0em;
}
@ -138,25 +149,6 @@ h5.ui.header {
.ui.teal.header {
color: #00B5AD !important;
}
/*
.ui.blue.block.header {
background-color: #E6EEF1;
}
.ui.black.block.header {
background-color: #EAEAEA;
}
.ui.green.block.header {
background-color: #EFF8E4;
}
.ui.red.block.header {
background-color: #F6E5E8;
}
.ui.purple.block.header {
background-color: #EFEDF8;
}
.ui.teal.block.header {
background-color: #E9F7F6;
}*/
.ui.blue.dividing.header {
border-bottom: 3px solid #6ECFF5;
@ -319,6 +311,7 @@ h5.ui.header {
text-align: center;
}
.ui.icon.header .icon {
float: none;
display: block;
font-size: 4em;
margin: 0em auto 0.2em;

8
src/elements/icons.less

@ -253,7 +253,6 @@ i.icon.eye.hidden:before { content: '\e70b'; } /* '' */
i.icon.date:before { content: '📅'; } /* '\1f4c5' */
/*******************************
States
*******************************/
@ -439,4 +438,11 @@ i.massive.icon {
vertical-align: middle;
}
/*--------------
Sketchy Sizing
---------------*/
i.sketchy.circular.icon,
i.sketchy.square.icon {
padding: 0.35em !important;
}

2
src/modules/dropdown.less

@ -51,6 +51,8 @@
min-width: 100%;
white-space: nowrap;
text-shadow: none;
-webkit-box-shadow:
0px 0px 1px 1px rgba(0, 0, 0, 0.1),
0px -2px 0px 0px rgba(0, 0, 0, 0.1) inset

2
src/modules/tab.js

@ -47,9 +47,11 @@
if(settings.history) {
if( $.address === undefined ) {
module.error(errors.state);
return false;
}
else if(settings.path === false) {
module.error(errors.path);
return false;
}
else {
module.verbose('Address library found adding state change event');

Loading…
Cancel
Save