user-profile.less 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. //
  2. // Forum Profile
  3. // --------------------------------------------------
  4. .page-user-profile .page-header {
  5. padding-top: @line-height-computed;
  6. .alert {
  7. margin-bottom: @line-height-computed;
  8. }
  9. h1 {
  10. margin-bottom: 0px;
  11. }
  12. .btn-aligned {
  13. margin-top: 0px;
  14. }
  15. }
  16. // Small displays header
  17. @media screen and (max-width: @screen-xs-max) {
  18. .page-user-profile .page-header {
  19. text-align: center;
  20. img {
  21. clear: both;
  22. margin-top: @line-height-computed;
  23. width: 100px;
  24. height: 100px;
  25. }
  26. h1 {
  27. margin-top: @line-height-computed;
  28. font-size: @font-size-base * 2;
  29. }
  30. .header-stats ul {
  31. text-align: center;
  32. li {
  33. display: inline-block;
  34. white-space: nowrap;
  35. }
  36. }
  37. }
  38. .page-user-profile .profile-side-avatar {
  39. display: none;
  40. }
  41. }
  42. // Tablet displays
  43. @media screen and (min-width: @screen-sm-min) and (max-width: @screen-sm-max) {
  44. .page-user-profile .page-header {
  45. img, h1 {
  46. float: left;
  47. }
  48. img {
  49. margin-top: @line-height-computed;
  50. margin-right: 24px;
  51. width: 80px;
  52. height: 80px;
  53. }
  54. h1 {
  55. position: relative;
  56. top: @line-height-computed * 1.25;
  57. }
  58. .header-stats {
  59. margin-left: 80px + 32px;
  60. margin-top: @line-height-computed * 1.25;
  61. margin-bottom: @line-height-computed * -2.25;
  62. position: relative;
  63. bottom: @line-height-computed * 2.5;
  64. }
  65. }
  66. }
  67. // Dekstops header
  68. @media screen and (min-width: @screen-md-min) {
  69. .page-user-profile .page-header {
  70. .user-avatar-sm {
  71. display: none;
  72. }
  73. h1 {
  74. position: relative;
  75. top: 5px;
  76. }
  77. .header-stats ul {
  78. li {
  79. display: block;
  80. float: left;
  81. }
  82. }
  83. }
  84. .page-user-profile .profile-side-avatar img {
  85. width: 100%;
  86. height: auto;
  87. margin-top: @line-height-computed * -7;
  88. margin-bottom: @line-height-computed;
  89. }
  90. }