user-profile.less 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. //
  2. // Forum Profile
  3. // --------------------------------------------------
  4. .page-user-profile .page-header {
  5. .alert {
  6. margin-top: @line-height-computed;
  7. margin-bottom: 0px;
  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. margin-top: @line-height-computed;
  32. text-align: center;
  33. li {
  34. display: inline-block;
  35. white-space: nowrap;
  36. }
  37. }
  38. }
  39. .page-user-profile .profile-side-avatar {
  40. display: none;
  41. }
  42. }
  43. // Tablet displays
  44. @media screen and (min-width: @screen-sm-min) and (max-width: @screen-sm-max) {
  45. .page-user-profile .page-header {
  46. img, h1 {
  47. float: left;
  48. }
  49. img {
  50. margin-top: @line-height-computed;
  51. margin-bottom: @line-height-computed;
  52. margin-right: 16px;
  53. width: 64px;
  54. height: 64px;
  55. }
  56. h1 {
  57. position: relative;
  58. top: @line-height-computed / 4;
  59. }
  60. .header-stats {
  61. margin-left: 64px + 24px;
  62. margin-bottom: @line-height-computed * -2;
  63. position: relative;
  64. bottom: @line-height-computed * 2.5;
  65. }
  66. }
  67. }
  68. // Dekstops header
  69. @media screen and (min-width: @screen-md-min) {
  70. .page-user-profile .page-header {
  71. .user-avatar-sm {
  72. display: none;
  73. }
  74. h1 {
  75. position: relative;
  76. top: 5px;
  77. }
  78. .header-stats ul {
  79. li {
  80. display: block;
  81. float: left;
  82. }
  83. }
  84. }
  85. .page-user-profile .profile-side-avatar img {
  86. width: 100%;
  87. height: auto;
  88. margin-top: @line-height-computed * -5.5;
  89. margin-bottom: @line-height-computed;
  90. }
  91. }