-
Notifications
You must be signed in to change notification settings - Fork 0
/
pagestars.css
125 lines (120 loc) · 2.31 KB
/
pagestars.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
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
*{
margin: 0;
padding: 0;
}
.rate {
float: left;
height: 46px;
padding: 0 10px;
}
.rate:not(:checked) > input {
position:absolute;
top:-9999px;
}
.rate:not(:checked) > label {
float:right;
width:1em;
overflow:hidden;
white-space:nowrap;
cursor:pointer;
font-size:30px;
color:#ccc;
}
.rate:not(:checked) > label:before {
content: '★ ';
}
.rate > input:checked ~ label {
color: #ffc700;
}
.rate:not(:checked) > label:hover,
.rate:not(:checked) > label:hover ~ label {
color: #deb217;
}
.rate > input:checked + label:hover,
.rate > input:checked + label:hover ~ label,
.rate > input:checked ~ label:hover,
.rate > input:checked ~ label:hover ~ label,
.rate > label:hover ~ input:checked ~ label {
color: #c59b08;
}
/* Modified from: https://github.com/mukulkant/Star-rating-using-pure-css */
/* Kod till formulär: */
.wrapper {
width: 45%;
height: auto;
margin: 10px auto;
border: 0px solid #cbcbcb;
background: white;
}
/*
* COMMENT FORM
**/
.comment_form {
width: 80%;
margin: 10px auto;
border: 0px solid rgb(36, 24, 20);
background: #b89d75;
padding: 20px;
}
.comment_form label {
display: block;
margin: 5px 0px 5px 0px;
}
.comment_form input, textarea {
padding: 5px;
width: 95%;
}
#submit_btn, #update_btn {
padding: 8px 15px;
color: white;
background: rgb(70, 57, 41);
border: none;
border-radius: 4px;
margin-top: 10px;
}
#update_btn {
background: #817159;
}
/*
* COMMENT DISPLAY AREA
**/
#display_area {
width: 90%;
padding-top: 40px;
margin: 10px auto;
}
.comment_box {
cursor: default;
background: #b89d75;
margin: 100px;
border: 0px solid rgb(54, 33, 16);
padding: 50px 40px;
position: relative;
}
.delete {
position: absolute;
top: 0px;
right: 30px;
color: rgb(109, 25, 25);
display: none;
cursor: pointer;
}
.edit {
position: absolute;
top: 0px;
right: 65px;
color: rgb(255, 181, 138);
display: none;
cursor: pointer;
}
.comment_box:hover .edit, .comment_box:hover .delete {
display: block;
}
.comment_text {
text-align: justify;
}
.display_name {
color: rgb(48, 26, 15);
padding: 40px;
margin: 0px 0px 5px 0px;
}