-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathstyle.scss
More file actions
executable file
·163 lines (153 loc) · 2.96 KB
/
Copy pathstyle.scss
File metadata and controls
executable file
·163 lines (153 loc) · 2.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
// --- Main Colours --- //
//Dance to forget
//$color1: #F9D423;
//$color2: #FF4E50;
//Mantle
$color1: #514A9D;
$color2: #24C6DC;
//Emerald Water
//$color1: #56B4D3;
//$color2: #348F50;
$green: #1FAD65;
$red: #FF4E50;
// --- Global vars --- //
$commit_count: 10;
// --- Mixins --- //
@mixin border-radius($radius) {
-webkit-border-radius: $radius;
-moz-border-radius: $radius;
-ms-border-radius: $radius;
border-radius: $radius;
}
@mixin transform($transform) {
-webkit-transform: $transform;
-moz-transform: $transform;
-ms-transform: $transform;
-o-transform: $transform;
transform: $transform;
}
html, body {
margin: 0;
width: 100%;
height: 100%;
}
.commit-list, .diff-view{
height: 100%;
width: 50%;
float: left;
}
.commit-list {
.commit-wrapper {
height: 100% / $commit_count;
width: 100%;
padding: 0;
position: relative;
box-shadow: inset 0px 1px rgba(0, 0, 0, 0.1);
}
@for $i from 1 through $commit_count {
.commit-wrapper:nth-child(#{$i}) {
background-color: mix($color1, $color2, 100% * $i / $commit_count);
}
}
.commit-wrapper.selected .commit {
background-color: rgba(255, 255, 255, 0.95);
}
.commit-wrapper.selected:after {
content:"";
width:0;
height:0;
right: 0;
top: 50%;
@include transform(translateY(-50%));
border-top:20px solid transparent;
border-bottom:20px solid transparent;
border-right:20px solid #FFF;
position: absolute;
}
.commit {
position: absolute;
top: 50%;
left: 50%;
@include transform(translate(-50%,-50%));
box-sizing: content-box;
@include border-radius(10px);
width: 90%;
height: 60%;
background-color: rgba(255, 255, 255, 0.75);
box-shadow: 0px 1px rgba(0, 0, 0, 0.42);
font-size: 16px;
padding: 0.5% 1%;
img {
@include border-radius(5px);
height: 100%;
}
& > div {
display: inline-block;
margin: 0;
font-family: 'Noto Sans', sans-serif;
overflow: hidden;
height: 100%;
line-height: 100%;
vertical-align: middle;
margin-top: -10px;
}
.username {
margin-left: 10px;
margin-right: 10px;
width: 12%;
}
.stats{
width: 12%;
}
.insert-count, .delete-count{
padding: 0;
color: white;
@include border-radius(3px);
float: left;
width: 47%;
text-align: center;
font-family: monospace;
font-size: 80%;
}
.insert-count {
background-color: $green;
}
.delete-count {
background-color: $red;
margin-left: 5px;
}
.message {
font-weight: bold;
padding-left: 10px;
width: 52%;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
.time {
position: absolute;
right: 2%;
top: 45%;
@include transform(translateY(-50%));
color: rgba(0,0,0,0.5);
height: auto;
line-height: auto;
margin: 0;
}
}
}
.diff-view {
overflow: hidden;
pre {
margin: 0 1em 1em 1em;
}
code {
overflow: hidden;
}
.title {
font-family: 'Noto Sans', sans-serif;
font-weight: bold;
font-size: 14px;
margin: 0.5em 1em 0.5em 1em;
}
}