timeline.css 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. /* just structural (no artistic choices) */
  2. /* LAYOUT */
  3. .primary {
  4. display: flex;
  5. flex-wrap: wrap;
  6. justify-content: space-around;
  7. gap: 3rem;
  8. }
  9. .primary > :first-child {
  10. flex-basis: 30rem;
  11. flex-grow: 1;
  12. height:100%;
  13. }
  14. .primary > :last-child {
  15. flex-basis: 0;
  16. flex-grow: 999;
  17. min-inline-size: 35%;
  18. }
  19. /* TIMELINE AND POSTS */
  20. article {
  21. border: 1px solid red;
  22. text-align: left;
  23. margin: 0.25em 0;
  24. padding: 1.5rem clamp(1rem, 5%, 3rem);
  25. }
  26. .message {
  27. margin: 1em 1em 1em 3em;
  28. white-space: pre-wrap;
  29. word-wrap: break-word;
  30. }
  31. /* POST METADATA */
  32. .buttons {
  33. margin-left: 1em;
  34. margin-bottom:0.5em;
  35. }
  36. time {
  37. display: block;
  38. text-align: right;
  39. margin: 0.5em
  40. }
  41. .hashtag {
  42. color: green;
  43. font-weight: bold;
  44. }
  45. /* PROFILE ASIDE */
  46. aside {
  47. border:1px solid blue;
  48. }
  49. .profile {
  50. vertical-align: middle;
  51. padding-left: 10px;
  52. }
  53. .avatar {
  54. vertical-align: middle;
  55. width: 50px;
  56. height: 50px;
  57. }
  58. .handle{
  59. font-size: 1.1em;
  60. font-weight: bold;
  61. }
  62. .email{
  63. text-align:left;
  64. font-size: 0.8em;
  65. text-decoration:none;
  66. }
  67. .bio {
  68. vertical-align: middle;
  69. font-size: 0.9em;
  70. margin: 1em
  71. }
  72. /* IMAGES */
  73. .gallery {
  74. margin:auto;
  75. display: flex;
  76. align-items: center;
  77. width: 100%;
  78. }
  79. .gallery .panel {
  80. margin: 2px;
  81. width: auto
  82. }
  83. .gallery .panel img {
  84. width: 100%;
  85. height: 100%;
  86. }
  87. .gallery .panel img:hover {
  88. border: 1px solid #777;
  89. filter: invert(100%);
  90. }
  91. /* HEADER AND FOOTER */
  92. footer {
  93. display: grid;
  94. place-content: center;
  95. }