File tree Expand file tree Collapse file tree 3 files changed +10
-16
lines changed Expand file tree Collapse file tree 3 files changed +10
-16
lines changed Original file line number Diff line number Diff line change 1
1
const FLAKE_COMMENTED_LINE_COLOR = '#fac4c3' ;
2
- const HOVER_LINE_STYLE = '1px solid #0d0d0f' ;
2
+ const HOVER_LINE_COLOR = '#0d0d0f' ;
3
3
4
4
5
5
function removeMark ( lineElement ) {
@@ -20,13 +20,8 @@ function hoverLine(targets, hover) {
20
20
const [ lineTarget , addCommentTarget ] = targets ;
21
21
if ( lineTarget . dataset && lineTarget . dataset . vimbackground === 'true' ) { return ; }
22
22
const commentOpacity = ( hover === true ) ? '1' : '0' ;
23
- let parsedColor = hover ;
24
- if ( hover === true ) {
25
- parsedColor = HOVER_LINE_STYLE ;
26
- } else if ( hover === false ) {
27
- parsedColor = 'none' ;
28
- }
29
- lineTarget . style . border = parsedColor ;
23
+ const parsedColor = ( hover === true ) ? HOVER_LINE_COLOR : '' ;
24
+ lineTarget . style . borderColor = parsedColor ;
30
25
addCommentTarget . style . opacity = commentOpacity ;
31
26
}
32
27
Original file line number Diff line number Diff line change 134
134
overflow : auto;
135
135
padding : 0.75rem ;
136
136
text-align : center;
137
- border-right : # 00000000 8px solid;
138
- border-left : # 00000000 8px solid;
137
+ border-inline : # 00000000 8px solid;
139
138
}
140
139
141
140
.centered {
@@ -474,6 +473,8 @@ button.our-button-narrow, a.our-button-narrow {
474
473
flex-direction : column;
475
474
flex-basis : 70vw ;
476
475
flex-grow : 4 ;
476
+ flex-shrink : 1 ;
477
+ min-width : 0 ;
477
478
}
478
479
479
480
.code-view-container {
@@ -897,12 +898,10 @@ code#user-code {
897
898
flex-direction : row;
898
899
justify-content : start;
899
900
cursor : pointer;
901
+ min-width : 0 ;
900
902
width : 100% ;
901
- /* Nice trick: with flex-grow: 1; and width: 0;
902
- * the line fits the container width
903
- * */
904
- width : 0 ;
905
- flex-grow : 1 ;
903
+ flex-shrink : 1 ;
904
+ border-inline-start : 1px solid # 00000000 ;
906
905
}
907
906
908
907
.grader-add {
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ <h1 id="exercises-head">{{ _('Exercises') }}</h1>
10
10
</ div >
11
11
< div id ="exercises ">
12
12
{%- for exercise in exercises %}
13
- < div class ="exercise " {%- if exercise.grade_color %} style ="border-right: 8px solid {{ exercise.grade_color }}; " {%- endif -%} >
13
+ < div class ="exercise " {%- if exercise.grade_color %} style ="border-inline-start-color: {{ exercise.grade_color }}; " {%- endif -%} >
14
14
< div class ="right-side {{ direction }}-language ">
15
15
< div class ="exercise-number me-3 "> {{ exercise['exercise_number'] }}</ div >
16
16
< div class ="exercise-name "> < div class ="ex-title "> {{ exercise['exercise_name'] | e }}</ div > </ div >
You can’t perform that action at this time.
0 commit comments