@@ -2748,23 +2748,6 @@ tbody.commit-list {
2748
2748
}
2749
2749
}
2750
2750
2751
- .branch-dropdown-button {
2752
- max-width : 340px ;
2753
- vertical-align : bottom !important ;
2754
- }
2755
-
2756
- @media (min-width : 768px ) and (max-width : 991.98px ) {
2757
- .branch-dropdown-button {
2758
- max-width : 185px ;
2759
- }
2760
- }
2761
-
2762
- @media (max-width : 767.98px ) {
2763
- .branch-dropdown-button {
2764
- max-width : 165px ;
2765
- }
2766
- }
2767
-
2768
2751
.commit-status-header {
2769
2752
/* reset the default ".ui.attached.header" styles, to use the outer border */
2770
2753
border : none !important ;
@@ -2841,32 +2824,65 @@ tbody.commit-list {
2841
2824
max-height : 200px ;
2842
2825
}
2843
2826
2844
- /* Branch tag selector - TODO: Merge this into the same selector on repo page */
2845
- .repository .issue-content .issue-content-right .ui .grid .column .row {
2846
- padding : 10px ;
2847
- padding-bottom : 0 ;
2827
+ .branch-selector-dropdown {
2828
+ max-width : 100% ;
2848
2829
}
2849
- .repository .issue-content .issue-content-right .ui .grid .column .muted {
2850
- padding : 0 ;
2830
+
2831
+ .branch-selector-dropdown .branch-dropdown-button {
2832
+ margin : 0 ;
2833
+ max-width : 340px ;
2834
+ }
2835
+
2836
+ /* FIXME: These media selectors are not ideal (just keep them from old code).
2837
+ There are many different pages, some need the max-width while some others don't,
2838
+ they should be tested and improved in the future. */
2839
+ @media (min-width : 768px ) and (max-width : 991.98px ) {
2840
+ .branch-selector-dropdown .branch-dropdown-button {
2841
+ max-width : 185px ;
2842
+ }
2851
2843
}
2852
- .repository .issue-content .issue-content-right .ui .grid .column .muted .text {
2844
+
2845
+ @media (max-width : 767.98px ) {
2846
+ .branch-selector-dropdown .branch-dropdown-button {
2847
+ max-width : 165px ;
2848
+ }
2849
+ }
2850
+
2851
+ .branch-selector-dropdown .branch-tag-tab {
2852
+ padding : 0 10px ;
2853
+ }
2854
+
2855
+ .branch-selector-dropdown .branch-tag-item {
2853
2856
display : inline-block;
2854
2857
padding : 10px ;
2855
- width : 100% ;
2856
- text-align : center;
2857
2858
border : 1px solid transparent;
2858
2859
border-bottom : none;
2859
2860
}
2860
- .repository .issue-content .issue-content-right .ui .grid .column .muted .text .black {
2861
+
2862
+ .branch-selector-dropdown .branch-tag-item .active {
2861
2863
border-color : var (--color-secondary );
2862
2864
background : var (--color-menu );
2863
2865
border-top-left-radius : var (--border-radius );
2864
2866
border-top-right-radius : var (--border-radius );
2865
2867
}
2866
- .repository .issue-content .issue-content-right .ui .dropdown .scrolling .menu {
2867
- border-top : none;
2868
- }
2869
- .repository .issue-content .issue-content-right .branch-tag-divider {
2870
- margin-top : -1px ;
2868
+
2869
+ .branch-selector-dropdown .branch-tag-divider {
2870
+ margin-top : -1px !important ;
2871
2871
border-top : 1px solid var (--color-secondary );
2872
2872
}
2873
+
2874
+ .branch-selector-dropdown .scrolling .menu {
2875
+ border-top : none !important ;
2876
+ }
2877
+
2878
+ .branch-selector-dropdown .menu .item .rss-icon {
2879
+ visibility : hidden; /* only show RSS icon on hover */
2880
+ }
2881
+
2882
+ .branch-selector-dropdown .menu .item : hover .rss-icon {
2883
+ visibility : visible;
2884
+ }
2885
+
2886
+ .branch-selector-dropdown .scrolling .menu .loading-indicator {
2887
+ height : 4em ;
2888
+ }
0 commit comments