diff --git a/customize.dist/main.css b/customize.dist/main.css index ad345e13d..3778b5d8c 100644 --- a/customize.dist/main.css +++ b/customize.dist/main.css @@ -302,24 +302,27 @@ form.realtime table tr td.checkbox-cell div.checkbox-contain { height: 100%; width: 100%; } -form.realtime table tr td.checkbox-cell div.checkbox-contain input[type="checkbox"] { +form.realtime table tr td.checkbox-cell div.checkbox-contain input[type="checkbox"]:not(.mine) { display: none; } -form.realtime table tr td.checkbox-cell div.checkbox-contain input[type="checkbox"] ~ label { +form.realtime table tr td.checkbox-cell div.checkbox-contain input[type="checkbox"]:not(.mine) ~ .cover { font-weight: bold; background-color: #FF0073; color: #302B28; display: block; } -form.realtime table tr td.checkbox-cell div.checkbox-contain input[type="checkbox"] ~ label:after { +form.realtime table tr td.checkbox-cell div.checkbox-contain input[type="checkbox"]:not(.mine) ~ .cover:after { content: "✖"; } -form.realtime table tr td.checkbox-cell div.checkbox-contain input[type="checkbox"] ~ label.yes { +form.realtime table tr td.checkbox-cell div.checkbox-contain input[type="checkbox"]:not(.mine) ~ .cover.yes { background-color: #46E981; } -form.realtime table tr td.checkbox-cell div.checkbox-contain input[type="checkbox"] ~ label.yes:after { +form.realtime table tr td.checkbox-cell div.checkbox-contain input[type="checkbox"]:not(.mine) ~ .cover.yes:after { content: "✔"; } +form.realtime table tr td.checkbox-cell div.checkbox-contain input[type="checkbox"]:not(.mine) ~ .cover.mine { + display: none; +} form.realtime table input[type="text"] { height: 100%; width: 90%; @@ -333,7 +336,6 @@ form.realtime table tfoot tr td { z-index: 4000; cursor: pointer; } -form.realtime #adduser, form.realtime #addoption { color: #46E981; border: 1px solid #46E981; @@ -341,6 +343,7 @@ form.realtime #addoption { } form.realtime #adduser { border-top-left-radius: 5px; + padding: 15px; } form.realtime #addoption { border-bottom-left-radius: 5px; diff --git a/customize.dist/src/cryptpad.less b/customize.dist/src/cryptpad.less index e0f257093..1cac19dfb 100644 --- a/customize.dist/src/cryptpad.less +++ b/customize.dist/src/cryptpad.less @@ -373,19 +373,29 @@ form.realtime { input { &[type="checkbox"] { - display: none; - ~ label { - display: block; - font-weight: bold; - - background-color: @cp-red; - color: @base; - &:after { content: "✖"; } - - display: block; - &.yes { - background-color: @cp-green; - &:after { content: "✔"; } + &.mine { + // idk + } + + &:not(.mine) { + display: none; + + ~ .cover { + display: block; + font-weight: bold; + + background-color: @cp-red; + color: @base; + &:after { content: "✖"; } + + display: block; + &.yes { + background-color: @cp-green; + &:after { content: "✔"; } + } + &.mine { + display: none; + } } } } @@ -431,14 +441,18 @@ form.realtime { } } - #adduser, + //#adduser, #addoption { color: @cp-green; border: 1px solid @cp-green; padding: 15px; } - #adduser { .top-left; } + #adduser { + .top-left; + //border: 1px solid grey; + padding: 15px; + } #addoption { .bottom-left; } } diff --git a/www/poll/index.html b/www/poll/index.html index 49d487487..23d74cd9c 100644 --- a/www/poll/index.html +++ b/www/poll/index.html @@ -62,7 +62,7 @@ -
+ Users
+
diff --git a/www/poll/main.js b/www/poll/main.js index b39de2f1d..4aa455f78 100644 --- a/www/poll/main.js +++ b/www/poll/main.js @@ -70,12 +70,6 @@ define([ }; }; - var find = function (map, path) { - return (map && path.reduce(function (p, n) { - return typeof p[n] !== 'undefined' && p[n]; - }, map)) || undefined; - }; - var Input = function (opt) { return $('', opt); }; var Checkbox = function (id) { var p = parseXY(id); @@ -86,8 +80,9 @@ define([ 'class': 'checkbox-contain', }); - var $label = $('