nurserf commited on
Commit
c87b416
·
verified ·
1 Parent(s): b57236c

/* body {

Browse files

font-family: sans-serif;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background: #f0f0f0;

background: url('bacse.jpg') no-repeat center center fixed;
background-size: cover;
}

*/
.container {
position: relative;
background: white;
padding: 30px;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
width: 400px;

h6 {
text-align: center;
margin-bottom: 20px;
color: #ff0000;
}

input {
width: 95%;
padding: 10px;
margin: 8px 0;
border-radius: 10px;
}

.password-container {
position: relative;
}

.toggle-password {
position: absolute;
right: 10px;
top: 12px;
cursor: pointer;
}

button {
background-color: orange;
color: white;
border: none;
padding: 10px 20px;
border-radius: 5px;
cursor: pointer;
margin: auto;
margin-top: 20px;
display: flex;
align-items: center;
gap: 10px;
background: #f29824;
color: white;
padding: 10px;
border-radius: 5px;
margin-top: 15px;
cursor: pointer;
}

a {
display: block;
text-align: center;
margin-top: 10px;
font-size: 0.9em;
color: #ffffff;
}

.google-sign-in {
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
padding: 10px;
margin-top: 15px;
background-color: white;
border: 1px solid #dadce0;
border-radius: 6px;
cursor: pointer;
font-size: 16px;
font-family: 'Roboto', sans-serif;
font-weight: 500;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
transition: box-shadow 0.2s ease;
width: 100%;
}

.google-sign-in:hover {
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.google-sign-in .icon {
width: 20px;
height: 20px;
}

.google-sign-in {
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
padding: 10px;
margin-top: 15px;
background-color: white;
border: 1px solid #dadce0;
border-radius: 6px;
cursor: pointer;
font-size: 16px;
font-family: 'Roboto', sans-serif;
font-weight: 500;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
width: 100%;
transition: 0.2s;
}

.google-sign-in:hover {
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.google-sign-in .icon {
width: 20px;
height: 20px;
}

/* Crunchyroll-Inspired Design */
.amedi-news {
padding: 60px 20px;
;
/* Ак фон */
background-image: url('https://amediatv.uz/_nuxt/img/trailer.0be2b47.jpg');
font-family: 'Segoe UI', sans-serif;
}

.amedi-news-wrapper {
display: flex;
flex-wrap: wrap;
max-width: 1200px;
margin: 0 auto;
gap: 40px;
align-items: center;
}

.amedi-news-left {
flex: 1 1 500px;
}

.amedi-news-tag {
display: inline-block;
background-color: #f47521;
/* Crunchyroll түсү */
color: #fff;
font-size: 13px;
font-weight: 600;
padding: 6px 14px;
border-radius: 20px;
margin-bottom: 12px;
text-transform: uppercase;
letter-spacing: 1px;
}

.amedi-news-title {
font-size: 30px;
font-weight: 700;
color: #2f3542;
margin-bottom: 15px;
}

.amedi-news-text {
font-size: 16px;
line-height: 1.6;
color: #fffdfd;
}

.amedi-news-right {
flex: 1 1 500px;
}

.amedi-news-video iframe {
width: 100%;
height: 280px;
border-radius: 12px;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Mobile-friendly */
@media (max-width: 300px) {
.amedi-news-wrapper {
flex-direction: column;
align-items: center;
text-align: center;
}

.amedi-news-left,
.amedi-news-right {
width: 100%;
max-width: 480px;
}

.amedi-news-title {
font-size: 24px;
}

.amedi-news-text {
font-size: 14px;
margin-bottom: 20px;
}

.amedi-news-video iframe {
height: 200px;
}
}

@media (max-width: 480px) {
.amedi-news-video iframe {
height: 180px;
}
}

.amedi-news .h2 a {
color: #ffffff;
text-decoration: none;
font-weight: 600;
}

.position_div button {
background: #ffffff;
border: 1px solid #f29824;
border-radius: 6px;
color: #f29824;
display: inline-block;
font-size: 14px;
font-weight: 500;
padding: 8px 15px;
margin-right: 100px;
margin: 20px 0 ;
margin-top: 20px;
}


.position_div button:hover {
background: #f29824;
border: 1px solid #f29824;
color: white;
}

.search-wrapper {
position: relative;
display: inline-flex;
align-items: center;
}

.search-icon {
font-size: 22px;
cursor: pointer;
margin-left: 10px;
color: white;
transition: color 0.3s ease;
}

.search-icon:hover {
color: #ffb703; /* hover эффект */
}

.search-wrapper input {
width: 0;
opacity: 0;
padding: 6px 10px;
margin-left: 5px;
border: 1px solid #ccc;
border-radius: 20px;
outline: none;
background: white;
color: black;
font-size: 14px;
transition: width 0.4s ease, opacity 0.4s ease;
}

/* Актив болгондо input чыгат */
.search-wrapper.active input {
width: 200px;
opacity: 1;
}



I have a CSS file with many blocks, such as `.container`, `.amedi-news`, `.toggle-password`, etc.

I want:
1. All class names to have unique, logical prefixes (for example: login_*, news_*, google_*).
2. All CSS styles (display, flex, gap, margin, padding, border-radius, etc.) to remain unchanged.
3. JS selectors referencing these classes to still work correctly.
4. Each major block's style to remain intact; only the class names should be made unique.
5. The output to be clean and easy to read.

I will provide the full CSS file. Apply these rules to rename all classes accordingly.

Files changed (1) hide show
  1. index.html +158 -2
index.html CHANGED
@@ -8,7 +8,163 @@
8
  <script src="https://unpkg.com/feather-icons"></script>
9
  <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
10
  <style>
11
- /* Original styles will be transformed here */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  .prefix-container {
13
  max-width: 1200px;
14
  margin: 0 auto;
@@ -76,7 +232,7 @@
76
  gap: 0.5rem;
77
  margin: 1rem 0;
78
  }
79
- </style>
80
  </head>
81
  <body class="bg-gray-50">
82
  <div class="prefix-container">
 
8
  <script src="https://unpkg.com/feather-icons"></script>
9
  <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
10
  <style>
11
+ /* Login form styles */
12
+ .login_container {
13
+ position: relative;
14
+ background: white;
15
+ padding: 30px;
16
+ border-radius: 8px;
17
+ box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
18
+ width: 400px;
19
+ }
20
+
21
+ .login_password-container {
22
+ position: relative;
23
+ }
24
+
25
+ .login_toggle-password {
26
+ position: absolute;
27
+ right: 10px;
28
+ top: 12px;
29
+ cursor: pointer;
30
+ }
31
+
32
+ .login_button {
33
+ background-color: orange;
34
+ color: white;
35
+ border: none;
36
+ padding: 10px 20px;
37
+ border-radius: 5px;
38
+ cursor: pointer;
39
+ margin: auto;
40
+ margin-top: 20px;
41
+ display: flex;
42
+ align-items: center;
43
+ gap: 10px;
44
+ }
45
+
46
+ .login_link {
47
+ display: block;
48
+ text-align: center;
49
+ margin-top: 10px;
50
+ font-size: 0.9em;
51
+ color: #ffffff;
52
+ }
53
+
54
+ /* Google sign-in styles */
55
+ .google_sign-in {
56
+ display: flex;
57
+ align-items: center;
58
+ justify-content: center;
59
+ gap: 10px;
60
+ padding: 10px;
61
+ margin-top: 15px;
62
+ background-color: white;
63
+ border: 1px solid #dadce0;
64
+ border-radius: 6px;
65
+ cursor: pointer;
66
+ font-size: 16px;
67
+ font-family: 'Roboto', sans-serif;
68
+ font-weight: 500;
69
+ box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
70
+ width: 100%;
71
+ }
72
+
73
+ .google_sign-in:hover {
74
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
75
+ }
76
+
77
+ .google_icon {
78
+ width: 20px;
79
+ height: 20px;
80
+ }
81
+
82
+ /* News section styles */
83
+ .news_container {
84
+ padding: 60px 20px;
85
+ background-image: url('https://amediatv.uz/_nuxt/img/trailer.0be2b47.jpg');
86
+ font-family: 'Segoe UI', sans-serif;
87
+ }
88
+
89
+ .news_wrapper {
90
+ display: flex;
91
+ flex-wrap: wrap;
92
+ max-width: 1200px;
93
+ margin: 0 auto;
94
+ gap: 40px;
95
+ align-items: center;
96
+ }
97
+
98
+ .news_left {
99
+ flex: 1 1 500px;
100
+ }
101
+
102
+ .news_tag {
103
+ display: inline-block;
104
+ background-color: #f47521;
105
+ color: #fff;
106
+ font-size: 13px;
107
+ font-weight: 600;
108
+ padding: 6px 14px;
109
+ border-radius: 20px;
110
+ margin-bottom: 12px;
111
+ text-transform: uppercase;
112
+ letter-spacing: 1px;
113
+ }
114
+
115
+ .news_title {
116
+ font-size: 30px;
117
+ font-weight: 700;
118
+ color: #2f3542;
119
+ margin-bottom: 15px;
120
+ }
121
+
122
+ .news_text {
123
+ font-size: 16px;
124
+ line-height: 1.6;
125
+ color: #fffdfd;
126
+ }
127
+
128
+ .news_right {
129
+ flex: 1 1 500px;
130
+ }
131
+
132
+ .news_video iframe {
133
+ width: 100%;
134
+ height: 280px;
135
+ border-radius: 12px;
136
+ box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
137
+ }
138
+
139
+ /* Search styles */
140
+ .search_wrapper {
141
+ position: relative;
142
+ display: inline-flex;
143
+ align-items: center;
144
+ }
145
+
146
+ .search_icon {
147
+ font-size: 22px;
148
+ cursor: pointer;
149
+ margin-left: 10px;
150
+ color: white;
151
+ }
152
+
153
+ .search_input {
154
+ width: 0;
155
+ opacity: 0;
156
+ padding: 6px 10px;
157
+ margin-left: 5px;
158
+ border: 1px solid #ccc;
159
+ border-radius: 20px;
160
+ outline: none;
161
+ background: white;
162
+ color: black;
163
+ font-size: 14px;
164
+ transition: width 0.4s ease, opacity 0.4s ease;
165
+ }
166
+
167
+ /* Original prefix styles will remain here */
168
  .prefix-container {
169
  max-width: 1200px;
170
  margin: 0 auto;
 
232
  gap: 0.5rem;
233
  margin: 1rem 0;
234
  }
235
+ </style>
236
  </head>
237
  <body class="bg-gray-50">
238
  <div class="prefix-container">