You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

295 lines
4.2 KiB

3 years ago
  1. /* global */
  2. .tip { /* from github.com */
  3. position: relative;
  4. padding: 40px;
  5. text-align: center;
  6. background-color: #fafbfc;
  7. border: 1px solid #e1e4e8;
  8. border-radius: 3px;
  9. box-shadow: inset 0 0 10px rgba(27, 31, 35, 0.05);
  10. }
  11. .hide {
  12. display: none;
  13. }
  14. .inline {
  15. display: inline;
  16. }
  17. .user-nav {
  18. margin: 30px 0 20px;
  19. }
  20. .dead-link {
  21. text-decoration: none !important;
  22. border-width: 0;
  23. }
  24. .badge-notification {
  25. position: relative;
  26. font-size: 12px;
  27. text-align: center;
  28. top: -15px;
  29. left: -15px;
  30. border-radius: 50%;
  31. }
  32. .page-header {
  33. padding-top: 20px;
  34. padding-bottom: 20px;
  35. }
  36. .page-footer {
  37. padding-top: 40px;
  38. }
  39. .jumbotron {
  40. margin-top: 20px;
  41. padding-top: 38px;
  42. padding-bottom: 38px;
  43. }
  44. nav {
  45. margin-bottom: 30px;
  46. }
  47. footer {
  48. margin: 30px 0;
  49. padding: 20px 0;
  50. border-top: 1px solid #e5e5e5;
  51. }
  52. /* for navbar */
  53. .avatar-xs {
  54. width: 22px;
  55. height: 22px;
  56. border-radius: 2px;
  57. }
  58. /* for photo page */
  59. .avatar-s {
  60. width: 50px;
  61. height: 50px;
  62. }
  63. /* for user card */
  64. .avatar-m {
  65. width: 100px;
  66. height: 100px;
  67. }
  68. /* for user header */
  69. .avatar-l {
  70. width: 180px;
  71. height: 180px;
  72. }
  73. /* list item */
  74. .photo-card {
  75. float: left;
  76. width: 33.333%;
  77. padding: 0.5rem 0.5rem 0 0.5rem;
  78. border: 0;
  79. }
  80. .photo-card .card-body {
  81. padding: 5px;
  82. }
  83. .user-card {
  84. float: left;
  85. width: 20%;
  86. max-height: 180px;
  87. padding: 1rem;
  88. margin-bottom: 2rem;
  89. border: 0;
  90. }
  91. .card-thumbnail {
  92. position: relative;
  93. width: auto;
  94. height: 20em;
  95. overflow: hidden;
  96. }
  97. .card-thumbnail:hover {
  98. border: 5px solid transparent;
  99. }
  100. .card-thumbnail img {
  101. position: absolute;
  102. left: 50%;
  103. top: 50%;
  104. height: 100%;
  105. width: auto;
  106. -webkit-transform: translate(-50%, -50%);
  107. -ms-transform: translate(-50%, -50%);
  108. transform: translate(-50%, -50%);
  109. }
  110. .card-thumbnail img.portrait {
  111. width: 100%;
  112. height: auto;
  113. }
  114. @media (max-width: 1280px) {
  115. .card-thumbnail {
  116. height: 270px;
  117. }
  118. }
  119. @media (max-width: 960px) {
  120. .card-thumbnail {
  121. height: 220px;
  122. }
  123. }
  124. @media (max-width: 768px) {
  125. .photo-card {
  126. width: 50%;
  127. }
  128. }
  129. @media (max-width: 640px) {
  130. .photo-card {
  131. width: 50%;
  132. }
  133. }
  134. @media (max-width: 500px) {
  135. .card-thumbnail {
  136. height: 20rem;
  137. }
  138. .photo-card {
  139. width: 100%;
  140. }
  141. }
  142. @media (max-width: 360px) {
  143. .card-thumbnail {
  144. height: 20rem;
  145. }
  146. .photo-card {
  147. width: 100%;
  148. }
  149. }
  150. /* photo page */
  151. .photo {
  152. padding: 10px 0;
  153. text-align: center;
  154. }
  155. .sidebar-nav {
  156. min-height: 150px;
  157. }
  158. .sidebar-nav-name {
  159. padding-left: 75px;
  160. }
  161. .sidebar-card {
  162. min-height: 150px;
  163. }
  164. .sidebar-profile {
  165. padding-left: 120px;
  166. }
  167. .sidebar-avatar {
  168. position: absolute;
  169. margin-left: 10px;
  170. }
  171. .trend-card-avatar {
  172. padding-left: 15px;
  173. }
  174. .popup-card {
  175. padding: 10px 20px;
  176. }
  177. .popup-profile {
  178. padding-left: 55px;
  179. }
  180. .popup-avatar {
  181. position: absolute;
  182. }
  183. .photo img {
  184. max-height: 800px;
  185. }
  186. .reply-banner {
  187. color: #000000;
  188. position: relative;
  189. padding: 7px;
  190. background-color: #B8D9EE;
  191. }
  192. .comments {
  193. margin-top: 30px;
  194. }
  195. .comment-body {
  196. margin-left: 60px;
  197. min-height: 50px;
  198. }
  199. .comment-thumbnail {
  200. position: absolute;
  201. }
  202. .comment-form-thumbnail {
  203. position: absolute;
  204. padding-top: 16px
  205. }
  206. .comment-form {
  207. margin: 5px 0 16px 60px;
  208. }
  209. /* Jcrop widget */
  210. #preview-box {
  211. display: block;
  212. position: absolute;
  213. top: 10px;
  214. right: -280px;
  215. padding: 6px;
  216. border: 1px rgba(0, 0, 0, .4) solid;
  217. background-color: white;
  218. -webkit-border-radius: 6px;
  219. -moz-border-radius: 6px;
  220. border-radius: 6px;
  221. -webkit-box-shadow: 1px 1px 5px 2px rgba(0, 0, 0, 0.2);
  222. -moz-box-shadow: 1px 1px 5px 2px rgba(0, 0, 0, 0.2);
  223. box-shadow: 1px 1px 5px 2px rgba(0, 0, 0, 0.2);
  224. }
  225. /* Photo Page */
  226. #tag-form, #description-form {
  227. display: none;
  228. margin: 20px 0;
  229. }
  230. #toast { /* form w3school.com */
  231. display: none;
  232. min-width: 200px;
  233. margin-left: -125px;
  234. background-color: #333;
  235. color: #fff;
  236. text-align: center;
  237. border-radius: 2px;
  238. padding: 10px;
  239. position: fixed;
  240. z-index: 1;
  241. left: 50%;
  242. bottom: 30px;
  243. }