SamanthaNguyen has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/401428 )

Change subject: Move SportsTeams' user profile module styles here from 
SocialProfile
......................................................................

Move SportsTeams' user profile module styles here from SocialProfile

These were originally in SocialProfile - this moves them here to keep
things more contained.

This is some extremely old technical debt which originated way back when
SocialProfile and SportsTeams were created.

Change-Id: I07ff91f3f074485993dabcc4c8e67f343f71b1ba
---
M extension.json
M includes/SportsTeamsUserProfile.class.php
A resources/css/ext.sportsTeams.userprofile.module.favoriteteams.css
A resources/css/ext.sportsTeams.userprofile.module.latestthoughts.css
4 files changed, 67 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SportsTeams 
refs/changes/28/401428/1

diff --git a/extension.json b/extension.json
index adab339..8e649eb 100644
--- a/extension.json
+++ b/extension.json
@@ -98,6 +98,14 @@
                                "resources/js/UpdateFavoriteTeams.js"
                        ],
                        "position": "bottom"
+               },
+               "ext.sportsTeams.userprofile.module.favoriteteams.css": {
+                       "styles": 
"resources/css/ext.sportsTeams.userprofile.module.favoriteteams.css",
+                       "position": "top"
+               },
+               "ext.sportsTeams.userprofile.module.latestthoughts.css": {
+                       "styles": 
"resources/css/ext.sportsTeams.userprofile.module.latestthoughts.css",
+                       "position": "top"
                }
        },
        "ResourceFileModulePaths": {
diff --git a/includes/SportsTeamsUserProfile.class.php 
b/includes/SportsTeamsUserProfile.class.php
index 373dbc4..3467cef 100644
--- a/includes/SportsTeamsUserProfile.class.php
+++ b/includes/SportsTeamsUserProfile.class.php
@@ -14,7 +14,8 @@
                $output = '';
                $user_id = $user_profile->user_id;
 
-               // Add JS
+               // Add CSS and JS
+               $wgOut->addModuleStyles( 
'ext.sportsTeams.userprofile.module.favoriteteams.css' );
                $wgOut->addModules( 'ext.sportsTeams.userProfile' );
 
                $add_networks_title = SpecialPage::getTitleFor( 
'UpdateFavoriteTeams' );
@@ -133,6 +134,10 @@
                $thought_link = SpecialPage::getTitleFor( 'ViewThought' );
 
                $output = '';
+
+               // add CSS
+               $wgOut->addModuleStyles( 
'ext.sportsTeams.userprofile.module.latestthought.css' );
+
                if ( $user_update ) {
                        $output .= '<div class="user-section-heading">
                                <div class="user-section-title">' .
diff --git a/resources/css/ext.sportsTeams.userprofile.module.favoriteteams.css 
b/resources/css/ext.sportsTeams.userprofile.module.favoriteteams.css
new file mode 100644
index 0000000..f7ffcd0
--- /dev/null
+++ b/resources/css/ext.sportsTeams.userprofile.module.favoriteteams.css
@@ -0,0 +1,30 @@
+.network-container {
+       padding: 0 0 22px 0;
+}
+
+.network {
+       margin: 0 0 3px 0;
+}
+
+.network img {
+       margin: 0 5px 0 0;
+       vertical-align: middle;
+}
+
+.network a {
+       text-decoration: none;
+}
+
+.status-message-add a {
+       color: #999;
+       font-size: 10px;
+}
+
+.status-update-box {
+       margin: 10px 0;
+}
+
+#status-text input {
+       font-size: 10px;
+       width: 200px;
+}
\ No newline at end of file
diff --git 
a/resources/css/ext.sportsTeams.userprofile.module.latestthoughts.css 
b/resources/css/ext.sportsTeams.userprofile.module.latestthoughts.css
new file mode 100644
index 0000000..ed8b0d0
--- /dev/null
+++ b/resources/css/ext.sportsTeams.userprofile.module.latestthoughts.css
@@ -0,0 +1,23 @@
+.status-container {
+       padding: 0 0 20px 0;
+}
+
+.status-message img {
+       vertical-align: middle;
+       margin: 0 5px 0 0;
+}
+
+.user-status-date {
+       color: #999;
+       font-size: 9px;
+       margin: 0 6px 0 0;
+}
+
+.user-status-profile-vote {
+       color: #666;
+}
+
+.user-status-profile-vote a {
+       font-size: 9px;
+       text-decoration: none;
+}

-- 
To view, visit https://gerrit.wikimedia.org/r/401428
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I07ff91f3f074485993dabcc4c8e67f343f71b1ba
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SportsTeams
Gerrit-Branch: master
Gerrit-Owner: SamanthaNguyen <samanthanguyen1...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to