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.

160 lines
3.1 KiB

9 years ago
9 years ago
9 years ago
Add Octicon SVG spritemap (#10107) * Add octicon SVG sprite Signed-off-by: jolheiser <john.olheiser@gmail.com> * Static prefix Signed-off-by: jolheiser <john.olheiser@gmail.com> * SVG for all repo icons Signed-off-by: jolheiser <john.olheiser@gmail.com> * make vendor Signed-off-by: jolheiser <john.olheiser@gmail.com> * Swap out octicons Signed-off-by: jolheiser <john.olheiser@gmail.com> * Move octicons to top of less imports Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix JS Signed-off-by: jolheiser <john.olheiser@gmail.com> * Definitely not a search/replace Signed-off-by: jolheiser <john.olheiser@gmail.com> * Missed regex Signed-off-by: jolheiser <john.olheiser@gmail.com> * Move to more generic calls and webpack Signed-off-by: jolheiser <john.olheiser@gmail.com> * make svg -> make webpack Signed-off-by: jolheiser <john.olheiser@gmail.com> * Remove svg-sprite Signed-off-by: jolheiser <john.olheiser@gmail.com> * Update tests Signed-off-by: jolheiser <john.olheiser@gmail.com> * Missed a test Signed-off-by: jolheiser <john.olheiser@gmail.com> * Remove svg from makefile Signed-off-by: jolheiser <john.olheiser@gmail.com> * Suggestions Signed-off-by: jolheiser <john.olheiser@gmail.com> * Attempt to fix test Signed-off-by: jolheiser <john.olheiser@gmail.com> * Update tests Signed-off-by: jolheiser <john.olheiser@gmail.com> * Revert timetracking test Signed-off-by: jolheiser <john.olheiser@gmail.com> * Swap .octicon for .svg in less Signed-off-by: jolheiser <john.olheiser@gmail.com> * Add aria-hidden Signed-off-by: jolheiser <john.olheiser@gmail.com> * Replace mega-octicon Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix webpack globbing on Windows Signed-off-by: jolheiser <john.olheiser@gmail.com> * Revert Co-Authored-By: silverwind <me@silverwind.io> * Fix octions from upstream Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix Vue and missed JS function Signed-off-by: jolheiser <john.olheiser@gmail.com> * Add JS helper and PWA Signed-off-by: jolheiser <john.olheiser@gmail.com> * Preload SVG Signed-off-by: jolheiser <john.olheiser@gmail.com> Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: techknowlogick <matti@mdranta.net>
4 years ago
9 years ago
Add Octicon SVG spritemap (#10107) * Add octicon SVG sprite Signed-off-by: jolheiser <john.olheiser@gmail.com> * Static prefix Signed-off-by: jolheiser <john.olheiser@gmail.com> * SVG for all repo icons Signed-off-by: jolheiser <john.olheiser@gmail.com> * make vendor Signed-off-by: jolheiser <john.olheiser@gmail.com> * Swap out octicons Signed-off-by: jolheiser <john.olheiser@gmail.com> * Move octicons to top of less imports Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix JS Signed-off-by: jolheiser <john.olheiser@gmail.com> * Definitely not a search/replace Signed-off-by: jolheiser <john.olheiser@gmail.com> * Missed regex Signed-off-by: jolheiser <john.olheiser@gmail.com> * Move to more generic calls and webpack Signed-off-by: jolheiser <john.olheiser@gmail.com> * make svg -> make webpack Signed-off-by: jolheiser <john.olheiser@gmail.com> * Remove svg-sprite Signed-off-by: jolheiser <john.olheiser@gmail.com> * Update tests Signed-off-by: jolheiser <john.olheiser@gmail.com> * Missed a test Signed-off-by: jolheiser <john.olheiser@gmail.com> * Remove svg from makefile Signed-off-by: jolheiser <john.olheiser@gmail.com> * Suggestions Signed-off-by: jolheiser <john.olheiser@gmail.com> * Attempt to fix test Signed-off-by: jolheiser <john.olheiser@gmail.com> * Update tests Signed-off-by: jolheiser <john.olheiser@gmail.com> * Revert timetracking test Signed-off-by: jolheiser <john.olheiser@gmail.com> * Swap .octicon for .svg in less Signed-off-by: jolheiser <john.olheiser@gmail.com> * Add aria-hidden Signed-off-by: jolheiser <john.olheiser@gmail.com> * Replace mega-octicon Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix webpack globbing on Windows Signed-off-by: jolheiser <john.olheiser@gmail.com> * Revert Co-Authored-By: silverwind <me@silverwind.io> * Fix octions from upstream Signed-off-by: jolheiser <john.olheiser@gmail.com> * Fix Vue and missed JS function Signed-off-by: jolheiser <john.olheiser@gmail.com> * Add JS helper and PWA Signed-off-by: jolheiser <john.olheiser@gmail.com> * Preload SVG Signed-off-by: jolheiser <john.olheiser@gmail.com> Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: techknowlogick <matti@mdranta.net>
4 years ago
  1. .user {
  2. &:not(.icon) {
  3. padding-top: 15px;
  4. }
  5. &.profile {
  6. .ui.card {
  7. .header,
  8. .username {
  9. display: block;
  10. }
  11. .header {
  12. font-weight: 700;
  13. font-size: 1.3rem;
  14. margin-top: -.2rem;
  15. line-height: 1.3rem;
  16. }
  17. .extra.content {
  18. padding: 0;
  19. ul {
  20. margin: 0;
  21. padding: 0;
  22. li {
  23. padding: 10px;
  24. list-style: none;
  25. &:not(:last-child) {
  26. border-bottom: 1px solid #eaeaea;
  27. }
  28. .svg,
  29. .fa {
  30. margin-left: 1px;
  31. margin-right: 5px;
  32. }
  33. &.follow {
  34. .ui.button {
  35. width: 100%;
  36. }
  37. }
  38. }
  39. }
  40. }
  41. #profile-avatar {
  42. img {
  43. width: 100%;
  44. }
  45. @media only screen and (max-width: 768px) {
  46. height: 250px;
  47. overflow: hidden;
  48. img {
  49. max-height: 768px;
  50. max-width: 768px;
  51. }
  52. }
  53. }
  54. @media only screen and (max-width: 768px) {
  55. width: 100%;
  56. }
  57. }
  58. .ui.repository.list {
  59. margin-top: 25px;
  60. }
  61. #loading-heatmap {
  62. margin-bottom: 1em;
  63. }
  64. }
  65. &.followers {
  66. .header.name {
  67. font-size: 20px;
  68. line-height: 24px;
  69. vertical-align: middle;
  70. }
  71. .follow {
  72. .ui.button {
  73. padding: 8px 15px;
  74. }
  75. }
  76. }
  77. &.notification {
  78. .svg {
  79. float: left;
  80. font-size: 2em;
  81. &.green {
  82. color: #21ba45;
  83. }
  84. &.red {
  85. color: #d01919;
  86. }
  87. &.purple {
  88. color: #a333c8;
  89. }
  90. &.blue {
  91. color: #2185d0;
  92. }
  93. }
  94. .content {
  95. float: left;
  96. margin-left: 7px;
  97. }
  98. table {
  99. form {
  100. display: inline-block;
  101. }
  102. button {
  103. padding: 3px 3px 3px 5px;
  104. }
  105. tr {
  106. cursor: pointer;
  107. }
  108. }
  109. }
  110. &.link-account:not(.icon) {
  111. padding-top: 15px;
  112. padding-bottom: 5px;
  113. }
  114. &.settings {
  115. .iconFloat {
  116. float: left;
  117. }
  118. }
  119. }
  120. .user-orgs {
  121. display: flex;
  122. flex-flow: row wrap;
  123. padding: 0;
  124. margin: -3px !important;
  125. li {
  126. display: flex;
  127. border-bottom: 0 !important;
  128. padding: 3px !important;
  129. width: 20%;
  130. max-width: 60px;
  131. }
  132. }