Pwirth has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/358961 )
Change subject: BSSkin: Fixed user images loosing aspect ratio when down scaling
......................................................................
BSSkin: Fixed user images loosing aspect ratio when down scaling
* Used css object-fit: cover;
* Moved all userMiniProfile ralated lines to their own file
Change-Id: Ie8266714164aee08c2a299f11a1bbd7c9bee2c4d
---
M resources/components.skin.less
M resources/components/skin.menuTop.less
A resources/components/skin.userMiniProfile.less
3 files changed, 20 insertions(+), 15 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/skins/BlueSpiceSkin
refs/changes/61/358961/1
diff --git a/resources/components.skin.less b/resources/components.skin.less
index c1b8455..60775d9 100644
--- a/resources/components.skin.less
+++ b/resources/components.skin.less
@@ -9,4 +9,5 @@
@import 'components/skin.dataAfterContent.less';
@import 'components/skin.contentActions.less';
@import 'components/skin.content.less';
-@import 'components/skin.content.tables.less';
\ No newline at end of file
+@import 'components/skin.content.tables.less';
+@import 'components/skin.userMiniProfile.less';
\ No newline at end of file
diff --git a/resources/components/skin.menuTop.less
b/resources/components/skin.menuTop.less
index e6fb63e..2065fed 100644
--- a/resources/components/skin.menuTop.less
+++ b/resources/components/skin.menuTop.less
@@ -114,12 +114,6 @@
cursor: pointer;
}
-#bs-button-user div.bs-userminiprofile,
-#bs-button-user div.bs-userminiprofile > a.bs-block {
- display: inline-block;
-}
-
-
#p-personal-label {
display: none;
}
@@ -127,18 +121,10 @@
float: right;
}
#bs-button-user{
- div.bs-userminiprofile, #bs-personal-menu-container, #bs-personal-name{
- float: right;
- }
#bs-personal-name{
height: 24px;
background-color: @bs-color-dark-grey;
padding: 9px 10px 4px 10px;
- }
- div.bs-userminiprofile{
- padding: 0px 5px 5px 5px;
- background-color: #bababa;
- height: 32px;
}
ul#bs-personal-info{
margin-top: 0px;
diff --git a/resources/components/skin.userMiniProfile.less
b/resources/components/skin.userMiniProfile.less
new file mode 100644
index 0000000..a5ddada
--- /dev/null
+++ b/resources/components/skin.userMiniProfile.less
@@ -0,0 +1,18 @@
+
+div.bs-userminiprofile img {
+ object-fit: cover;
+}
+div.bs-userminiprofile,
+div.bs-userminiprofile > a.bs-block {
+ display: inline-block;
+}
+#bs-button-user{
+ div.bs-userminiprofile, #bs-personal-menu-container, #bs-personal-name{
+ float: right;
+ }
+ div.bs-userminiprofile{
+ padding: 0px 5px 5px 5px;
+ background-color: #bababa;
+ height: 32px;
+ }
+}
\ No newline at end of file
--
To view, visit https://gerrit.wikimedia.org/r/358961
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie8266714164aee08c2a299f11a1bbd7c9bee2c4d
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/skins/BlueSpiceSkin
Gerrit-Branch: master
Gerrit-Owner: Pwirth <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits