summaryrefslogtreecommitdiffstats
path: root/utils/test/reporting/pages/app/styles/jquery-labelauty.css
diff options
context:
space:
mode:
authorchenjiankun <chenjiankun1@huawei.com>2016-12-24 23:08:46 +0000
committerchenjiankun <chenjiankun1@huawei.com>2016-12-30 15:38:08 +0000
commit64605f1cc7117854abb203375deee396e0d65cc1 (patch)
tree42f863658d915c45b18996be37271813385d3f33 /utils/test/reporting/pages/app/styles/jquery-labelauty.css
parent53ed9e36a13d03455fc04b3f54ed290037359f6b (diff)
Create Test Reporting landing page
JIRA: RELENG-165 In this patch, I do the follow things: 1.deploy tornado server(currently I haven't write any backend code, since the backend code depend on the testapi and I need to communicate with Serena). 2.landing page code(almostly finished. But I haven't the data, so for now, the data this page shows is a mock json. When the testapi and my backend code ready, this page will finally finished) 3.deployment: supervisor + nginx + tornado + angular usage: docker run -itd -p 8000:8000 opnfv/reporting:<tag> visit landing page: http://server_ip:8000/reporting/index.html test api: http://server_ip:8000/landing-page/filters visit old reporting page: http://server_ip:8000/display/master/yardstick/status-apex.html Change-Id: I527ab2661ce9e84b2942ebe673afbf5f2bc7878f Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
Diffstat (limited to 'utils/test/reporting/pages/app/styles/jquery-labelauty.css')
-rw-r--r--utils/test/reporting/pages/app/styles/jquery-labelauty.css143
1 files changed, 143 insertions, 0 deletions
diff --git a/utils/test/reporting/pages/app/styles/jquery-labelauty.css b/utils/test/reporting/pages/app/styles/jquery-labelauty.css
new file mode 100644
index 000000000..efb9e895a
--- /dev/null
+++ b/utils/test/reporting/pages/app/styles/jquery-labelauty.css
@@ -0,0 +1,143 @@
+/*!
+ * LABELAUTY jQuery Plugin Styles
+ *
+ * @file: jquery-labelauty.css
+ * @author: Francisco Neves (@fntneves)
+ * @site: www.francisconeves.com
+ * @license: MIT License
+ */
+
+/* Prevent text and blocks selection */
+input.labelauty + label ::selection { background-color: rgba(255, 255, 255, 0); }
+input.labelauty + label ::-moz-selection { background-color: rgba(255, 255, 255, 0); }
+
+/* Hide original checkboxes. They are ugly! */
+input.labelauty { display: none !important; }
+
+/*
+ * Let's style the input
+ * Feel free to work with it as you wish!
+ */
+input.labelauty + label
+{
+ display: table;
+ font-size: 11px;
+ padding: 10px;
+ background-color: #efefef;
+ color: #b3b3b3;
+ cursor: pointer;
+
+ border-radius: 3px 3px 3px 3px;
+ -moz-border-radius: 3px 3px 3px 3px;
+ -webkit-border-radius: 3px 3px 3px 3px;
+
+
+ transition: background-color 0.25s;
+ -moz-transition: background-color 0.25s;
+ -webkit-transition: background-color 0.25s;
+ -o-transition: background-color 0.25s;
+
+ -moz-user-select: none;
+ -khtml-user-select: none;
+ -webkit-user-select: none;
+ -o-user-select: none;
+}
+
+/* Stylish text inside label */
+
+input.labelauty + label > span.labelauty-unchecked,
+input.labelauty + label > span.labelauty-checked
+{
+ display: inline-block;
+ line-height: 16px;
+ vertical-align: bottom;
+}
+
+/* Stylish icons inside label */
+
+input.labelauty + label > span.labelauty-unchecked-image,
+input.labelauty + label > span.labelauty-checked-image
+{
+ display: inline-block;
+ width: 16px;
+ height: 16px;
+ vertical-align: bottom;
+ background-repeat: no-repeat;
+ background-position: left center;
+
+ transition: background-image 0.5s linear;
+ -moz-transition: background-image 0.5s linear;
+ -webkit-transition: background-image 0.5s linear;
+ -o-transition: background-image 0.5s linear;
+}
+
+/* When there's a label, add a little margin to the left */
+input.labelauty + label > span.labelauty-unchecked-image + span.labelauty-unchecked,
+input.labelauty + label > span.labelauty-checked-image + span.labelauty-checked
+{
+ margin-left: 7px;
+}
+
+/* When not Checked */
+input.labelauty:not(:checked):not([disabled]) + label:hover
+{
+ background-color: #eaeaea;
+ color: #a7a7a7;
+}
+input.labelauty:not(:checked) + label > span.labelauty-checked-image
+{
+ display: none;
+}
+
+input.labelauty:not(:checked) + label > span.labelauty-checked
+{
+ display: none;
+}
+
+/* When Checked */
+input.labelauty:checked + label
+{
+ background-color: #3498db;
+ color: #ffffff;
+}
+
+input.labelauty:checked:not([disabled]) + label:hover
+{
+ background-color: #72c5fd;
+}
+input.labelauty:checked + label > span.labelauty-unchecked-image
+{
+ display: none;
+}
+
+input.labelauty:checked + label > span.labelauty-unchecked
+{
+ display: none;
+}
+
+input.labelauty:checked + label > span.labelauty-checked
+{
+ display: inline-block;
+}
+
+input.labelauty.no-label:checked + label > span.labelauty-checked
+{
+ display: block;
+}
+
+/* When Disabled */
+input.labelauty[disabled] + label
+{
+ opacity: 0.5;
+}
+
+/* Add a background to (un)checked images */
+input.labelauty + label > span.labelauty-unchecked-image
+{
+ background-image: url( ../images/input-unchecked.png );
+}
+
+input.labelauty + label > span.labelauty-checked-image
+{
+ background-image: url( ../images/input-checked.png );
+} \ No newline at end of file