From 90bc31ee3464a79024776ad451c0f877c437c770 Mon Sep 17 00:00:00 2001 From: Christoph Zierz - zzmedia Date: Thu, 24 Jul 2014 17:37:35 +0200 Subject: [PATCH 1/2] Add new round styles for avatars - added new round styles for avatars - cleaned up some old css rules and padding issues --- app/assets/images/default-avatar.png | Bin 0 -> 10637 bytes .../stylesheets/content/_user_avatars.md | 17 +++++++++++++++++ .../stylesheets/content/_user_avatars.sass | 8 ++++++++ app/assets/stylesheets/default.css.sass | 1 + app/assets/stylesheets/default/main.css.erb | 4 ++-- app/assets/stylesheets/default_simple.css.sass | 1 + app/assets/stylesheets/layout/_split_view.sass | 6 +++--- 7 files changed, 32 insertions(+), 5 deletions(-) create mode 100644 app/assets/images/default-avatar.png create mode 100644 app/assets/stylesheets/content/_user_avatars.md create mode 100644 app/assets/stylesheets/content/_user_avatars.sass diff --git a/app/assets/images/default-avatar.png b/app/assets/images/default-avatar.png new file mode 100644 index 0000000000000000000000000000000000000000..993f02cc2b20763b4e512d80f1662eace09ae294 GIT binary patch literal 10637 zcmbVybyOVPwrAt+9)br6?%KE{KyY_$Gz|?jG%g)1kN_bBg1ZEF8kYoz03mn-jRkiN z1TuX0zWZkWcxz^@sZ~`+YRm8Jvv;j?cGX*5?H5G&Pw)W%0FnAj75&E&@y~^e{dm_E z;TU`@=%A{mPyU0Iy*X5CFh%aWyoBnrgk0cJKuA z+xrC zwGABt-5sPHS>@%Jf&S8u0>B`s9kW09wTF+izbxy&5qGICWLcGkvfJfL>|d>%e* z|B;{q@^SEXg+N_BJ(&NIXlL)~3zcPkMEdU`fFW91|1H?V=f4c~XfgqRJBWY~zn}mZ z{Li@lMePIC2mNmt|0A`JVE_aqpbzr#^!0XloDV0q|1dw=?*FdnAHqj8(mLL*kCS5e zTE)}B7Yy=%s;kJdK0e`hbaj*#6q04w|M37_7f-0CkBcXSS=m6GnM=#g!PVoRj_3bO(7(s40`hkC z139XBdxDw&WnpR8{{exZ=>Kcv|K@f4|FN3DBN%~y+~fanm;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s4O2TgR7nnym2(hFD@P1jRUuf z_V|i=XcOGOuinJK3^VU9L%9)zJHpfP#VFwb$g&wZ3D8x|Vo6*pY3d z9p?`H@-I<|F&Pilzss=$yo`COMuS}pEyt|7=YTI~+f5Y=*En>{xa!`>R!8q7o3NSkQi0P56 zID8}do@FX8mcAySOMpKL!~(*|sV2H(H@DXmtZ6GL~DtPg3=IF|Ik`O3{B^u#A{ zHxGSGP_}%I&V^X}O?N1ppS`)k{bzE!Vo^$D^{?p+j-Rl+d13Om?7p{0wZ*u;rT9jF z5Llp)pK(Y%Zb(`sd`a7B90zA{_Pyv3(7xmyvoNP(1%m%FRqy1YE}X$tV(R#pxP+xK zJUB%h)%v`@3TJWUOaH8)W4fut{1$R&-ZxV%5^C;0NHr> zvERe7!rak!hi2V-s1z2()809Y&**StFpdzM04GTrJ5Ah^hFfQg4Gkg{i|}3j%BNL= zoFpV(@v#w)P@GsMcKz;IGkKvh)cWkxyFGM^#!5`<`U)(6vPm!A95lhul@Rr<`mRyGHMMs7MthLnyjBO2lbo+bdn+{`uv;S2MNj%D;oCrv4@r6rECb~|GBS9rL z>YZVYY6ALCd46XdD>P&`JkCQ7dQnpg3i%=pcODRW5*t6{2-~Ws;yG3WDEaanEe|; literal 0 HcmV?d00001 diff --git a/app/assets/stylesheets/content/_user_avatars.md b/app/assets/stylesheets/content/_user_avatars.md new file mode 100644 index 0000000000..2c2d53deb6 --- /dev/null +++ b/app/assets/stylesheets/content/_user_avatars.md @@ -0,0 +1,17 @@ +# User Avatars + +``` + +Default:
+ +

+Default Mini:
+ +

+Gravatar:
+ +

+Gravatar Mini:
+ + +``` diff --git a/app/assets/stylesheets/content/_user_avatars.sass b/app/assets/stylesheets/content/_user_avatars.sass new file mode 100644 index 0000000000..52780577fd --- /dev/null +++ b/app/assets/stylesheets/content/_user_avatars.sass @@ -0,0 +1,8 @@ +.avatar, .gravatar + border-radius: 50px + width: 36px + +.avatar-mini + border-radius: 50px + width: 20px + \ No newline at end of file diff --git a/app/assets/stylesheets/default.css.sass b/app/assets/stylesheets/default.css.sass index 33142634d4..85b3eb86e5 100644 --- a/app/assets/stylesheets/default.css.sass +++ b/app/assets/stylesheets/default.css.sass @@ -67,6 +67,7 @@ @import content/tabular @import content/headings @import content/timelines +@import content/user_avatars @import content/preview @import content/modal @import content/grid_table diff --git a/app/assets/stylesheets/default/main.css.erb b/app/assets/stylesheets/default/main.css.erb index 31fc6f87f5..3be1844e13 100644 --- a/app/assets/stylesheets/default/main.css.erb +++ b/app/assets/stylesheets/default/main.css.erb @@ -159,11 +159,11 @@ table.attributes td { vertical-align: top; } td.center, th.center {text-align: center;} #watchers ul {margin: 0; padding: 0;} -#watchers li {list-style-type: none;margin: 0px 2px 0px 0px; padding: 0px 0px 0px 0px;float: left;} +#watchers li {list-style-type: none;margin: 0px 10px 0px 0px; padding: 0px 0px 0px 0px;float: left;} #watchers select {width: 200px; display: block;float: left;margin-right: 10px;} #watchers a.delete {opacity: 0.4;} #watchers a.delete:hover {opacity: 1;} -#watchers img.gravatar {vertical-align: middle;margin: 0 4px 2px 0;} +#watchers img.gravatar {vertical-align: middle;margin: 0 10px 0px 0;} .highlight { background-color: #FCFD8D;} .highlight.token-1 { background-color: #faa;} diff --git a/app/assets/stylesheets/default_simple.css.sass b/app/assets/stylesheets/default_simple.css.sass index a9e655f891..b637d7bfa5 100644 --- a/app/assets/stylesheets/default_simple.css.sass +++ b/app/assets/stylesheets/default_simple.css.sass @@ -67,6 +67,7 @@ @import content/tabular @import content/headings @import content/timelines +@import content/user_avatars @import content/preview @import content/modal @import content/grid_table diff --git a/app/assets/stylesheets/layout/_split_view.sass b/app/assets/stylesheets/layout/_split_view.sass index 2b003b2f0d..7495e26c3a 100644 --- a/app/assets/stylesheets/layout/_split_view.sass +++ b/app/assets/stylesheets/layout/_split_view.sass @@ -104,14 +104,14 @@ div list-style-type: none li clear: both - padding-bottom: 10px + height: 36px + margin-bottom: 10px + .user-field-user-link float: left .detail-panel-watchers-delete-watcher-icon padding: 0 8px color: $button_font_color - .avatar - padding-bottom: 10px fieldset border: 0 #detail-panel-watchers-add-watcher From 85881a2ecca60cb215b9fa43f8e5aafd61178632 Mon Sep 17 00:00:00 2001 From: Christoph Zierz - zzmedia Date: Wed, 30 Jul 2014 10:46:51 +0200 Subject: [PATCH 2/2] Add sass-variables for round-avatars - added sass-variables for round-avatars --- app/assets/stylesheets/content/_user_avatars.sass | 11 +++++------ app/assets/stylesheets/global/_variables.sass | 5 +++++ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/app/assets/stylesheets/content/_user_avatars.sass b/app/assets/stylesheets/content/_user_avatars.sass index 52780577fd..9834cecf22 100644 --- a/app/assets/stylesheets/content/_user_avatars.sass +++ b/app/assets/stylesheets/content/_user_avatars.sass @@ -1,8 +1,7 @@ .avatar, .gravatar - border-radius: 50px - width: 36px - + border-radius: $user_avatar_border_radius + width: $user_avatar_width + .avatar-mini - border-radius: 50px - width: 20px - \ No newline at end of file + border-radius: $user_avatar_mini_border_radius + width: $user_avatar_mini_width diff --git a/app/assets/stylesheets/global/_variables.sass b/app/assets/stylesheets/global/_variables.sass index 13f69563a5..140a02b74e 100644 --- a/app/assets/stylesheets/global/_variables.sass +++ b/app/assets/stylesheets/global/_variables.sass @@ -181,3 +181,8 @@ $wiki_toc_ul_font_size: 0.8em !default $journal_attribute_font_size: 11px !default $repository_entry_filename_margin_left: 24px !default + +$user_avatar_border_radius: 50px !default +$user_avatar_width: 36px !default +$user_avatar_mini_border_radius: 50px !default +$user_avatar_mini_width: 20px !default