pen-author.css 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. #primary .pen_author_profile {
  2. float: left;
  3. margin: 2em 0 0;
  4. padding: 2em 1em 0;
  5. position: relative;
  6. width: 100%;
  7. z-index: 10;
  8. }
  9. #primary .pen_author_profile:before {
  10. background: -ms-linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(0,0,0,0.5) 50%, rgba(255,255,255,0) 100%);
  11. background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(0,0,0,0.5) 50%, rgba(255,255,255,0) 100%);
  12. content: "";
  13. height: 1px;
  14. left: 0;
  15. opacity: 0.3;
  16. position: absolute;
  17. top: 0;
  18. width: 100%;
  19. }
  20. #primary .pen_author_profile a:focus,
  21. #primary .pen_author_profile a:hover,
  22. #primary .pen_author_profile a:active {
  23. text-decoration: none;
  24. }
  25. body.pen_list_plain #primary .pen_author_profile,
  26. body.pen_list_masonry #primary .pen_author_profile {
  27. border-bottom: 0 none;
  28. font-size: 0.857em;
  29. }
  30. #primary .pen_author_profile.pen_has_avatar {
  31. min-height: 100px;
  32. padding-left: 130px;
  33. }
  34. #primary .pen_author_profile .pen_author_avatar {
  35. background: #fff;
  36. border: 1px solid rgba(170,170,170,0.5);
  37. height: 90px;
  38. left: 1em;
  39. overflow: hidden;
  40. position: absolute;
  41. top: 1em;
  42. width: 90px;
  43. }
  44. body.pen_round_corners #primary .pen_author_profile .pen_author_avatar {
  45. border-radius: 50%;
  46. }
  47. body.pen_masonry_columns_4 #primary .pen_author_profile {
  48. margin: 90px 0 0;
  49. }
  50. body.pen_masonry_columns_4 #primary .pen_author_profile.pen_has_avatar {
  51. padding: 30px 1em 1em;
  52. }
  53. body.pen_masonry_columns_4 #primary .pen_author_profile .pen_author_avatar {
  54. left: 50%;
  55. top: -70px;
  56. transform: translateX(-50%);
  57. }
  58. body.pen_masonry_columns_4 #primary .pen_author_profile .pen_author_about h3,
  59. body.pen_masonry_columns_5 #primary .pen_author_profile .pen_author_about h3 {
  60. text-align: center;
  61. width: 100%;
  62. }
  63. body.pen_masonry_columns_5 #primary .pen_author_profile {
  64. margin: 100px 0 0;
  65. }
  66. body.pen_masonry_columns_5 #primary .pen_author_profile.pen_has_avatar {
  67. padding: 50px 1em 1em;
  68. }
  69. body.pen_masonry_columns_5 #primary .pen_author_profile .pen_author_avatar {
  70. left: 50%;
  71. top: -80px;
  72. transform: translateX(-50%);
  73. }
  74. #primary .pen_author_profile .pen_author_about h3 {
  75. margin: 0;
  76. }
  77. #primary .pen_author_profile .pen_author_about h3:before {
  78. display: none;
  79. }
  80. #primary .pen_author_profile .pen_author_about p {
  81. font-size: 0.857em;
  82. }
  83. #primary .pen_author_profile .pen_author_about .pen_author_url {
  84. display: inline-block;
  85. font-size: 0.857em;
  86. margin: 0 0 0.5em;
  87. }
  88. @media only screen and (min-width:728px) {
  89. body.single #primary .pen_author_profile .pen_author_about.pen_no_description,
  90. body.pen_list_plain #primary .pen_author_profile .pen_author_about.pen_no_description {
  91. left: 0;
  92. position: absolute;
  93. top: 50%;
  94. transform: translateY(-50%);
  95. }
  96. body.single #primary .pen_author_profile.pen_has_avatar .pen_author_about.pen_no_description,
  97. body.pen_list_plain #primary .pen_author_profile.pen_has_avatar .pen_author_about.pen_no_description {
  98. padding: 0 0 0 120px;
  99. }
  100. }
  101. @media only screen and (max-width:728px) {
  102. #primary .pen_author_profile {
  103. margin: 100px 0 0;
  104. }
  105. #primary .pen_author_profile.pen_has_avatar {
  106. padding: 50px 1em 1em;
  107. }
  108. #primary .pen_author_profile .pen_author_avatar {
  109. left: 50%;
  110. top: -80px;
  111. transform: translateX(-50%);
  112. }
  113. }