]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Moved Event CSS into the plugin directory
authorMikael Nordfeldth <mmn@hethane.se>
Tue, 3 Jun 2014 09:33:46 +0000 (11:33 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Tue, 3 Jun 2014 09:34:39 +0000 (11:34 +0200)
plugins/Event/EventPlugin.php
plugins/Event/css/event.css [new file with mode: 0644]
plugins/Event/event.css [deleted file]
theme/neo/css/display.css

index 965eef7744f006df74fe6e75411523496ebdc4e6..c1c8ec77c3365da82e24c1aac72f58e82708dfce 100644 (file)
@@ -316,7 +316,7 @@ class EventPlugin extends MicroappPlugin
 
     function onEndShowStyles($action)
     {
-        $action->cssLink($this->path('event.css'));
+        $action->cssLink($this->path('css/event.css'));
         return true;
     }
 
diff --git a/plugins/Event/css/event.css b/plugins/Event/css/event.css
new file mode 100644 (file)
index 0000000..6c69cf1
--- /dev/null
@@ -0,0 +1,131 @@
+/* Event specific styles */
+
+.event-tags li { display: inline; }
+.event-mentions li { display: inline; }
+.event-avatar { float: left; }
+.event-notice-count { float: right; }
+.event-info { float: left; }
+.event-title { margin-left: 0px; }
+#content .event .entry-title { margin-left: 0px; }
+#content .event .entry-content { margin-left: 0px; }
+.ui-autocomplete {
+    max-height: 100px;
+    overflow-y: auto;
+    /* prevent horizontal scrollbar */
+    overflow-x: hidden;
+    /* add padding to account for vertical scrollbar */
+    padding-right: 20px;
+}
+
+.attending-list { list-style-type: none; float: left; width: 100%; }
+
+#form_event_rsvp { clear: left; }
+
+li.rsvp-list { float: left; clear: left; }
+
+li.rsvp-list ul.entities {
+    display:inline;
+}
+li.rsvp-list .entities li {
+    list-style-type: none;
+    margin-right: 3px;
+    margin-bottom: 8px;
+    display: inline;
+}
+li.rsvp-list .entities li .photo {
+    margin: 0 !important;
+    float: none !important;
+}
+li.rsvp-list .entities li .fn {
+    display: none;
+}
+
+.notice .vevent div {
+    margin-bottom: 8px;
+}
+
+.event-info {
+    margin-left: 0px !important;
+    margin-top: 2px !important;
+}
+
+.notice .event-info + .notice-options {
+    margin-top: 14px;
+}
+
+.notice .threaded-replies .event-info + .notice-options {
+    margin-top: 20px;
+}
+
+#form_event_rsvp #new_rsvp_data {
+    display: inline;
+    margin: 10px 0px;
+}
+
+#form_event_rsvp input.submit {
+    height: auto;
+    padding: 0px 10px;
+    margin-left: 10px;
+    color:#fff;
+    font-weight: bold;
+    text-transform: uppercase;
+    font-size: 1.1em;
+    text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.2);
+    border: 1px solid #d7621c;
+    border-radius: 4px;
+    -moz-border-radius: 4px;
+    -webkit-border-radius: 4px;
+    background: #FB6104;
+    background: -moz-linear-gradient(top, #ff9d63 0%, #fb6104 100%);
+    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ff9d63), color-stop(100%,#fb6104));
+    background: -webkit-linear-gradient(top, #ff9d63 0%,#fb6104 100%);
+    background: -o-linear-gradient(top, #ff9d63 0%,#fb6104 100%);
+    background: -ms-linear-gradient(top, #ff9d63 0%,#fb6104 100%);
+    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ff9d63', endColorstr='#fb6104',GradientType=0 );
+    background: linear-gradient(top, #ff9d63 0%,#fb6104 100%);
+}
+
+#form_event_rsvp input.submit:hover {
+    text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.6);
+    background: #ff9d63;
+    background: -moz-linear-gradient(top, #fb6104 0%, #fc8035 100%);
+    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fb6104), color-stop(100%,#fc8035));
+    background: -webkit-linear-gradient(top, #fb6104 0%,#fc8035 100%);
+    background: -o-linear-gradient(top, #fb6104 0%,#fc8035 100%);
+    background: -ms-linear-gradient(top, #fb6104 0%,#fc8035 100%);
+    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fb6104', endColorstr='#fc8035',GradientType=0 );
+    background: linear-gradient(top, #fb6104 0%,#fc8035 100%);
+}
+
+#wrap .vevent form.processing input.submit {
+    text-indent: 0;
+    background: #ff9d63;
+}
+
+#input_form_event .form_settings .form_data {
+    float: left;
+}
+
+#input_form_event .form_settings .form_data li {
+    float: left;
+    width: auto;
+}
+
+#input_form_event .form_settings .form_data label {
+    width: auto;
+}
+
+label[for=event-starttime], label[for=event-endtime] {
+    display: none !important;
+}
+
+#event-starttime, #event-endtime {
+    margin-top:  -1px;
+    margin-bottom:  -1px;
+    height: 2em;
+}
+
+#event-startdate, #event-enddate {
+    margin-right: 20px;
+    width: 120px;
+}
diff --git a/plugins/Event/event.css b/plugins/Event/event.css
deleted file mode 100644 (file)
index e5af5cf..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-.event-tags li { display: inline; }
-.event-mentions li { display: inline; }
-.event-avatar { float: left; }
-.event-notice-count { float: right; }
-.event-info { float: left; }
-.event-title { margin-left: 0px; }
-#content .event .entry-title { margin-left: 0px; }
-#content .event .entry-content { margin-left: 0px; }
-.ui-autocomplete {
-    max-height: 100px;
-    overflow-y: auto;
-    /* prevent horizontal scrollbar */
-    overflow-x: hidden;
-    /* add padding to account for vertical scrollbar */
-    padding-right: 20px;
-}
-
-.attending-list { list-style-type: none; float: left; width: 100%; }
-
-#form_event_rsvp { clear: left; }
-
-li.rsvp-list { float: left; clear: left; }
-
-li.rsvp-list ul.entities {
-    display:inline;
-}
-li.rsvp-list .entities li {
-    list-style-type: none;
-    margin-right: 3px;
-    margin-bottom: 8px;
-    display: inline;
-}
-li.rsvp-list .entities li .photo {
-    margin: 0 !important;
-    float: none !important;
-}
-li.rsvp-list .entities li .fn {
-    display: none;
-}
index 66ba099dd480dda2d1fe09fef0929486105ef2b3..dc1e401ac7687de3c0495eb7e391cda761e7ee1b 100644 (file)
@@ -1103,99 +1103,6 @@ td.entity_profile {
     -webkit-box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.2);
 }
 
-/* Event specific styles */
-/* TODO separate base styles and move to plugin */
-
-.notice .vevent div {
-    margin-bottom: 8px;
-}
-
-.event-info {
-    margin-left: 0px !important;
-    margin-top: 2px !important;
-}
-
-.notice .event-info + .notice-options {
-    margin-top: 14px;
-}
-
-.notice .threaded-replies .event-info + .notice-options {
-    margin-top: 20px;
-}
-
-#form_event_rsvp #new_rsvp_data {
-    display: inline;
-    margin: 10px 0px;
-}
-
-#form_event_rsvp input.submit {
-    height: auto;
-    padding: 0px 10px;
-    margin-left: 10px;
-    color:#fff;
-    font-weight: bold;
-    text-transform: uppercase;
-    font-size: 1.1em;
-    text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.2);
-    border: 1px solid #d7621c;
-    border-radius: 4px;
-    -moz-border-radius: 4px;
-    -webkit-border-radius: 4px;
-    background: #FB6104;
-    background: -moz-linear-gradient(top, #ff9d63 0%, #fb6104 100%);
-    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ff9d63), color-stop(100%,#fb6104));
-    background: -webkit-linear-gradient(top, #ff9d63 0%,#fb6104 100%);
-    background: -o-linear-gradient(top, #ff9d63 0%,#fb6104 100%);
-    background: -ms-linear-gradient(top, #ff9d63 0%,#fb6104 100%);
-    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ff9d63', endColorstr='#fb6104',GradientType=0 );
-    background: linear-gradient(top, #ff9d63 0%,#fb6104 100%);
-}
-
-#form_event_rsvp input.submit:hover {
-    text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.6);
-    background: #ff9d63;
-    background: -moz-linear-gradient(top, #fb6104 0%, #fc8035 100%);
-    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fb6104), color-stop(100%,#fc8035));
-    background: -webkit-linear-gradient(top, #fb6104 0%,#fc8035 100%);
-    background: -o-linear-gradient(top, #fb6104 0%,#fc8035 100%);
-    background: -ms-linear-gradient(top, #fb6104 0%,#fc8035 100%);
-    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fb6104', endColorstr='#fc8035',GradientType=0 );
-    background: linear-gradient(top, #fb6104 0%,#fc8035 100%);
-}
-
-#wrap .vevent form.processing input.submit {
-    text-indent: 0;
-    background: #ff9d63;
-}
-
-#input_form_event .form_settings .form_data {
-    float: left;
-}
-
-#input_form_event .form_settings .form_data li {
-    float: left;
-    width: auto;
-}
-
-#input_form_event .form_settings .form_data label {
-    width: auto;
-}
-
-label[for=event-starttime], label[for=event-endtime] {
-    display: none !important;
-}
-
-#event-starttime, #event-endtime {
-    margin-top:  -1px;
-    margin-bottom:  -1px;
-    height: 2em;
-}
-
-#event-startdate, #event-enddate {
-    margin-right: 20px;
-    width: 120px;
-}
-
 /* QnA */
 
 .question div.question-description {