Last change
on this file was d3cf3a1, checked in by Marija Micevska <marija_micevska@…>, 2 years ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
1.6 KB
|
Line | |
---|
1 | * {
|
---|
2 | box-sizing: border-box;
|
---|
3 | }
|
---|
4 |
|
---|
5 | body {
|
---|
6 | background: linear-gradient(to right, #93A3CE, #1C294E);
|
---|
7 | color: #000029;
|
---|
8 | /*background: rgb(219, 226, 226);*/
|
---|
9 | }
|
---|
10 |
|
---|
11 | .no-gutters {
|
---|
12 | background: floralwhite;
|
---|
13 | border-radius: 5px;
|
---|
14 | box-shadow: rgba(0, 0, 0, 0.56) 0px 22px 70px 4px;
|
---|
15 | }
|
---|
16 |
|
---|
17 | img {
|
---|
18 | width: 100%;
|
---|
19 | height: 100%;
|
---|
20 | object-fit: fill;
|
---|
21 | position: relative;
|
---|
22 | bottom: -30px;
|
---|
23 | }
|
---|
24 |
|
---|
25 | .rating-list {
|
---|
26 | clear: both;
|
---|
27 | float: left;
|
---|
28 | margin: 3rem;
|
---|
29 | }
|
---|
30 |
|
---|
31 | .rating-list ~ .form-list {
|
---|
32 | clear: both;
|
---|
33 | }
|
---|
34 |
|
---|
35 | .rating-field {
|
---|
36 | margin-bottom: 0.5em;
|
---|
37 | }
|
---|
38 |
|
---|
39 | .star-rating {
|
---|
40 | display: block;
|
---|
41 | height: 23px;
|
---|
42 | float: right;
|
---|
43 | color: transparent;
|
---|
44 | background: transparent url("https://i.imgur.com/BhJbWEJ.png") 0 100% no-repeat;
|
---|
45 | position: relative;
|
---|
46 | width: 25px;
|
---|
47 | }
|
---|
48 |
|
---|
49 | .star-rating:before {
|
---|
50 | z-index: 10;
|
---|
51 | position: absolute;
|
---|
52 | width: 0;
|
---|
53 | height: 23px;
|
---|
54 | content: "";
|
---|
55 | background: transparent url("https://i.imgur.com/BhJbWEJ.png") 0 0 no-repeat;
|
---|
56 | top: 0;
|
---|
57 | left: 0;
|
---|
58 | }
|
---|
59 |
|
---|
60 | .star-rating:hover:before {
|
---|
61 | width: 100%;
|
---|
62 | }
|
---|
63 |
|
---|
64 | input[type=radio].rating-radio {
|
---|
65 | position: absolute;
|
---|
66 | margin: 1em 0 0 0.9em;
|
---|
67 | font-size: 0.5em;
|
---|
68 | z-index: -1;
|
---|
69 | visibility: hidden;
|
---|
70 | }
|
---|
71 |
|
---|
72 | .rating-radio--1:checked ~ .star-rating:before {
|
---|
73 | width: 100%;
|
---|
74 | }
|
---|
75 |
|
---|
76 | .rating-radio--2:checked ~ .star-rating:before {
|
---|
77 | width: 100%;
|
---|
78 | }
|
---|
79 |
|
---|
80 | .rating-radio--3:checked ~ .star-rating:before {
|
---|
81 | width: 100%;
|
---|
82 | }
|
---|
83 |
|
---|
84 | .rating-radio--4:checked ~ .star-rating:before {
|
---|
85 | width: 100%;
|
---|
86 | }
|
---|
87 |
|
---|
88 | .rating-radio--5:checked ~ .star-rating:before {
|
---|
89 | width: 100%;
|
---|
90 | }
|
---|
91 |
|
---|
92 | .rating-list .star-rating:hover:before,
|
---|
93 | .rating-list .star-rating:hover ~ .star-rating:before {
|
---|
94 | width: 100%;
|
---|
95 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.