| 1 | .profile-block-container { |
| 2 | display: grid; |
| 3 | grid-template-areas: "profile repos"; |
| 4 | grid-template-columns: 260px 1fr; |
| 5 | } |
| 6 | |
| 7 | .profile-block__left { |
| 8 | grid-area: profile; |
| 9 | max-width: 300px; |
| 10 | } |
| 11 | |
| 12 | .profile-block__right { |
| 13 | grid-area: repos; |
| 14 | padding-left: 10px; |
| 15 | padding-top: 10px; |
| 16 | width: 100%; |
| 17 | } |
| 18 | |
| 19 | .profile-avatar { |
| 20 | height: 256px; |
| 21 | width: 256px; |
| 22 | border-radius: 100%; |
| 23 | border: 2px solid #24292e; |
| 24 | margin-top: 5px; |
| 25 | overflow: hidden; |
| 26 | cursor: pointer; |
| 27 | |
| 28 | img { |
| 29 | height: 256px; |
| 30 | width: 256px; |
| 31 | object-fit: cover; |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | .edit-profile-button { |
| 36 | width: 256px; |
| 37 | } |
| 38 | |
| 39 | .new-ssh-key-block { |
| 40 | border-bottom: 1px solid $gray; |
| 41 | padding-bottom: 10px; |
| 42 | margin: 10px 0 10px 0; |
| 43 | } |
| 44 | |
| 45 | .ssh-key { |
| 46 | border: 1px solid $gray; |
| 47 | border-radius: $small-radius; |
| 48 | padding: 10px; |
| 49 | margin-top: 10px; |
| 50 | } |
| 51 | |
| 52 | .ssh-key-remove { |
| 53 | margin-top: 10px; |
| 54 | } |
| 55 | |
| 56 | .profile-activities { |
| 57 | margin-top: 25px; |
| 58 | } |
| 59 | |
| 60 | .activity { |
| 61 | border: 1px solid $gray; |
| 62 | border-radius: $small-radius; |
| 63 | padding: 10px; |
| 64 | margin-top: 10px; |
| 65 | } |
| 66 | |
| 67 | .profile-repos-header { |
| 68 | display: flex; |
| 69 | align-items: baseline; |
| 70 | justify-content: space-between; |
| 71 | margin: 0 0 12px; |
| 72 | |
| 73 | h2 { |
| 74 | margin: 0; |
| 75 | font-size: 18px; |
| 76 | } |
| 77 | } |
| 78 | |
| 79 | .profile-repos-all { |
| 80 | font-size: 13px; |
| 81 | } |
| 82 | |
| 83 | .profile-repos-empty { |
| 84 | color: #586069; |
| 85 | font-size: 14px; |
| 86 | margin: 0; |
| 87 | } |
| 88 | |
| 89 | .profile-repo-grid { |
| 90 | display: grid; |
| 91 | grid-template-columns: repeat(2, minmax(0, 1fr)); |
| 92 | gap: 12px; |
| 93 | } |
| 94 | |
| 95 | .profile-repo-card { |
| 96 | border: 1px solid #dfdfdf; |
| 97 | border-radius: $small-radius; |
| 98 | padding: 12px; |
| 99 | display: flex; |
| 100 | flex-direction: column; |
| 101 | min-height: 110px; |
| 102 | } |
| 103 | |
| 104 | .profile-repo-card__header { |
| 105 | display: flex; |
| 106 | align-items: center; |
| 107 | justify-content: space-between; |
| 108 | gap: 8px; |
| 109 | margin-bottom: 6px; |
| 110 | } |
| 111 | |
| 112 | .profile-repo-card__title { |
| 113 | font-weight: 600; |
| 114 | font-size: 15px; |
| 115 | overflow: hidden; |
| 116 | text-overflow: ellipsis; |
| 117 | white-space: nowrap; |
| 118 | } |
| 119 | |
| 120 | .profile-repo-card__badge { |
| 121 | font-size: 11px; |
| 122 | border: 1px solid #dfdfdf; |
| 123 | border-radius: 999px; |
| 124 | padding: 1px 7px; |
| 125 | color: #586069; |
| 126 | |
| 127 | &--private { |
| 128 | color: #b08800; |
| 129 | border-color: #f1d27c; |
| 130 | background: #fff9e6; |
| 131 | } |
| 132 | } |
| 133 | |
| 134 | .profile-repo-card__desc { |
| 135 | color: #586069; |
| 136 | font-size: 13px; |
| 137 | margin: 0 0 10px; |
| 138 | flex: 1; |
| 139 | overflow: hidden; |
| 140 | display: -webkit-box; |
| 141 | -webkit-line-clamp: 2; |
| 142 | -webkit-box-orient: vertical; |
| 143 | } |
| 144 | |
| 145 | .profile-repo-card__footer { |
| 146 | display: flex; |
| 147 | align-items: center; |
| 148 | gap: 14px; |
| 149 | font-size: 12px; |
| 150 | color: #586069; |
| 151 | } |
| 152 | |
| 153 | .profile-repo-card__lang { |
| 154 | display: inline-flex; |
| 155 | align-items: center; |
| 156 | gap: 5px; |
| 157 | } |
| 158 | |
| 159 | .profile-repo-card__lang-dot { |
| 160 | display: inline-block; |
| 161 | width: 10px; |
| 162 | height: 10px; |
| 163 | border-radius: 50%; |
| 164 | } |
| 165 | |
| 166 | .profile-activity-heatmap { |
| 167 | margin-top: 25px; |
| 168 | border: 1px solid #dfdfdf; |
| 169 | border-radius: $small-radius; |
| 170 | padding: 14px 16px; |
| 171 | } |
| 172 | |
| 173 | .profile-activity-heatmap__header { |
| 174 | display: flex; |
| 175 | align-items: baseline; |
| 176 | justify-content: space-between; |
| 177 | margin-bottom: 10px; |
| 178 | |
| 179 | h2 { |
| 180 | margin: 0; |
| 181 | font-size: 16px; |
| 182 | font-weight: 600; |
| 183 | } |
| 184 | } |
| 185 | |
| 186 | .profile-activity-heatmap__range { |
| 187 | color: #586069; |
| 188 | font-size: 12px; |
| 189 | } |
| 190 | |
| 191 | .profile-activity-heatmap__grid { |
| 192 | display: grid; |
| 193 | grid-auto-flow: column; |
| 194 | grid-template-rows: repeat(7, 11px); |
| 195 | grid-auto-columns: 11px; |
| 196 | gap: 2px; |
| 197 | overflow-x: auto; |
| 198 | } |
| 199 | |
| 200 | .profile-activity-heatmap__cell { |
| 201 | width: 11px; |
| 202 | height: 11px; |
| 203 | border-radius: 2px; |
| 204 | background: #ebedf0; |
| 205 | |
| 206 | &--empty { |
| 207 | background: transparent; |
| 208 | } |
| 209 | |
| 210 | &[data-level="1"] { background: #9be9a8; } |
| 211 | &[data-level="2"] { background: #40c463; } |
| 212 | &[data-level="3"] { background: #30a14e; } |
| 213 | &[data-level="4"] { background: #216e39; } |
| 214 | } |
| 215 | |
| 216 | .profile-activity-heatmap__legend { |
| 217 | display: flex; |
| 218 | align-items: center; |
| 219 | justify-content: flex-end; |
| 220 | gap: 4px; |
| 221 | margin-top: 8px; |
| 222 | font-size: 11px; |
| 223 | color: #586069; |
| 224 | } |
| 225 | |