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.

163 lines
3.2 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. .ui.secondary.stackable.pointing.menu {
  65. flex-wrap: wrap;
  66. }
  67. }
  68. &.followers {
  69. .header.name {
  70. font-size: 20px;
  71. line-height: 24px;
  72. vertical-align: middle;
  73. }
  74. .follow {
  75. .ui.button {
  76. padding: 8px 15px;
  77. }
  78. }
  79. }
  80. &.notification {
  81. .svg {
  82. float: left;
  83. font-size: 2em;
  84. &.green {
  85. color: #21ba45;
  86. }
  87. &.red {
  88. color: #d01919;
  89. }
  90. &.purple {
  91. color: #a333c8;
  92. }
  93. &.blue {
  94. color: #2185d0;
  95. }
  96. }
  97. .content {
  98. float: left;
  99. margin-left: 7px;
  100. }
  101. table {
  102. form {
  103. display: inline-block;
  104. }
  105. button {
  106. padding: 3px 3px 3px 5px;
  107. }
  108. tr {
  109. cursor: pointer;
  110. }
  111. }
  112. }
  113. &.link-account:not(.icon) {
  114. padding-top: 15px;
  115. padding-bottom: 5px;
  116. }
  117. &.settings {
  118. .iconFloat {
  119. float: left;
  120. }
  121. }
  122. }
  123. .user-orgs {
  124. display: flex;
  125. flex-flow: row wrap;
  126. padding: 0;
  127. margin: -3px !important;
  128. li {
  129. display: flex;
  130. border-bottom: 0 !important;
  131. padding: 3px !important;
  132. width: 20%;
  133. max-width: 60px;
  134. }
  135. }