]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Style changes for privacy selectors and markers.
authorSamantha Doherty <sammy@status.net>
Tue, 5 Apr 2011 16:38:15 +0000 (12:38 -0400)
committerSamantha Doherty <sammy@status.net>
Tue, 5 Apr 2011 16:38:15 +0000 (12:38 -0400)
lib/toselector.php
theme/neo/README
theme/neo/css/display.css
theme/neo/images/lock.png [new file with mode: 0644]
theme/neo/images/lock_open.png [new file with mode: 0644]

index 7234a603d8e398d4c0253558ae44cc6a7511d601..bcbfe86ec96ca55c903cd4df874f7f6ff3f0b108 100644 (file)
@@ -118,10 +118,12 @@ class ToSelector extends Widget
                              false,
                              $default);
 
+        $this->out->elementStart('span', 'checkbox-wrapper');
         $this->out->checkbox('notice_private',
                              // TRANS: Checkbox label in widget for selecting potential addressees to mark the notice private.
-                             _('Private'),
+                             _('Private?'),
                              $this->private);
+        $this->out->elementEnd('span');
     }
 
     static function fillOptions($action, &$options)
index 39d9e0f0607c41840bb66a3cc6410fac5a9ef0ed..42e1b4763cbdf8ebf7d625210949fef67b0af273 100644 (file)
@@ -1,2 +1,6 @@
 Default avatars are modified from an image by Francesco 'Architetto' Rollandin.
 http://www.openclipart.org/detail/34957
+
+Icons by Mark James
+http://www.famfamfam.com/lab/icons/silk/
+http://creativecommons.org/licenses/by/2.5/ Creative Commons Attribution 2.5 License
index 5659ca3ae1f355f76c550ccd5ee38916140cfc38..61258bfab65407bf24e2e43d96341dd340429c44 100644 (file)
@@ -286,7 +286,7 @@ address {
     padding-bottom: 15px;
 }
 
-#input_form_status {
+#input_form_status, #input_form_direct {
     padding-bottom: 45px;
 }
 
@@ -333,6 +333,10 @@ address {
     font-size: 1.2em;
 }
 
+#form_notice-direct.form_notice textarea {
+    width: 498px;
+}
+
 .form_notice label.notice_data-attach {
     top: 0px;
     right: 0px;
@@ -355,6 +359,11 @@ address {
     z-index: 99;
 }
 
+#form_notice-direct.form_notice .count {
+    top: 80px;
+    right: 10px;
+}
+
 .form_notice #notice_action-submit {
     position: absolute;
     top: 100%;
@@ -397,6 +406,52 @@ address {
     margin-bottom: 10px !important;
 }
 
+.to-selector { 
+    padding-top: 15px;
+    z-index: 99;
+}
+
+.form_settings label[for=notice_to] {
+    margin-left: 100px;
+    margin-right: 5px;
+}
+
+.checkbox-wrapper {
+    padding: 2px;
+    clear: left;
+    display: block;
+    margin-left: 26%;
+}
+
+.form_notice .checkbox-wrapper {
+    display: inline;
+    margin-left: 10px;
+}
+
+.form_settings .checkbox-wrapper label.checkbox {
+    margin-left: 0px;
+    margin-top: 6px;
+    line-height: 1.2em;
+    left: -3px;
+}
+
+.checkbox-wrapper #notice_private {
+    display:none;
+}
+
+.checkbox-wrapper.unchecked label.checkbox {
+    padding-left: 20px;
+    background: url(../images/lock_open.png) no-repeat 0px 0px;
+    opacity: 0.6;
+}
+
+.checkbox-wrapper.checked label.checkbox {
+    padding-left: 20px;
+    background: url(../images/lock.png) no-repeat 0px 0px;
+    color: red;
+    opacity: 1;
+}
+
 #aside_primary {
     width: 218px;
     float: left;
@@ -1246,6 +1301,20 @@ table.profile_list tr.alt {
     filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#FB6104', endColorstr='#fc8035',GradientType=0 );
 }
 
+/* Limited-scope specific styles */
+
+.limited-scope .entry-content .timestamp {
+    padding-left: 20px;
+    position: relative;
+}
+
+.limited-scope .entry-content .timestamp:before {
+    content: url(../images/lock.png);
+    position: absolute;
+    top: -2px;
+    left: 0px;
+}
+
 /* QnA specific styles */
 
 #content .question .entry-title, #content .qna-full-question .entry-title {
diff --git a/theme/neo/images/lock.png b/theme/neo/images/lock.png
new file mode 100644 (file)
index 0000000..2ebc4f6
Binary files /dev/null and b/theme/neo/images/lock.png differ
diff --git a/theme/neo/images/lock_open.png b/theme/neo/images/lock_open.png
new file mode 100644 (file)
index 0000000..a471765
Binary files /dev/null and b/theme/neo/images/lock_open.png differ