2023-03-15 03:20:19 +01:00
. repository . data-table . line-num ,
. repository . diff-file-box . file-body . file-code . lines-num ,
2023-09-10 18:27:23 +08:00
. repository . diff-file-box . code-diff tbody tr . lines-type-marker {
2023-03-15 03:20:19 +01:00
user-select : none ;
}
. repository . owner . dropdown {
min-width : 40 % !important ;
}
2023-05-29 12:44:03 +02:00
. issue-content {
display : flex ;
align-items : flex-start ;
gap : 16 px ;
}
@ media ( max-width : 767 . 98px ) {
. issue-content {
flex-direction : column ;
}
}
. issue-content-left {
margin : 0 !important ;
width : calc ( 100 % - 316 px ) ;
2023-03-15 03:20:19 +01:00
}
2023-05-29 12:44:03 +02:00
. issue-content-right {
margin : 0 !important ;
width : 300 px ;
2023-03-15 03:20:19 +01:00
}
2025-04-30 10:00:36 +08:00
. issue-content-right . ui . dropdown . full-width {
width : 100 % ;
}
. issue-content-right . ui . dropdown . full-width > . fixed-text {
display : flex ;
flex-grow : 1 ;
justify-content : space-between ;
2024-11-09 12:48:31 +08:00
}
2025-04-30 10:00:36 +08:00
. issue-content-right . ui . dropdown > . menu {
2024-04-16 10:52:45 +02:00
max-width : 270 px ;
min-width : 0 ;
2024-11-10 16:26:42 +08:00
max-height : 500 px ;
overflow-x : auto ;
2024-04-16 10:52:45 +02:00
}
2025-04-30 10:00:36 +08:00
. issue-content-right . ui . dropdown > . menu . item-secondary-info small {
2024-11-21 09:23:50 +08:00
display : block ;
text-overflow : ellipsis ;
overflow : hidden ;
}
2025-06-27 17:12:25 +02:00
. issue-content-right . ui . list {
margin : 0.5 em 0 ;
max-width : 100 % ;
}
2025-04-30 10:00:36 +08:00
. issue-sidebar-combo > . ui . dropdown . item : not ( . checked ) . item-check-mark {
visibility : hidden ;
}
2025-06-27 17:12:25 +02:00
. issue-content-right . ui . list . labels-list {
display : flex ;
gap : var ( - - gap - inline ) ;
flex-wrap : wrap ;
}
2023-05-29 12:44:03 +02:00
@ media ( max-width : 767 . 98px ) {
. issue-content-left ,
. issue-content-right {
width : 100 % ;
}
2023-03-15 03:20:19 +01:00
}
2026-01-22 10:22:20 +08:00
/* make all issue filter dropdown (user dashboard, repo issue list) menus popup leftward, to avoid go out the viewport (right side) */
. list-header-filters . ui . dropdown . menu ,
. issue-list-toolbar . ui . dropdown . menu {
2023-03-15 03:20:19 +01:00
max-height : 500 px ;
2023-03-24 15:11:23 +08:00
max-width : 300 px ;
overflow-x : hidden ;
2023-04-30 23:51:20 +08:00
right : 0 ;
left : auto ;
}
/* the label-filter is the first dropdown, it shouldn't be shown leftward, otherwise it may go out the viewport (left side) */
2026-01-22 10:22:20 +08:00
. list-header-filters . ui . dropdown . label-filter . menu ,
. issue-list-toolbar . ui . dropdown . label-filter . menu {
2023-07-13 22:00:38 +02:00
min-width : max-content ;
2023-04-30 23:51:20 +08:00
right : unset ;
left : 0 ;
2023-03-15 03:20:19 +01:00
}
2023-04-20 16:58:26 +08:00
/* For the secondary pointing menu, respect its own border-bottom */
/* style reference: https://semantic-ui.com/collections/menu.html#pointing */
. repository . ui . tabs . container . ui . menu : not ( . secondary . pointing ) {
2023-03-15 03:20:19 +01:00
border-bottom : 0 ;
}
. repository . ui . tabs . divider {
2023-04-29 19:35:59 +08:00
margin-top : -1 px ;
2023-04-30 05:33:25 +02:00
margin-bottom : 12 px ;
2023-03-15 03:20:19 +01:00
}
2024-04-10 08:13:22 +02:00
. commit-summary {
flex : 1 ;
overflow-wrap : anywhere ;
overflow : hidden ;
white-space : nowrap ;
text-overflow : ellipsis ;
2023-03-19 00:07:59 +08:00
}
2024-04-10 08:13:22 +02:00
. commit-header . commit-summary ,
td . commit-summary {
white-space : normal ;
}
. latest-commit {
display : flex ;
flex : 1 ;
align-items : center ;
overflow : hidden ;
text-overflow : ellipsis ;
2025-07-17 22:53:03 +02:00
gap : 0.5 em ;
2024-04-10 08:13:22 +02:00
}
2024-12-29 03:04:56 +03:00
@ media ( max-width : 767 . 98px ) {
. latest-commit . commit-id-short {
display : none ;
}
}
2025-11-30 06:58:15 +03:00
. non-diff-file-content . header . icon {
2023-03-15 03:20:19 +01:00
font-size : 1 em ;
}
2025-11-30 06:58:15 +03:00
. non-diff-file-content . header . small . icon {
2023-03-15 03:20:19 +01:00
font-size : 0.75 em ;
}
2025-11-30 06:58:15 +03:00
. non-diff-file-content . header . tiny . icon {
2023-03-15 03:20:19 +01:00
font-size : 0.5 em ;
}
2025-11-30 06:58:15 +03:00
. non-diff-file-content . header . file-actions . btn-octicon {
2023-08-18 05:50:32 +08:00
line-height : var ( - - line - height - default ) ;
padding : 8 px ;
2023-03-15 03:20:19 +01:00
vertical-align : middle ;
color : var ( - - color - text ) ;
}
2025-11-30 06:58:15 +03:00
. non-diff-file-content . header . file-actions . btn-octicon : hover {
2023-03-15 03:20:19 +01:00
color : var ( - - color - primary ) ;
}
2025-11-30 06:58:15 +03:00
. non-diff-file-content . header . file-actions . btn-octicon-danger : hover {
2023-03-15 03:20:19 +01:00
color : var ( - - color - red ) ;
}
2025-11-30 06:58:15 +03:00
. non-diff-file-content . header . file-actions . btn-octicon . disabled {
2023-03-15 03:20:19 +01:00
color : inherit ;
opacity : var ( - - opacity - disabled ) ;
cursor : default ;
}
2025-11-30 06:58:15 +03:00
. non-diff-file-content . plain-text {
2023-03-15 03:20:19 +01:00
padding : 1 em 2 em ;
}
2025-11-30 06:58:15 +03:00
. non-diff-file-content . plain-text pre {
2024-05-10 14:25:49 +02:00
overflow-wrap : anywhere ;
2023-03-15 03:20:19 +01:00
white-space : pre-wrap ;
}
2025-11-30 06:58:15 +03:00
. non-diff-file-content . csv {
2023-03-15 03:20:19 +01:00
overflow-x : auto ;
padding : 0 !important ;
}
2025-11-30 06:58:15 +03:00
. non-diff-file-content pre {
2023-03-15 03:20:19 +01:00
overflow : auto ;
}
2025-11-30 06:58:15 +03:00
. non-diff-file-content . asciicast {
2023-06-27 21:44:17 +02:00
padding : 0 !important ;
2023-03-15 03:20:19 +01:00
}
2026-03-31 23:50:45 +02:00
. repo-editor-menu {
min-height : auto !important ;
}
2023-05-01 17:40:02 +02:00
. repo-editor-header {
2026-04-23 03:52:48 +08:00
/* it should match ".repo-button-row" so the tree toggle button stays aligned */
margin : 8 px 0 ;
2025-11-30 06:58:15 +03:00
display : flex ;
align-items : center ;
2026-04-23 03:52:48 +08:00
gap : 8 px ;
width : 100 % ;
2023-03-15 03:20:19 +01:00
}
2023-05-01 17:40:02 +02:00
. repo-editor-header input {
vertical-align : middle !important ;
width : auto !important ;
2026-04-23 03:52:48 +08:00
height : 30 px !important ;
padding : 5 px 8 px !important ;
2023-05-01 17:40:02 +02:00
margin-right : 5 px !important ;
2023-03-15 03:20:19 +01:00
}
. repository . file . editor . commit-form-wrapper {
2025-11-30 06:58:15 +03:00
padding-left : 58 px ;
2023-03-15 03:20:19 +01:00
}
. repository . file . editor . commit-form-wrapper . commit-avatar {
float : left ;
2025-11-30 06:58:15 +03:00
margin-left : -58 px ;
2023-03-15 03:20:19 +01:00
}
. repository . file . editor . commit-form-wrapper . commit-form {
position : relative ;
padding : 15 px ;
margin-bottom : 10 px ;
border : 1 px solid var ( - - color - secondary ) ;
background : var ( - - color - box - body ) ;
2023-08-28 21:43:59 +02:00
border-radius : var ( - - border - radius ) ;
2023-03-15 03:20:19 +01:00
}
2025-07-13 22:52:35 +08:00
. avatar-content-left-arrow :: before ,
. avatar-content-left-arrow :: after {
2023-03-15 03:20:19 +01:00
right : 100 % ;
top : 20 px ;
border : solid transparent ;
content : " " ;
height : 0 ;
width : 0 ;
position : absolute ;
pointer-events : none ;
}
2025-07-13 22:52:35 +08:00
. avatar-content-left-arrow :: before {
2023-03-15 03:20:19 +01:00
border-right-color : var ( - - color - secondary ) ;
border-width : 9 px ;
margin-top : -9 px ;
}
2025-07-13 22:52:35 +08:00
. avatar-content-left-arrow :: after {
2023-03-15 03:20:19 +01:00
border-right-color : var ( - - color - box - body ) ;
border-width : 8 px ;
margin-top : -8 px ;
}
2025-07-13 22:52:35 +08:00
@ media ( max-width : 767 . 98px ) {
. avatar-content-left-arrow :: before ,
. avatar-content-left-arrow :: after {
display : none ;
}
}
2023-03-15 03:20:19 +01:00
. repository . file . editor . commit-form-wrapper . commit-form . quick-pull-choice . branch-name {
display : inline-block ;
padding : 2 px 4 px ;
font : 12 px var ( - - fonts - monospace ) ;
color : var ( - - color - text ) ;
background : var ( - - color - secondary ) ;
2023-08-28 21:43:59 +02:00
border-radius : var ( - - border - radius ) ;
2023-03-15 03:20:19 +01:00
margin : 0 2 px ;
}
. repository . file . editor . commit-form-wrapper . commit-form . quick-pull-choice . new-branch-name-input {
position : relative ;
margin-left : 25 px ;
}
. repository . file . editor . commit-form-wrapper . commit-form . quick-pull-choice . new-branch-name-input input {
width : 240 px !important ;
padding-left : 26 px !important ;
}
. repository . file . editor . commit-form-wrapper . commit-form . quick-pull-choice . octicon-git-branch {
position : absolute ;
top : 9 px ;
left : 10 px ;
color : var ( - - color - grey ) ;
}
. repository . options # interval {
width : 100 px !important ;
min-width : 100 px ;
}
2024-05-05 21:09:41 +08:00
/* issue title & meta & edit */
2023-05-03 23:58:59 +02:00
. issue-title-header {
width : 100 % ;
padding-bottom : 4 px ;
margin-bottom : 1 rem ;
2023-03-15 03:20:19 +01:00
}
2023-05-03 23:58:59 +02:00
. issue-title-meta {
2023-03-15 03:20:19 +01:00
display : flex ;
align-items : center ;
}
2024-05-05 21:09:41 +08:00
. repository . view . issue . issue-title-buttons {
2023-03-15 03:20:19 +01:00
display : flex ;
2024-05-05 21:09:41 +08:00
gap : 0.5 em ;
2023-03-15 03:20:19 +01:00
}
2024-05-05 21:09:41 +08:00
. repository . view . issue . issue-title-buttons > . ui . button {
margin : 0 ;
height : 35 px ;
2023-03-15 03:20:19 +01:00
}
2023-05-03 23:58:59 +02:00
. repository . view . issue . issue-title {
display : flex ;
2024-05-05 21:09:41 +08:00
gap : 0.5 em ;
2023-05-03 23:58:59 +02:00
margin-bottom : 8 px ;
2025-07-18 11:13:32 +02:00
min-height : 36 px ; /* avoid layout shift on edit */
2023-05-03 23:58:59 +02:00
}
. repository . view . issue . issue-title h1 {
flex : 1 ;
width : 100 % ;
2023-05-22 01:37:32 +02:00
font-weight : var ( - - font - weight - normal ) ;
2023-05-03 23:58:59 +02:00
font-size : 32 px ;
2025-07-18 11:13:32 +02:00
line-height : 36 px ; /* vertically center single-line text with .issue-title-buttons */
2023-03-15 03:20:19 +01:00
margin : 0 ;
2023-05-03 23:58:59 +02:00
padding-right : 0.25 rem ;
2025-07-13 22:52:35 +08:00
overflow-wrap : anywhere ;
}
2024-05-05 21:09:41 +08:00
@ media ( max-width : 767 . 98px ) {
. repository . view . issue . issue-title {
flex-direction : column ;
}
. repository . view . issue . issue-title-buttons {
width : 100 % ;
justify-content : space-between ;
}
}
. repository . view . issue . issue-title . ui . input {
width : 100 % ;
height : 35 px ;
2023-03-15 03:20:19 +01:00
}
2024-05-05 21:09:41 +08:00
. repository . view . issue . issue-title . ui . input input {
2023-03-15 03:20:19 +01:00
font-size : 1.5 em ;
2023-05-03 23:58:59 +02:00
padding : 2 px .5 rem ;
2023-03-15 03:20:19 +01:00
}
2024-04-14 19:53:52 +02:00
. issue-title . index {
2023-05-03 23:58:59 +02:00
color : var ( - - color - text - light -2 ) ;
2023-03-15 03:20:19 +01:00
}
2024-04-14 19:53:52 +02:00
. issue-title . label {
2023-05-03 23:58:59 +02:00
margin-right : 10 px ;
2023-03-15 03:20:19 +01:00
}
2023-05-03 23:58:59 +02:00
. issue-state-label {
display : flex !important ;
align-items : center !important ;
font-size : 14 px !important ;
padding : 7 px 10 px !important ;
2023-08-28 21:43:59 +02:00
border-radius : var ( - - border - radius - medium ) !important ;
2024-04-16 10:52:45 +02:00
flex-shrink : 0 ;
2023-03-15 03:20:19 +01:00
}
2023-05-03 23:58:59 +02:00
. issue-state-label . svg {
margin-right : 4 px ;
2023-03-15 03:20:19 +01:00
}
. repository . view . issue . pull-desc code {
color : var ( - - color - primary ) ;
2025-11-05 18:18:26 +01:00
background : transparent ;
2023-03-15 03:20:19 +01:00
}
. repository . view . issue . pull-desc a [ data-clipboard-text ] {
cursor : pointer ;
}
. repository . view . issue . pull-desc a [ data-clipboard-text ] svg {
vertical-align : middle ;
position : relative ;
top : -2 px ;
right : 1 px ;
}
2023-07-14 03:54:20 +02:00
. repository . view . issue . pull . tabs . container {
width : 100 % ;
max-width : 100 % ;
}
2023-03-15 03:20:19 +01:00
. repository . view . issue . pull . tabular . menu {
2023-07-14 03:54:20 +02:00
margin-bottom : 0 ;
overflow-x : auto ;
overflow-y : hidden ;
2023-03-15 03:20:19 +01:00
}
. repository . view . issue . pull . tabular . menu . svg {
margin-right : 5 px ;
}
. repository . view . issue . comment-list : not ( . prevent-before-timeline ) :: before {
display : block ;
content : "" ;
position : absolute ;
margin-top : 12 px ;
margin-bottom : 14 px ;
top : 0 ;
bottom : 0 ;
left : 96 px ;
width : 2 px ;
background-color : var ( - - color - timeline ) ;
z-index : -1 ;
}
. repository . view . issue . comment-list . timeline {
position : relative ;
display : block ;
margin-left : 40 px ;
padding-left : 16 px ;
}
. repository . view . issue . comment-list . timeline :: before { /* ciara */
display : block ;
content : "" ;
position : absolute ;
margin-top : 12 px ;
margin-bottom : 14 px ;
top : 0 ;
bottom : 0 ;
left : 30 px ;
width : 2 px ;
background-color : var ( - - color - timeline ) ;
z-index : -1 ;
}
. repository . view . issue . comment-list . timeline-item ,
. repository . view . issue . comment-list . timeline-item-group {
2025-06-03 18:00:39 +02:00
padding : 8 px 0 ;
2023-03-15 03:20:19 +01:00
}
. repository . view . issue . comment-list . timeline-item-group . timeline-item {
padding-top : 8 px ;
padding-bottom : 8 px ;
}
2023-05-10 11:16:44 +02:00
. repository . view . issue . comment-list . timeline-avatar-offset {
2026-03-12 09:25:09 +01:00
top : 51 px ;
2023-05-10 11:16:44 +02:00
}
2023-03-15 03:20:19 +01:00
. repository . view . issue . comment-list . timeline-item {
margin-left : 16 px ;
position : relative ;
}
. repository . view . issue . comment-list . timeline-item . timeline-avatar {
position : absolute ;
left : -68 px ;
}
/* Don't show the mobile oriented avatar ".inline-timeline-avatar" on desktop. Desktop uses the avatar with class ".timeline-avatar" */
. repository . view . issue . comment-list . timeline-item . inline-timeline-avatar {
display : none ;
}
. repository . view . issue . comment-list . timeline-item : first-child : not ( . commit ) {
padding-top : 0 !important ;
}
. repository . view . issue . comment-list . timeline-item : last-child : not ( . commit ) {
padding-bottom : 0 !important ;
}
. repository . view . issue . comment-list . timeline-item . badge . badge-commit {
border-color : transparent ;
background : radial-gradient ( var ( - - color - body ) 40 % , transparent 40 % ) no-repeat ;
}
. repository . view . issue . comment-list . timeline-item . badge {
width : 34 px ;
height : 34 px ;
background-color : var ( - - color - timeline ) ;
2024-05-25 16:33:34 +02:00
border-radius : var ( - - border - radius - full ) ;
2023-03-15 03:20:19 +01:00
display : flex ;
2025-07-13 22:52:35 +08:00
flex-shrink : 0 ;
2023-03-15 03:20:19 +01:00
margin-left : -33 px ;
2026-03-12 09:25:09 +01:00
margin-right : 4 px ;
2023-03-15 03:20:19 +01:00
color : var ( - - color - text ) ;
align-items : center ;
justify-content : center ;
}
2025-06-03 18:00:39 +02:00
. repository . view . issue . comment-list . timeline-item . commits-list . badge {
margin-right : 0 ;
height : 28 px ;
}
2023-03-15 03:20:19 +01:00
. repository . view . issue . comment-list . timeline-item . badge . svg {
width : 22 px ;
height : 22 px ;
padding : 3 px ;
}
. repository . view . issue . comment-list . timeline-item . comment > . content {
margin-left : -16 px ;
}
2025-07-13 22:52:35 +08:00
. repository . view . issue . comment-list . timeline-item . comment-text-line {
2025-11-19 04:02:41 +01:00
/* TODO: this "line-height" is not ideal (actually it is abused), many layouts depend on this magic value,
for example: alignment of the header arrow and the avatar, view PR commit list left icon layout, dismiss review with reason, etc */
2023-03-15 03:20:19 +01:00
line-height : 32 px ;
2025-07-13 22:52:35 +08:00
color : var ( - - color - text - light ) ;
2025-11-19 04:02:41 +01:00
min-width : 0 ;
2025-07-13 22:52:35 +08:00
}
2025-10-21 13:19:29 +08:00
. repository . view . issue . comment-list . timeline-item . comment-text-line . ui . label {
line-height : 1.5 ; /* label has background, so it can't use parent's line-height */
}
2025-07-13 22:52:35 +08:00
. repository . view . issue . comment-list . timeline-item . comment-text-line a {
color : inherit ;
}
2023-03-15 03:20:19 +01:00
. repository . view . issue . comment-list . timeline-item . commits-list {
padding-left : 15 px ;
padding-top : 0 ;
}
2025-07-13 22:52:35 +08:00
. repository . view . issue . comment-list . timeline-item . comment-text-label {
2023-03-15 03:20:19 +01:00
border : 1 px solid var ( - - color - light - border ) ;
2025-07-13 22:52:35 +08:00
height : 26 px ;
margin : 4 px 0 ; /* because this label is beside the comment line, which has "line-height: 34px" */
2023-03-15 03:20:19 +01:00
}
2023-06-09 11:10:51 +02:00
@ media ( max-width : 767 . 98px ) {
2023-03-15 03:20:19 +01:00
. repository . view . issue . comment-list . timeline-item . ui . segments {
margin-left : -2 rem ;
}
}
. repository . view . issue . comment-list . ui . comments {
max-width : 100 % ;
2024-04-14 12:44:11 +02:00
display : flex ;
flex-direction : column ;
gap : 3 px ;
2023-03-15 03:20:19 +01:00
}
. repository . view . issue . comment-list . comment > . content > div : first-child {
border-top-left-radius : 4 px ;
border-top-right-radius : 4 px ;
}
. repository . view . issue . comment-list . comment > . content > div : last-child {
border-bottom-left-radius : 4 px ;
border-bottom-right-radius : 4 px ;
}
. repository . view . issue . comment-list . comment . comment-container {
border : 1 px solid var ( - - color - secondary ) ;
border-radius : var ( - - border - radius ) ;
2024-04-14 12:44:11 +02:00
background : var ( - - color - box - body ) ;
}
. repository . view . issue . comment-list . conversation-holder . comment . comment-container {
border : none ;
2023-03-15 03:20:19 +01:00
}
2023-06-09 11:10:51 +02:00
@ media ( max-width : 767 . 98px ) {
2023-03-15 03:20:19 +01:00
. repository . view . issue . comment-list . comment . content . form . button {
width : 100 % ;
margin : 0 ;
}
}
. repository . view . issue . comment-list . comment . merge-section {
background-color : var ( - - color - box - body ) ;
}
. repository . view . issue . comment-list . comment . merge-section . item-section {
display : flex ;
2024-03-05 11:03:14 +08:00
flex-wrap : wrap ;
2023-03-15 03:20:19 +01:00
align-items : center ;
justify-content : space-between ;
padding : 0 ;
2024-03-05 11:03:14 +08:00
gap : 0.5 em ;
2023-03-15 03:20:19 +01:00
}
. repository . view . issue . comment-list . comment . merge-section . divider {
margin-left : -1 rem ;
2023-06-29 14:24:22 +02:00
width : calc ( 100 % + 2 rem ) ;
2023-03-15 03:20:19 +01:00
}
2023-04-23 20:12:36 +02:00
. merge-section-info code {
border : 1 px solid var ( - - color - light - border ) ;
2023-08-28 21:43:59 +02:00
border-radius : var ( - - border - radius ) ;
2023-04-23 20:12:36 +02:00
padding : 2 px 4 px ;
background : var ( - - color - light ) ;
}
2023-03-15 03:20:19 +01:00
. repository . view . issue . comment-list . comment . no-content {
color : var ( - - color - text - light -2 ) ;
font-style : italic ;
}
. repository . view . issue . comment-list . comment . ui . form . field : first-child {
clear : none ;
}
. repository . view . issue . comment-list . comment . ui . form . field . footer {
overflow : hidden ;
}
. repository . view . issue . comment-list . comment . ui . form . field . tab . markup {
min-height : 5 rem ;
}
. repository . view . issue . comment-list . comment . edit . buttons {
margin-top : 10 px ;
}
. repository . view . issue . comment-list . code-comment {
border : 1 px solid transparent ;
2025-11-19 04:02:41 +01:00
padding : 8 px ;
2023-03-15 03:20:19 +01:00
}
. repository . view . issue . comment-list . code-comment . comment-header {
background : transparent ;
2025-10-21 13:19:29 +08:00
border-bottom : 0 ;
padding : 0 ;
2023-03-15 03:20:19 +01:00
}
. repository . view . issue . comment-list . code-comment . comment-content {
2025-11-19 04:02:41 +01:00
margin-top : 6 px ;
2024-12-04 10:11:34 +08:00
margin-left : 24 px ;
2023-03-15 03:20:19 +01:00
}
. repository . view . issue . comment-list . comment-code-cloud button . comment-form-reply {
margin : 0 ;
}
. repository . view . issue . comment-list . event {
padding-left : 15 px ;
2026-03-12 09:25:09 +01:00
display : flex ;
flex-wrap : wrap ;
align-items : center ;
gap : 4 px ;
2023-03-15 03:20:19 +01:00
}
2026-03-12 09:25:09 +01:00
. repository . view . issue . comment-list . event . code-comments-list {
display : block ;
2023-03-15 03:20:19 +01:00
}
2026-03-12 09:25:09 +01:00
. repository . view . issue . comment-list . event > . badge {
align-self : flex-start ;
}
. repository . view . issue . comment-list . event > . avatar-with-link {
align-self : flex-start ;
height : 32 px ;
display : inline-flex ;
align-items : center ;
2024-04-15 10:49:48 +02:00
}
2026-03-12 09:25:09 +01:00
. repository . view . issue . comment-list . event > . comment-text-line {
flex : 1 ;
min-width : 0 ;
}
. repository . view . issue . comment-list . event > . detail {
margin-left : 15 px ;
width : 100 % ;
2023-03-15 03:20:19 +01:00
}
2025-01-15 23:38:03 +08:00
. repository . view . issue . ui . depending . item . is-closed . issue-dependency-title {
2023-03-15 03:20:19 +01:00
text-decoration : line-through ;
}
. repository . comment . form . content . field : first-child {
clear : none ;
}
. repository . new . milestone textarea {
height : 200 px ;
}
2023-06-05 08:25:46 +02:00
. milestone-progress-big {
width : min ( 420 px , 96 vw ) ;
height : 10 px ;
}
2023-07-04 19:45:45 +02:00
. repository . choose . branch {
display : flex ;
align-items : center ;
gap : 8 px ;
flex-wrap : wrap ;
}
2024-01-05 09:38:56 -08:00
. repository . choose . compare-separator {
width : 100 % ;
margin-top : -1 rem ;
text-align : center ;
2023-03-15 03:20:19 +01:00
}
. repository . branches . commit-divergence . bar-group {
position : relative ;
float : left ;
padding-bottom : 6 px ;
width : 50 % ;
max-width : 90 px ;
}
. repository . branches . commit-divergence . bar-group : last-child {
border-left : 1 px solid var ( - - color - secondary - dark -2 ) ;
}
. repository . branches . commit-divergence . count {
margin : 0 3 px ;
}
. repository . branches . commit-divergence . count . count-ahead {
text-align : left ;
}
. repository . branches . commit-divergence . count . count-behind {
text-align : right ;
}
. repository . branches . commit-divergence . bar {
height : 4 px ;
position : absolute ;
background-color : var ( - - color - secondary - dark -2 ) ;
}
. repository . branches . commit-divergence . bar . bar-behind {
right : 0 ;
}
. repository . branches . commit-divergence . bar . bar-ahead {
left : 0 ;
}
. repository . commits . header . search input {
2023-05-22 01:37:32 +02:00
font-weight : var ( - - font - weight - normal ) ;
2023-03-15 03:20:19 +01:00
padding : 5 px 10 px ;
}
2023-07-06 23:07:57 +02:00
. repository # commits-table td : not ( . message ) {
white-space : nowrap ;
2023-03-15 03:20:19 +01:00
}
. repository # commits-table thead . sha {
width : 200 px ;
}
. repository . data-table {
width : 100 % ;
}
. repository . data-table tr {
border-top : 0 ;
2024-03-10 20:28:59 +01:00
background : none !important ;
2023-03-15 03:20:19 +01:00
}
. repository . data-table td ,
. repository . data-table th {
padding : 5 px !important ;
overflow : hidden ;
font-size : 12 px ;
text-align : left ;
white-space : nowrap ;
border : 1 px solid var ( - - color - secondary ) ;
}
2024-03-10 20:28:59 +01:00
/* the border css competes with .markup where all tables have outer border which would add a double
border here, remove only the outer borders from this table */
. repository . data-table tr : first-child : is ( td , th ) {
border-top : none !important ;
}
. repository . data-table tr : last-child : is ( td , th ) {
border-bottom : none !important ;
}
. repository . data-table tr : is ( td , th ) : first-child {
border-left : none !important ;
}
. repository . data-table tr : is ( td , th ) : last-child {
border-right : none !important ;
}
2023-03-15 03:20:19 +01:00
. repository . data-table td {
white-space : pre-line ;
}
. repository . data-table th {
2023-05-22 01:37:32 +02:00
font-weight : var ( - - font - weight - semibold ) ;
2023-03-15 03:20:19 +01:00
background : var ( - - color - box - header ) ;
border-top : 0 ;
}
. repository . data-table td . added ,
. repository . data-table th . added ,
. repository . data-table tr . added {
background-color : var ( - - color - diff - added - row - bg ) !important ;
}
. repository . data-table td . removed ,
. repository . data-table th . removed ,
. repository . data-table tr . removed {
background-color : var ( - - color - diff - removed - row - bg ) !important ;
}
. repository . data-table td . moved ,
. repository . data-table th . moved ,
. repository . data-table tr . moved {
background-color : var ( - - color - diff - moved - row - bg ) !important ;
}
. repository . data-table tbody . section {
border-top : 2 px solid var ( - - color - secondary ) ;
}
. repository . data-table . line-num {
width : 1 % ;
min-width : 50 px ;
font-family : monospace ;
2026-03-31 23:50:45 +02:00
line-height : var ( - - line - height - code ) ;
2024-03-10 20:28:59 +01:00
color : var ( - - color - text - light -1 ) ;
2023-03-15 03:20:19 +01:00
white-space : nowrap ;
vertical-align : top ;
cursor : pointer ;
text-align : right ;
background : var ( - - color - body ) ;
border : 0 ;
}
. repository . diff-detail-box {
2023-09-28 18:00:26 +08:00
display : flex ;
justify-content : space-between ;
align-items : center ;
position : sticky ;
top : 0 ;
z-index : 8 ;
2023-10-20 16:56:19 +02:00
padding : 7 px 5 px ;
margin : 0 -5 px ; /* negative margin so it covers active file shadow */
2023-09-28 18:00:26 +08:00
height : 44 px ; /* this height should match sticky-2nd-row */
2023-03-15 03:20:19 +01:00
background : var ( - - color - body ) ;
}
@ media ( max-width : 480px ) {
. repository . diff-detail-box {
flex-wrap : wrap ;
}
}
. repository . diff-detail-box . diff-detail-stats strong {
margin-left : 0.25 rem ;
margin-right : 0.25 rem ;
}
/* Because the translations contain the <strong> we need to style with nth-of-type */
. repository . diff-detail-box . diff-detail-stats strong : nth-of-type ( 1 ) {
color : var ( - - color - yellow ) ;
}
. repository . diff-detail-box . diff-detail-stats strong : nth-of-type ( 2 ) {
color : var ( - - color - green ) ;
}
. repository . diff-detail-box . diff-detail-stats strong : nth-of-type ( 3 ) {
color : var ( - - color - red ) ;
}
2024-02-18 15:51:21 +01:00
@ media ( max-width : 800px ) {
2023-03-15 03:20:19 +01:00
. repository . diff-detail-box . diff-detail-stats {
2023-11-16 04:58:53 +01:00
display : none !important ;
2023-03-15 03:20:19 +01:00
}
}
2023-03-30 14:06:10 +02:00
. diff-detail-actions {
2023-08-24 23:46:30 +08:00
display : flex ;
align-items : center ;
gap : 0.25 em ;
justify-content : end ;
2023-03-30 14:06:10 +02:00
}
2023-06-01 12:47:28 +02:00
. diff-detail-actions > * ,
. diff-detail-actions . button {
margin-left : 0 !important ;
margin-right : 0 !important ;
2023-03-15 03:20:19 +01:00
}
. repository . diff-detail-box span . status {
display : inline-block ;
width : 12 px ;
height : 12 px ;
margin-right : 8 px ;
vertical-align : middle ;
}
. repository . diff-detail-box span . status . modify {
background-color : var ( - - color - yellow ) ;
}
. repository . diff-detail-box span . status . add {
background-color : var ( - - color - green ) ;
}
. repository . diff-detail-box span . status . del {
background-color : var ( - - color - red ) ;
}
. repository . diff-detail-box span . status . rename {
background-color : var ( - - color - teal ) ;
}
2023-06-21 07:22:48 +08:00
. repository . diff-detail-box . ui . button {
padding : 0 12 px ;
height : 30 px ;
2023-03-15 03:20:19 +01:00
}
. repository . diff-file-box . header {
background-color : var ( - - color - box - header ) ;
}
. repository . diff-file-box . file-body . file-code {
background : var ( - - color - code - bg ) ;
2024-04-29 22:53:15 +02:00
border-radius : var ( - - border - radius ) ;
2023-03-15 03:20:19 +01:00
}
. repository . diff-file-box . file-body . file-code . lines-num {
text-align : right ;
}
. repository . diff-file-box . file-body . file-code . lines-num span . fold {
display : block ;
text-align : center ;
}
. repository . diff-file-box . code-diff td {
padding : 0 0 0 10 px !important ;
border-top : 0 ;
}
. repository . diff-file-box . code-diff . lines-num {
padding : 0 5 px !important ;
}
. repository . diff-file-box . code-diff . tag-code . lines-num ,
. repository . diff-file-box . code-diff . tag-code td {
padding : 0 !important ;
}
2023-04-04 19:05:07 +08:00
. repository . diff-file-box . code-diff table {
table-layout : fixed ;
}
2023-03-15 03:20:19 +01:00
. repository . diff-file-box . code-diff tbody tr td . center {
text-align : center ;
}
. repository . diff-file-box . code-diff tbody tr [ data-line-num ] :: before {
content : attr ( data - line - num ) ;
text-align : right ;
}
. repository . diff-file-box . code-diff tbody tr . lines-type-marker {
width : 10 px ;
min-width : 10 px ;
}
. repository . diff-file-box . code-diff tbody tr [ data-type-marker ] :: before {
content : attr ( data - type - marker ) ;
text-align : right ;
display : inline-block ;
}
. repository . diff-file-box . code-diff-split . tag-code . lines-code code . code-inner {
padding-left : 10 px !important ;
}
. repository . diff-file-box . code-diff-split table ,
. repository . diff-file-box . code-diff-split tbody {
width : 100 % ;
}
. repository . diff-file-box . file-content {
clear : right ;
}
2023-06-09 10:37:47 +02:00
. repository . diff-file-box . file-content . image-diff img {
2023-03-15 03:20:19 +01:00
max-width : 100 % ;
padding : 0 ;
border-radius : 0 ;
}
. repository . diff-file-box . ui . bottom . attached . table . segment {
padding-top : 5 px ;
padding-bottom : 5 px ;
}
2023-03-30 14:06:10 +02:00
. diff-file-box {
border : 1 px solid transparent ;
border-radius : var ( - - border - radius ) ;
2023-04-05 01:51:42 +02:00
scroll-margin-top : 47 px ; /* match .repository .diff-detail-box */
}
2023-05-29 14:45:22 +02:00
. file . editor . diff-file-box {
border : none ;
}
. file . editor . diff-file-box . ui . attached . table {
border : none ;
}
2023-03-30 14:06:10 +02:00
/* TODO: this can potentially be made "global" by removing the class prefix */
. diff-file-box . ui . attached . header ,
. diff-file-box . ui . attached . table {
2023-06-17 15:20:32 +02:00
margin : 0 ; /* remove fomantic negative margins */
width : initial ; /* remove fomantic over 100% width */
max-width : initial ; /* remove fomantic over 100% width */
2023-03-30 14:06:10 +02:00
}
2023-03-15 03:20:19 +01:00
. repository . diff-stats {
clear : both ;
margin-bottom : 5 px ;
2023-03-30 14:06:10 +02:00
max-height : 200 px ;
height : fit-content ;
2023-03-15 03:20:19 +01:00
overflow : auto ;
padding-left : 0 ;
}
. repository . diff-stats li {
list-style : none ;
padding-bottom : 4 px ;
margin-bottom : 4 px ;
padding-left : 6 px ;
}
. repository . diff-stats li + li {
border-top : 1 px solid var ( - - color - secondary ) ;
}
. repository . repo-search-result {
padding-top : 10 px ;
padding-bottom : 10 px ;
}
. repository . repo-search-result . lines-num a {
color : inherit ;
}
. repository . quickstart . guide . item {
padding : 1 em ;
}
. repository . quickstart . guide . item small {
2023-05-22 01:37:32 +02:00
font-weight : var ( - - font - weight - normal ) ;
2023-03-15 03:20:19 +01:00
}
2023-06-18 12:31:42 +02:00
. repository . activity-header {
display : flex ;
justify-content : space-between ;
gap : 8 px ;
flex-wrap : wrap ;
}
2023-04-29 18:44:52 +08:00
/* if the element is for a checkbox, then it should have a padding-left to align to the checkbox's text */
. repository . settings . branches . branch-protection . ui . checkbox . help ,
. repository . settings . branches . branch-protection . checkbox-sub-item {
padding-left : 26 px ;
2023-03-15 03:20:19 +01:00
}
2023-05-17 16:11:13 +08:00
. repository . settings . branches . branch-protection . status-check-matched-mark {
2023-05-22 01:37:32 +02:00
font-weight : var ( - - font - weight - semibold ) ;
2023-05-17 16:11:13 +08:00
font-style : italic ;
}
2023-03-15 03:20:19 +01:00
. repository . settings . webhook . events . column {
padding-bottom : 0 ;
}
. repository . settings . webhook . events . help {
font-size : 13 px ;
margin-left : 26 px ;
padding-top : 0 ;
}
. repository . ui . fluid . action . input . ui . search . action . input {
flex : auto ;
}
. repository . repository-summary {
2023-09-10 18:27:23 +08:00
box-shadow : none ;
2023-03-15 03:20:19 +01:00
}
2023-09-10 18:27:23 +08:00
. repository . repository-summary . segment . sub-menu {
border : none ;
display : flex ;
align-items : center ;
2023-09-21 21:16:14 +08:00
padding : 0 ;
2023-09-10 18:27:23 +08:00
overflow : hidden ;
2023-03-15 03:20:19 +01:00
}
2023-09-10 18:27:23 +08:00
. repository . repository-summary . sub-menu . item {
flex : 1 ;
2024-12-11 23:54:42 +08:00
height : 33 px ; /* match search bar height, need to be improved in the future to use some consistent methods */
2023-09-10 18:27:23 +08:00
line-height : var ( - - line - height - default ) ;
2023-03-15 03:20:19 +01:00
display : flex ;
2023-09-10 18:27:23 +08:00
align-items : center ;
justify-content : center ;
gap : 0.25 em ;
2023-09-21 21:16:14 +08:00
padding : 0 0.5 em ; /* make the UI look better for narrow (mobile) view */
text-decoration : none ;
2023-03-15 03:20:19 +01:00
}
2023-09-10 18:27:23 +08:00
. repository . repository-summary . sub-menu . item . active {
background : var ( - - color - secondary ) ;
2023-03-15 03:20:19 +01:00
}
# cite-repo-modal # citation-panel {
2024-03-15 03:38:13 +01:00
display : flex ;
width : 100 % ;
2023-03-15 03:20:19 +01:00
}
# cite-repo-modal # citation-panel input {
border-radius : 0 ;
padding : 5 px 10 px ;
width : 50 % ;
line-height : 1.4 ;
}
# cite-repo-modal # citation-panel . citation . button {
font-size : 13 px ;
padding : 7.5 px 5 px ;
}
# cite-repo-modal # citation-panel # citation-copy-content {
border-radius : 0 ;
padding : 5 px 10 px ;
font-size : 1.2 em ;
line-height : 1.4 ;
2024-03-15 03:38:13 +01:00
flex : 1 ;
2023-03-15 03:20:19 +01:00
}
# cite-repo-modal # citation-panel # citation-copy-apa ,
# cite-repo-modal # citation-panel # citation-copy-bibtex {
border-right : none ;
}
# cite-repo-modal # citation-panel # goto-citation-btn {
border-left : none ;
}
# cite-repo-modal # citation-panel > : first-child {
border-radius : var ( - - border - radius ) 0 0 var ( - - border - radius ) !important ;
}
# cite-repo-modal # citation-panel > : last-child {
border-radius : 0 var ( - - border - radius ) var ( - - border - radius ) 0 !important ;
}
# cite-repo-modal # citation-panel . icon . button {
padding : 0 10 px ;
}
. user-cards . list {
padding : 0 ;
display : flex ;
flex-wrap : wrap ;
}
. user-cards . list . item {
list-style : none ;
width : 32 % ;
margin : 10 px 10 px 10 px 0 ;
padding-bottom : 14 px ;
float : left ;
}
. user-cards . list . item . avatar {
float : left ;
display : block ;
margin-right : 10 px ;
}
. user-cards . list . item . name {
margin-top : 0 ;
margin-bottom : 0 ;
2023-05-22 01:37:32 +02:00
font-weight : var ( - - font - weight - normal ) ;
2023-03-15 03:20:19 +01:00
}
. user-cards . list . item . meta {
margin-top : 5 px ;
}
2023-09-13 00:44:48 +08:00
# search-user-box . results . result . image {
2024-02-01 18:10:16 +01:00
order : 0 ;
margin-right : 12 px ;
2023-03-15 03:20:19 +01:00
width : 2 em ;
height : 2 em ;
2024-02-01 18:10:16 +01:00
min-width : 2 em ;
min-height : 2 em ;
2023-03-15 03:20:19 +01:00
}
# search-user-box . results . result . content {
2024-02-01 18:10:16 +01:00
margin : 0 ; /* remove margin reserved for avatar because we move it to left via `order: 0` */
2023-03-15 03:20:19 +01:00
}
. ui . menu . item > img : not ( . ui ) {
width : auto ;
}
. page . buttons {
padding-top : 15 px ;
}
2024-04-10 08:13:22 +02:00
. commit-header-buttons {
display : flex ;
gap : 4 px ;
align-items : flex-start ;
white-space : nowrap ;
}
@ media ( max-width : 767 . 98px ) {
. commit-header-buttons {
flex-direction : column ;
align-items : stretch ;
}
}
2023-03-15 03:20:19 +01:00
. settings . webhooks . list > . item : not ( : first-child ) ,
. settings . githooks . list > . item : not ( : first-child ) ,
2023-04-28 08:08:47 +08:00
. settings . actions . list > . item : not ( : first-child ) {
2023-03-15 03:20:19 +01:00
padding : 0.25 rem 1 rem ;
margin : 12 px -1 rem -1 rem ;
}
. settings . list > . item : not ( : first-child ) {
border-top : 1 px solid var ( - - color - secondary ) ;
padding : 1 rem ;
margin : 16 px -1 rem -1 rem ;
}
. settings . list > . item > . svg {
display : table-cell ;
}
. settings . list > . item > . svg + . content {
display : table-cell ;
padding : 0 0 0 0.5 em ;
vertical-align : top ;
}
. settings . list > . item . info {
margin-top : 10 px ;
}
. settings . list > . item . info . tab . segment {
border : 0 ;
padding : 10 px 0 0 ;
}
. comment : target . comment-container {
border-color : var ( - - color - primary ) !important ;
box-shadow : 0 0 0 3 px var ( - - color - primary - alpha -30 ) !important ;
}
2025-11-19 04:02:41 +01:00
. comment : target . comment-header :: before {
2023-03-15 03:20:19 +01:00
border-right-color : var ( - - color - primary ) !important ;
2025-11-19 04:02:41 +01:00
filter : drop-shadow ( -4 px 0 0 var ( - - color - primary - alpha -30 ) ) !important ;
2023-03-15 03:20:19 +01:00
}
2026-01-12 13:29:35 +01:00
. code-comment : target {
2023-03-15 03:20:19 +01:00
border-color : var ( - - color - primary ) !important ;
border-radius : var ( - - border - radius ) !important ;
box-shadow : 0 0 0 3 px var ( - - color - primary - alpha -30 ) !important ;
}
. code-comment : target . content {
box-shadow : none !important ;
}
. comment-header {
background : var ( - - color - box - header ) ;
2025-01-25 01:09:57 +08:00
border-bottom : 1 px solid var ( - - color - secondary ) ;
2025-07-10 00:46:51 +08:00
padding : 0.5 em 1 rem ;
2023-03-15 03:20:19 +01:00
position : relative ;
2023-05-28 03:34:18 +02:00
color : var ( - - color - text ) ;
2023-03-15 03:20:19 +01:00
display : flex ;
justify-content : space-between ;
align-items : center ;
2025-07-10 00:46:51 +08:00
flex-wrap : wrap ;
gap : 0.25 em ;
2023-03-15 03:20:19 +01:00
}
2025-11-19 04:02:41 +01:00
. comment-header . avatar-content-left-arrow {
min-height : 41 px ; /* for a comment header with left arrow, the arrow is absolutely positioned, but the header content varies (for example: no "roles", etc), so it needs a min-height */
}
2025-10-21 13:19:29 +08:00
. comment-header . avatar-content-left-arrow :: after {
border-right-color : var ( - - color - box - header ) ;
}
2023-03-15 03:20:19 +01:00
. comment-header . arrow-top :: before ,
. comment-header . arrow-top :: after {
transform : rotate ( 90 deg ) ;
}
. comment-header . arrow-top :: before {
top : -9 px ;
left : 6 px ;
}
. comment-header . arrow-top :: after {
top : -8 px ;
left : 7 px ;
}
2025-07-10 00:46:51 +08:00
. comment-header-left ,
. comment-header-right {
display : flex ;
align-items : center ;
2025-11-19 04:02:41 +01:00
gap : 6 px ;
2023-06-21 18:08:12 +02:00
}
. comment-header-right {
2025-07-10 00:46:51 +08:00
flex : 1 ;
justify-content : end ;
2023-03-15 03:20:19 +01:00
}
2025-11-19 04:02:41 +01:00
. comment-header-right > . item . action {
padding : 4 px ; /* add some padding to make click area larger for the "item action ... ui dropdown" items */
}
2023-03-15 03:20:19 +01:00
. comment-body {
background : var ( - - color - box - body ) ;
border : none !important ;
width : 100 % !important ;
max-width : 100 % !important ;
margin : 0 !important ;
2023-04-07 23:30:04 +02:00
padding : 1 em ;
2023-03-21 22:38:04 +01:00
}
2023-03-15 03:20:19 +01:00
. stats-table {
display : table ;
width : 100 % ;
2024-04-14 11:21:16 +02:00
margin : 6 px 0 ;
border-spacing : 2 px ;
2023-03-15 03:20:19 +01:00
}
. stats-table . table-cell {
display : table-cell ;
}
. stats-table . table-cell . tiny {
2024-04-14 11:21:16 +02:00
height : 8 px ;
}
. stats-table . table-cell : first-child {
border-top-left-radius : 4 px ;
border-bottom-left-radius : 4 px ;
}
. stats-table . table-cell : last-child {
border-top-right-radius : 4 px ;
border-bottom-right-radius : 4 px ;
2023-03-15 03:20:19 +01:00
}
. repo-button-row {
2024-05-02 21:10:49 +02:00
margin : 8 px 0 ;
2023-06-15 23:12:08 +08:00
display : flex ;
align-items : center ;
2024-05-02 21:10:49 +02:00
gap : 8 px ;
2024-12-11 23:54:42 +08:00
flex-wrap : wrap ;
2023-03-15 03:20:19 +01:00
}
2024-05-02 21:10:49 +02:00
. repo-button-row-left ,
. repo-button-row-right {
display : flex ;
align-items : center ;
gap : 0.5 rem ;
2025-04-16 16:14:10 +08:00
flex-wrap : wrap ;
2024-05-02 21:10:49 +02:00
}
2024-12-11 23:54:42 +08:00
. repo-button-row-left {
2025-01-26 19:07:29 +01:00
flex-grow : 1 ;
2024-05-02 21:10:49 +02:00
}
2025-11-30 06:58:15 +03:00
. repo-button-row . ui . button ,
. repo-view-container . ui . button . repo-view-file-tree-toggle {
2024-05-02 21:10:49 +02:00
flex-shrink : 0 ;
margin : 0 ;
2025-04-16 16:14:10 +08:00
min-height : 30 px ;
2023-06-15 23:12:08 +08:00
}
2025-11-30 06:58:15 +03:00
. repo-view-container . ui . button . repo-view-file-tree-toggle {
padding : 0 6 px ;
}
. repo-button-row . repo-file-search-container . ui . input {
height : 30 px ;
}
. repo-button-row . ui . dropdown > . menu {
margin-top : 4 px ;
}
2023-03-15 03:20:19 +01:00
tbody . commit-list {
vertical-align : baseline ;
}
. message-wrapper ,
. author-wrapper {
overflow : hidden ;
text-overflow : ellipsis ;
2024-04-10 08:13:22 +02:00
max-width : 100 % ;
2023-03-15 03:20:19 +01:00
display : inline-block ;
vertical-align : middle ;
}
. author-wrapper {
max-width : 180 px ;
2024-03-26 05:18:58 +09:00
align-self : center ;
2024-04-18 10:34:23 +02:00
white-space : nowrap ;
2023-03-15 03:20:19 +01:00
}
2024-12-29 03:04:56 +03:00
. latest-commit . message-wrapper {
max-width : calc ( 100 % - 2.5 rem ) ;
}
2023-03-15 03:20:19 +01:00
/* in the commit list, messages can wrap so we can use inline */
. commit-list . message-wrapper {
display : inline ;
2023-07-06 23:07:57 +02:00
overflow-wrap : anywhere ;
2023-03-15 03:20:19 +01:00
}
2023-06-09 11:10:51 +02:00
@ media ( max-width : 767 . 98px ) {
2023-03-15 03:20:19 +01:00
tr . commit-list {
width : 100 % ;
}
. author-wrapper {
max-width : 80 px ;
}
}
2023-06-09 11:10:51 +02:00
@ media ( min-width : 768px ) and ( max-width : 991 . 98px ) {
2023-03-15 03:20:19 +01:00
tr . commit-list {
width : 723 px ;
}
}
@ media ( min-width : 992px ) and ( max-width : 1200px ) {
tr . commit-list {
width : 933 px ;
}
}
@ media ( min-width : 1201px ) {
tr . commit-list {
width : 1127 px ;
}
}
. commit-body {
2023-09-04 21:38:59 +08:00
margin : 0.25 em 0 ;
2023-03-15 03:20:19 +01:00
white-space : pre-wrap ;
2024-05-10 20:58:05 +08:00
overflow-wrap : anywhere ;
2023-03-15 03:20:19 +01:00
line-height : initial ;
}
2025-11-30 06:58:15 +03:00
. commit-body a . commit code ,
. commit-summary a . commit code {
/* these links are generated by the render: <a class="commit" href="...">...</a> */
background : inherit ;
}
2023-03-15 03:20:19 +01:00
. git-notes . top {
text-align : left ;
}
. comment-diff-data {
background : var ( - - color - code - bg ) ;
2023-09-28 16:43:20 +08:00
min-height : 12 em ;
2023-03-15 03:20:19 +01:00
max-height : calc ( 100 vh - 10.5 rem ) ;
overflow-y : auto ;
2024-06-03 19:21:45 +02:00
tab-size : 4 ;
2023-03-15 03:20:19 +01:00
}
. comment-diff-data pre {
line-height : 18 px ;
2023-09-28 16:43:20 +08:00
margin : 1 em ;
2023-03-15 03:20:19 +01:00
white-space : pre-wrap ;
2025-04-06 17:13:02 +08:00
overflow-wrap : anywhere ;
2023-03-15 03:20:19 +01:00
}
2025-07-13 22:52:35 +08:00
. content-history-detail-dialog . header . ui . avatar {
2023-03-15 03:20:19 +01:00
position : relative ;
top : -2 px ;
}
2023-03-26 19:31:26 +08:00
# repo-topics . repo-topic {
2023-05-22 01:37:32 +02:00
font-weight : var ( - - font - weight - normal ) ;
2023-03-15 03:20:19 +01:00
cursor : pointer ;
2024-03-31 18:39:50 +03:00
margin : 0 ;
2024-12-06 23:29:04 +09:00
display : inline-block !important ;
2023-03-15 03:20:19 +01:00
}
# new-dependency-drop-list . ui . selection . dropdown {
min-width : 0 ;
width : 100 % ;
2023-08-28 21:43:59 +02:00
border-radius : var ( - - border - radius ) 0 0 var ( - - border - radius ) ;
2023-03-15 03:20:19 +01:00
border-right : 0 ;
white-space : nowrap ;
}
# new-dependency-drop-list . text {
width : 100 % ;
overflow : hidden ;
}
. tag-code {
height : 28 px ;
}
. tag-code ,
. tag-code td ,
2024-04-26 21:37:21 +02:00
. tag-code . line-expanded {
2023-03-15 03:20:19 +01:00
background-color : var ( - - color - box - body - highlight ) ;
vertical-align : middle ;
}
2024-04-29 22:53:15 +02:00
/* fix bottom border radius on diff files */
. diff-file-body tr . tag-code : last-child {
background : none ;
}
. diff-file-body tr . tag-code : last-child > td {
background : var ( - - color - box - body - highlight ) ;
}
. diff-file-body tr . tag-code : last-child td : first-child ,
. diff-file-body tr . tag-code : last-child td : first-child * {
border-bottom-left-radius : 3 px ;
}
. diff-file-body tr . tag-code : last-child td : last-child ,
. diff-file-body tr . tag-code : last-child td : last-child * {
border-bottom-right-radius : 3 px ;
}
2023-03-15 03:20:19 +01:00
. resolved-placeholder {
2024-05-28 15:41:37 +02:00
display : flex ;
align-items : center ;
2025-04-19 16:43:22 +08:00
justify-content : space-between ;
margin : 4 px ;
padding : 8 px ;
border : 1 px solid var ( - - color - secondary ) ;
border-radius : var ( - - border - radius ) ;
background : var ( - - color - box - header ) ;
2023-03-15 03:20:19 +01:00
}
. resolved-placeholder + . comment-code-cloud {
padding-top : 0 !important ;
}
2024-04-26 21:37:21 +02:00
. line-expanded {
background-color : var ( - - color - secondary - alpha -20 ) ;
2023-03-15 03:20:19 +01:00
}
. issue-keyword {
border-bottom : 1 px dotted var ( - - color - text - light -3 ) !important ;
}
. issue-keyword : hover {
border-bottom : none !important ;
}
. file-header {
align-items : center ;
display : flex ;
justify-content : space-between ;
overflow-x : auto ;
padding : 6 px 12 px !important ;
font-size : 13 px !important ;
}
. file-info {
display : flex ;
align-items : center ;
}
. file-info-entry {
display : flex ;
align-items : center ;
width : max-content ;
2025-10-16 15:12:54 +05:30
gap : 0.25 em ;
2023-03-15 03:20:19 +01:00
}
. file-info-entry + . file-info-entry {
border-left : 1 px solid currentcolor ;
margin-left : 8 px ;
padding-left : 8 px ;
}
# diff-container {
display : flex ;
}
# diff-file-boxes {
flex : 1 ;
max-width : 100 % ;
2023-10-25 00:47:17 +02:00
display : flex ;
flex-direction : column ;
gap : 8 px ;
2023-03-15 03:20:19 +01:00
}
# diff-file-tree {
2023-03-30 14:06:10 +02:00
flex : 0 0 20 % ;
2023-03-15 03:20:19 +01:00
max-width : 380 px ;
line-height : inherit ;
position : sticky ;
padding-top : 0 ;
top : 47 px ;
2023-03-30 14:06:10 +02:00
max-height : calc ( 100 vh - 47 px ) ;
2023-03-15 03:20:19 +01:00
height : 100 % ;
overflow-y : auto ;
}
. ui . message . unicode-escape-prompt {
margin-bottom : 0 ;
border-radius : 0 ;
display : flex ;
flex-direction : column ;
2025-06-22 18:53:33 +08:00
gap : 0.5 em ;
2023-03-15 03:20:19 +01:00
}
/* fomantic's last-child selector does not work with hidden last child */
. ui . buttons . unescape-button {
border-top-right-radius : 0.28571429 rem ;
border-bottom-right-radius : 0.28571429 rem ;
}
. webhook-info {
padding : 7 px 12 px ;
margin : 10 px 0 ;
background-color : var ( - - color - markup - code - block ) ;
border : 1 px solid var ( - - color - secondary ) ;
2023-08-28 21:43:59 +02:00
border-radius : var ( - - border - radius ) ;
2023-03-15 03:20:19 +01:00
font-size : 13 px ;
line-height : 1.5 ;
overflow : auto ;
}
. title_wip_desc {
margin-top : 1 em ;
}
2026-01-12 13:29:35 +01:00
. diff-file-box : target {
border-color : var ( - - color - primary ) !important ;
border-radius : var ( - - border - radius ) !important ;
box-shadow : 0 0 0 3 px var ( - - color - primary - alpha -30 ) !important ;
}
2023-06-01 12:47:28 +02:00
. diff-file-header {
2023-06-09 10:37:47 +02:00
padding : 5 px 8 px !important ;
2024-05-28 15:41:37 +02:00
display : flex ;
justify-content : space-between ;
align-items : center ;
flex-wrap : wrap ;
2026-01-12 13:29:35 +01:00
gap : 0.5 em ;
/* prevent borders from being visible behind top corners when sticky and scrolled,
this "shadow" is used to use body's color to cover the scrolled-up left and right borders at corners */
box-shadow : 0 -1 px 0 1 px var ( - - color - body ) ;
2024-05-28 15:41:37 +02:00
}
2026-01-12 13:29:35 +01:00
. diff-file-box : target . diff-file-header {
box-shadow : unset ; /* when targeted, still use the parent's box-shadow, remove the patched above */
2024-05-28 15:41:37 +02:00
}
. diff-file-header . file-link {
max-width : fit-content ;
display : -webkit- box ;
2025-08-08 18:52:49 +02:00
-webkit- box-orient : vertical ;
2024-05-28 15:41:37 +02:00
-webkit- line-clamp : 2 ;
overflow : hidden ;
overflow-wrap : anywhere ;
}
. diff-file-header . button {
padding : 0 12 px ;
flex : 0 0 auto ;
margin-right : 0 ;
height : 30 px ;
}
@ media ( max-width : 767 . 98px ) {
. diff-file-header {
flex-direction : column ;
align-items : stretch ;
2026-01-12 13:29:35 +01:00
gap : 0 ;
2024-05-28 15:41:37 +02:00
}
2023-06-01 12:47:28 +02:00
}
2023-03-15 03:20:19 +01:00
. diff-file-box [ data-folded = "true" ] . diff-file-body {
display : none ;
}
. diff-file-box [ data-folded = "true" ] . diff-file-header {
border-radius : var ( - - border - radius ) !important ;
}
. ui . attached . header . diff-file-header . sticky-2nd-row {
position : sticky ;
2023-09-28 18:00:26 +08:00
top : 44 px ; /* match .repository .diff-detail-box */
2023-03-15 03:20:19 +01:00
z-index : 7 ;
}
2023-06-01 12:47:28 +02:00
. diff-file-name {
2023-03-15 03:20:19 +01:00
flex : auto ;
min-width : 100 px ;
}
2023-06-01 12:47:28 +02:00
. diff-file-name . ui . label {
margin-left : 0 !important ;
}
2023-03-15 03:20:19 +01:00
. diff-stats-bar {
display : inline-block ;
2026-01-15 07:18:33 +01:00
background-color : var ( - - color - diff - removed - fg ) ; /* the background is used as "text foreground color" */
2023-03-15 03:20:19 +01:00
height : 12 px ;
2024-04-27 13:22:55 +02:00
width : 44 px ;
2023-03-15 03:20:19 +01:00
}
. diff-stats-bar . diff-stats-add-bar {
2026-01-15 07:18:33 +01:00
background-color : var ( - - color - diff - added - fg ) ;
2023-03-15 03:20:19 +01:00
height : 100 % ;
}
. ui . form . right . ui . button {
margin-left : 0.25 em ;
margin-right : 0 ;
}
. removed-code {
2026-03-31 23:50:45 +02:00
color : var ( - - color - text ) ;
2023-03-15 03:20:19 +01:00
background : var ( - - color - diff - removed - word - bg ) ;
}
2026-03-31 23:50:45 +02:00
. removed-code span {
color : inherit !important ;
}
2023-03-15 03:20:19 +01:00
. added-code {
2026-03-31 23:50:45 +02:00
color : var ( - - color - text ) ;
2023-03-15 03:20:19 +01:00
background : var ( - - color - diff - added - word - bg ) ;
}
2026-03-31 23:50:45 +02:00
. added-code span {
color : inherit !important ;
}
2023-03-15 03:20:19 +01:00
. code-diff-unified . del-code ,
. code-diff-unified . del-code td ,
. code-diff-split . del-code . lines-num-old ,
. code-diff-split . del-code . lines-escape-old ,
. code-diff-split . del-code . lines-type-marker-old ,
. code-diff-split . del-code . lines-code-old {
background : var ( - - color - diff - removed - row - bg ) ;
border-color : var ( - - color - diff - removed - row - border ) ;
}
. code-diff-unified . add-code ,
. code-diff-unified . add-code td ,
. code-diff-split . add-code . lines-type-marker-new ,
. code-diff-split . add-code . lines-escape-new ,
. code-diff-split . add-code . lines-code-new ,
. code-diff-split . del-code . add-code . lines-type-marker-new ,
. code-diff-split . del-code . add-code . lines-escape-new ,
. code-diff-split . del-code . add-code . lines-code-new {
background : var ( - - color - diff - added - row - bg ) ;
border-color : var ( - - color - diff - added - row - border ) ;
}
. code-diff-split . del-code . lines-type-marker-new ,
. code-diff-split . del-code . lines-code-new ,
. code-diff-split . del-code . lines-escape-new ,
. code-diff-split . add-code . lines-escape-old ,
. code-diff-split . add-code . lines-type-marker-old ,
. code-diff-split . add-code . lines-code-old {
background : var ( - - color - diff - inactive ) ;
}
2024-04-26 21:37:21 +02:00
. code-diff-split . add-code . lines-num . lines-num-old ,
. code-diff-split . del-code . lines-num . lines-num-new {
background : var ( - - color - diff - inactive ) ;
}
. code-diff-unified . del-code . lines-num ,
. code-diff-split . del-code . lines-num {
background : var ( - - color - diff - removed - linenum - bg ) ;
color : var ( - - color - text ) ;
}
. code-diff-unified . add-code . lines-num ,
. code-diff-split . add-code . lines-num ,
. code-diff-split . del-code . add-code . lines-num {
background : var ( - - color - diff - added - linenum - bg ) ;
color : var ( - - color - text ) ;
}
2023-03-15 03:20:19 +01:00
. code-diff-split tbody tr td : nth-child ( 5 ) ,
. code-diff-split tbody tr td . add-comment-right {
border-left : 1 px solid var ( - - color - secondary ) ;
}
2023-06-26 11:57:36 +02:00
. migrate-entries {
display : grid !important ;
grid-template-columns : repeat ( 3 , 1 fr ) ;
gap : 25 px ;
margin : 0 !important ;
}
@ media ( max-width : 767 . 98px ) {
. migrate-entries {
grid-template-columns : repeat ( 1 , 1 fr ) ;
}
}
. migrate-entry {
2023-03-15 03:20:19 +01:00
transition : all 0.1 s ease-in-out ;
box-shadow : none !important ;
border : 1 px solid var ( - - color - secondary ) ;
2023-06-26 11:57:36 +02:00
color : var ( - - color - text ) !important ;
width : auto !important ;
margin : 0 !important ;
2023-03-15 03:20:19 +01:00
}
2023-06-26 11:57:36 +02:00
. migrate-entry : hover {
2023-03-15 03:20:19 +01:00
transform : scale ( 105 % ) ;
box-shadow : 0 0.5 rem 1 rem var ( - - color - shadow ) !important ;
}
2023-07-04 19:45:45 +02:00
. commits-table . commits-table-right form {
display : flex ;
align-items : center ;
gap : 0.75 em ;
justify-content : center ;
flex-wrap : wrap ;
}
2023-06-09 11:10:51 +02:00
@ media ( max-width : 767 . 98px ) {
2023-03-15 03:20:19 +01:00
. repository . view . issue . comment-list . timeline ,
. repository . view . issue . comment-list . timeline-item {
margin-left : 0 ;
}
. repository . view . issue . comment-list . timeline :: before {
left : 14 px ;
}
. repository . view . issue . comment-list . timeline . inline-timeline-avatar {
display : flex ;
margin-bottom : auto ;
2023-05-10 11:16:44 +02:00
margin-left : 6 px ;
margin-right : 2 px ;
2023-03-15 03:20:19 +01:00
}
. repository . view . issue . comment-list . timeline . comment-header {
padding-left : 4 px ;
}
/* Don't show the general avatar, we show the inline avatar on mobile.
* And don't show the role labels, there's no place for that. */
. repository . view . issue . comment-list . timeline . timeline-avatar ,
. repository . view . issue . comment-list . timeline . comment-header-right . role-label {
display : none ;
}
. commit-header h3 {
flex-basis : auto !important ;
margin-bottom : 0.5 rem !important ;
}
. commits-table {
flex-direction : column ;
}
. commits-table . commits-table-left {
align-items : initial !important ;
margin-bottom : 6 px ;
}
. commits-table . commits-table-right form > div : nth-child ( 1 ) {
2023-07-04 19:45:45 +02:00
order : 1 ; /* the "commit search" input */
2023-03-15 03:20:19 +01:00
}
. commits-table . commits-table-right form > div : nth-child ( 2 ) {
2023-07-04 19:45:45 +02:00
order : 3 ; /* the "search all" checkbox */
2023-03-15 03:20:19 +01:00
}
. commits-table . commits-table-right form > button : nth-child ( 3 ) {
2023-07-04 19:45:45 +02:00
order : 2 ; /* the "search" button */
2023-03-15 03:20:19 +01:00
}
. commit-table {
overflow-x : auto ;
}
. commit-table td . sha ,
. commit-table th . sha {
display : none !important ;
}
}
2023-11-02 23:49:02 +09:00
. commit-status-header {
2023-11-08 02:53:35 +08:00
/* reset the default ".ui.attached.header" styles, to use the outer border */
border : none !important ;
/* add a bottom border to make sure the there is always a divider between the header and list when the list is scrolling */
border-bottom : 1 px solid var ( - - color - secondary ) !important ;
/* use negative margin to avoid the newly added border conflict with the list's top border */
margin : 0 0 -1 px !important ;
2023-03-15 03:20:19 +01:00
}
2023-11-02 23:49:02 +09:00
. commit-status-list {
2023-11-08 02:53:35 +08:00
max-height : 240 px ; /* fit exactly 6 items, commit-status-item.height * 6 */
2023-11-02 23:49:02 +09:00
overflow-x : hidden ;
transition : max-height .2 s ;
2023-03-15 03:20:19 +01:00
}
2023-11-02 23:49:02 +09:00
. commit-status-item {
2023-11-08 02:53:35 +08:00
height : 40 px ;
padding : 0 10 px ;
2023-03-15 03:20:19 +01:00
display : flex ;
2023-11-02 23:49:02 +09:00
gap : 8 px ;
align-items : center ;
2023-11-08 02:53:35 +08:00
}
. commit-status-item + . commit-status-item {
2023-11-02 23:49:02 +09:00
border-top : 1 px solid var ( - - color - secondary ) ;
}
. commit-status-item . commit-status {
flex-shrink : 0 ;
2023-03-15 03:20:19 +01:00
}
2023-11-02 23:49:02 +09:00
. commit-status-item . status-context {
color : var ( - - color - text ) ;
flex : 1 ;
2023-03-15 03:20:19 +01:00
}
2023-11-02 23:49:02 +09:00
. commit-status-item . status-details {
2023-03-15 03:20:19 +01:00
display : flex ;
align-items : center ;
justify-content : flex-end ;
2024-04-05 13:11:26 +02:00
gap : 8 px ;
2023-03-15 03:20:19 +01:00
}
2023-06-09 11:10:51 +02:00
@ media ( max-width : 767 . 98px ) {
2023-11-02 23:49:02 +09:00
. commit-status-item . status-details {
2023-03-15 03:20:19 +01:00
flex-direction : column ;
align-items : flex-end ;
justify-content : center ;
}
}
2023-11-02 23:49:02 +09:00
. commit-status-item . status-details > span {
2023-03-15 03:20:19 +01:00
padding-right : 0.5 em ; /* To match the alignment with the "required" label */
}
2023-03-17 00:32:25 +08:00
2026-03-04 21:23:17 +08:00
. username-display {
max-width : 100 % ; /* the inner part might have "gt-ellipsis" */
min-width : 0 ; /* if it is the top flex container, "max-width" works; but if it is inside another flex container, the parent needs to handle the x-axis and here also needs "min-width" */
display : inline-flex ;
gap : var ( - - gap - inline ) ;
align-items : center ;
}
. username-display > . username-fullname {
2023-03-17 00:32:25 +08:00
color : var ( - - color - text - light -2 ) ;
}
2023-05-25 15:17:19 +02:00
# issue-pins {
display : grid ;
grid-template-columns : repeat ( 3 , 1 fr ) ;
gap : 8 px ;
margin-bottom : 8 px ;
}
2023-06-18 12:31:42 +02:00
@ media ( max-width : 767 . 98px ) {
# issue-pins {
grid-template-columns : repeat ( 1 , 1 fr ) ;
}
}
2023-07-21 19:20:04 +08:00
# cherry-pick-modal . scrolling . menu {
max-height : 200 px ;
}
2024-03-15 11:43:10 +08:00
2024-05-02 18:45:23 +08:00
. branch-selector-dropdown {
max-width : 100 % ;
2024-03-15 11:43:10 +08:00
}
2024-05-02 18:45:23 +08:00
. ui . dropdown . branch-selector-dropdown > . menu {
margin-top : 4 px ;
}
2024-05-06 15:17:22 +08:00
. ui . dropdown . branch-selector-dropdown . scrolling . menu {
max-width : min ( 400 px , 90 vw ) ;
}
2025-04-16 16:14:10 +08:00
. branch-selector-dropdown . ui . button . branch-dropdown-button {
2024-05-02 18:45:23 +08:00
margin : 0 ;
max-width : 340 px ;
line-height : var ( - - line - height - default ) ;
2025-04-16 16:14:10 +08:00
padding : 0 0.5 em 0 0.75 em ;
2024-05-02 18:45:23 +08:00
}
/* FIXME: These media selectors are not ideal (just keep them from old code).
There are many different pages, some need the max-width while some others don't,
they should be tested and improved in the future. */
2024-12-06 23:29:04 +09:00
@ media ( min-width : 768px ) and ( max-width : 1235px ) {
2024-05-02 18:45:23 +08:00
. branch-selector-dropdown . branch-dropdown-button {
2024-12-06 23:29:04 +09:00
max-width : 301 px ;
2024-05-02 18:45:23 +08:00
}
}
@ media ( max-width : 767 . 98px ) {
. branch-selector-dropdown . branch-dropdown-button {
max-width : 165 px ;
}
2024-03-15 11:43:10 +08:00
}
2024-05-02 18:45:23 +08:00
. branch-selector-dropdown . branch-tag-tab {
padding : 0 10 px ;
}
. branch-selector-dropdown . branch-tag-item {
2024-03-15 11:43:10 +08:00
display : inline-block ;
padding : 10 px ;
border : 1 px solid transparent ;
border-bottom : none ;
}
2024-05-02 18:45:23 +08:00
. branch-selector-dropdown . branch-tag-item . active {
2024-03-15 11:43:10 +08:00
border-color : var ( - - color - secondary ) ;
background : var ( - - color - menu ) ;
border-top-left-radius : var ( - - border - radius ) ;
border-top-right-radius : var ( - - border - radius ) ;
}
2024-05-02 18:45:23 +08:00
. branch-selector-dropdown . branch-tag-divider {
margin-top : -1 px !important ;
2024-03-15 11:43:10 +08:00
border-top : 1 px solid var ( - - color - secondary ) ;
}
2024-05-02 18:45:23 +08:00
. branch-selector-dropdown . scrolling . menu {
border-top : none !important ;
}
. branch-selector-dropdown . menu . item . rss-icon {
2024-05-06 15:17:22 +08:00
position : absolute ;
right : 4 px ;
2024-05-02 18:45:23 +08:00
visibility : hidden ; /* only show RSS icon on hover */
}
. branch-selector-dropdown . menu . item : hover . rss-icon {
visibility : visible ;
}
. branch-selector-dropdown . scrolling . menu . loading-indicator {
height : 4 em ;
}