Last change
on this file was d7b7f00, checked in by Gorazd Biskoski <gorazdbiskoskii@…>, 4 weeks ago |
Add project
|
-
Property mode
set to
100644
|
File size:
2.6 KB
|
Line | |
---|
1 | .cardContainer {
|
---|
2 | display: flex;
|
---|
3 | align-items: center;
|
---|
4 | height: 130px;
|
---|
5 | margin-top: 30px;
|
---|
6 | border-radius: 10px;
|
---|
7 | border: 2px solid #e0a500;
|
---|
8 | box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
---|
9 | background-color: #fff;
|
---|
10 | transition: transform 0.3s;
|
---|
11 | }
|
---|
12 |
|
---|
13 | .cardContainer:hover {
|
---|
14 | transform: scale(1.01);
|
---|
15 | }
|
---|
16 |
|
---|
17 | .userReviewIndicator {
|
---|
18 | font-weight: bold;
|
---|
19 | color: lightsalmon;
|
---|
20 | display: block;
|
---|
21 | margin-bottom: 5px;
|
---|
22 | }
|
---|
23 |
|
---|
24 | .userFavoriteIndicator {
|
---|
25 | font-weight: bold;
|
---|
26 | color: lightsalmon;
|
---|
27 | display: inline-block;
|
---|
28 | margin-bottom: 5px;
|
---|
29 | }
|
---|
30 |
|
---|
31 | .imgContainer {
|
---|
32 | width: 150px;
|
---|
33 | height: 100%;
|
---|
34 | border-top-left-radius: 8px;
|
---|
35 | border-bottom-left-radius: 8px;
|
---|
36 | overflow: hidden;
|
---|
37 | border-right: 2px solid #e0a500;
|
---|
38 | margin-right: 0;
|
---|
39 | }
|
---|
40 |
|
---|
41 | .img {
|
---|
42 | width: 100%;
|
---|
43 | height: 100%;
|
---|
44 | object-fit: cover;
|
---|
45 | display: block;
|
---|
46 | }
|
---|
47 |
|
---|
48 | .contentContainer {
|
---|
49 | display: flex;
|
---|
50 | justify-content: space-between;
|
---|
51 | align-items: center;
|
---|
52 | width: 100%;
|
---|
53 | padding-left: 15px;
|
---|
54 | }
|
---|
55 |
|
---|
56 | .textSection {
|
---|
57 | width: 300px;
|
---|
58 | padding-right: 10px;
|
---|
59 | flex-grow: 1;
|
---|
60 | }
|
---|
61 |
|
---|
62 | .recipeName {
|
---|
63 | font-size: 1.2rem;
|
---|
64 | color: #333;
|
---|
65 | margin-bottom: 8px;
|
---|
66 | }
|
---|
67 |
|
---|
68 | .reviewText {
|
---|
69 | font-size: 1rem;
|
---|
70 | color: #555;
|
---|
71 | white-space: nowrap;
|
---|
72 | overflow: hidden;
|
---|
73 | text-overflow: ellipsis;
|
---|
74 | width: 100%;
|
---|
75 | }
|
---|
76 |
|
---|
77 | .userFavoriteCuisineText {
|
---|
78 | font-size: 1rem;
|
---|
79 | color: #555;
|
---|
80 | white-space: nowrap;
|
---|
81 | overflow: hidden;
|
---|
82 | text-overflow: ellipsis;
|
---|
83 | margin-left: 10px;
|
---|
84 | }
|
---|
85 |
|
---|
86 | .ratingSection {
|
---|
87 | display: flex;
|
---|
88 | align-items: center;
|
---|
89 | justify-content: flex-end;
|
---|
90 | margin-left: auto;
|
---|
91 | }
|
---|
92 |
|
---|
93 | .starRating {
|
---|
94 | display: flex;
|
---|
95 | }
|
---|
96 |
|
---|
97 | .star {
|
---|
98 | font-size: 1.5rem;
|
---|
99 | color: #ccc;
|
---|
100 | margin-right: 4px;
|
---|
101 | transition: color 0.3s ease;
|
---|
102 | }
|
---|
103 |
|
---|
104 | .star.active {
|
---|
105 | color: #FFA550;
|
---|
106 | }
|
---|
107 |
|
---|
108 | @media (max-width: 768px) {
|
---|
109 | .cardContainer {
|
---|
110 | flex-direction: column;
|
---|
111 | height: auto;
|
---|
112 | margin-top: 20px;
|
---|
113 | }
|
---|
114 |
|
---|
115 | .imgContainer {
|
---|
116 | width: 100%;
|
---|
117 | height: 150px;
|
---|
118 | border-right: none;
|
---|
119 | border-bottom: 2px solid #e0a500;
|
---|
120 | }
|
---|
121 | .textSection {
|
---|
122 | width: 50%;
|
---|
123 | }
|
---|
124 |
|
---|
125 | .description {
|
---|
126 | padding: 10px;
|
---|
127 | overflow-y: auto;
|
---|
128 | }
|
---|
129 |
|
---|
130 | .favoriteButton {
|
---|
131 | width: 100%;
|
---|
132 | height: 40px;
|
---|
133 | }
|
---|
134 |
|
---|
135 | }
|
---|
136 |
|
---|
137 | .favoriteButton {
|
---|
138 | display: inline-flex;
|
---|
139 | margin-right: 15px;
|
---|
140 | align-items: center;
|
---|
141 | justify-content: center;
|
---|
142 | background-color: #FFA550;
|
---|
143 | color: white;
|
---|
144 | border: none;
|
---|
145 | border-radius: 50%;
|
---|
146 | width: 43px;
|
---|
147 | height: 43px;
|
---|
148 | cursor: pointer;
|
---|
149 | font-size: 1.5em;
|
---|
150 | transition: all 0.3s ease;
|
---|
151 | box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
|
---|
152 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.