user-profile.less 1.9 KB

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