-
Notifications
You must be signed in to change notification settings - Fork 0
/
percentage-bars.css
82 lines (67 loc) · 2.22 KB
/
percentage-bars.css
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
.div-with-info-and-bar {
display: flex;
justify-content: space-evenly;
align-items: center;
}
.bar {
width: 100%;
display: grid;
}
.bar * {
grid-column: 1;
grid-row: 1;
z-index: 3;
}
.fill-bar {
display: flex;
align-items: center;
z-index: 2;
width: 100%;
}
.background-bar {
width: 100%;
background-color: black;
background-image: url("./figures/bg_colors.jpg");
background-repeat: repeat;
background-size: 220px;
filter: grayscale(40%);
z-index: 1;
}
.bar-text {
width: 100%;
overflow: auto;
}
.bar-text p {
white-space: nowrap;
}
.bar,
.fill-bar,
.background-bar {
margin: 0px;
padding: 0px;
border: 0px;
}
/* Para actualizar las barras, entra a https://www.colorzilla.com/gradient-editor/ y piensa en un porcentaje.
La formula es (100/6) * nivel.
* Luego le restas 5 y le sumas 5, y cada uno de esos valores serán las pocisiones de los puntos de opacidad en la barra */
#spanish-bar {
background-color: var(--color-tecmilenio);
}
#english-bar {
background: -moz-linear-gradient(left, rgba(13, 168, 60, 1) 78%, rgba(13, 168, 60, 0) 88%);
background: -webkit-linear-gradient(left, rgba(13, 168, 60, 1) 78%, rgba(13, 168, 60, 0) 88%);
background: linear-gradient(to right, rgba(13, 168, 60, 1) 78%, rgba(13, 168, 60, 0) 88%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#0da83c', endColorstr='#000da83c',GradientType=1 );
}
#esperanto-bar {
background: -moz-linear-gradient(left, rgba(13, 168, 60, 1) 45%, rgba(13, 168, 60, 0) 55%);
background: -webkit-linear-gradient(left, rgba(13, 168, 60, 1) 45%, rgba(13, 168, 60, 0) 55%);
background: linear-gradient(to right, rgba(13, 168, 60, 1) 45%, rgba(13, 168, 60, 0) 55%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#0da83c', endColorstr='#000da83c',GradientType=1 );
}
#german-bar {
background: -moz-linear-gradient(left, rgba(13, 168, 60, 1) 27%, rgba(13, 168, 60, 0) 37%);
background: -webkit-linear-gradient(left, rgba(13, 168, 60, 1) 27%, rgba(13, 168, 60, 0) 37%);
background: linear-gradient(to right, rgba(13, 168, 60, 1) 27%, rgba(13, 168, 60, 0) 37%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#0da83c', endColorstr='#000da83c', GradientType=1 );
}