noranisa commited on
Commit
377139d
·
verified ·
1 Parent(s): 232c536

Update static/css/admin_restyle.css

Browse files
Files changed (1) hide show
  1. static/css/admin_restyle.css +69 -19
static/css/admin_restyle.css CHANGED
@@ -1,26 +1,76 @@
1
  /* static/css/admin_restyle.css */
 
 
 
 
 
 
 
 
 
 
2
 
3
- /* ... (CSS yang sudah ada) ... */
4
-
5
- /* Form Styling */
6
- .form-group label {
7
- font-weight: 600;
8
- margin-bottom: 0.5rem;
9
  color: var(--text-dark);
10
  }
11
- .form-control {
12
- border-radius: 8px;
13
- border: 1px solid var(--border-color);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
  }
15
- .form-control:focus {
16
- border-color: var(--brand-green);
17
- box-shadow: 0 0 0 0.2rem rgba(46, 87, 43, 0.25);
 
 
18
  }
19
- textarea.form-control {
20
- min-height: 120px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21
  }
22
- .select2-container--default .select2-selection--single {
23
- border-radius: 8px;
24
- border: 1px solid var(--border-color);
25
- height: calc(1.5em + .75rem + 2px);
26
- }
 
1
  /* static/css/admin_restyle.css */
2
+ :root {
3
+ --brand-green: #2E572B;
4
+ --brand-dark-green: #213f1f;
5
+ --brand-yellow: #F3C13E;
6
+ --brand-cream: #FEFDEE;
7
+ --content-bg: #f4f7f6;
8
+ --text-dark: #343a40;
9
+ --text-muted: #6c757d;
10
+ --border-color: #dee2e6;
11
+ }
12
 
13
+ body {
14
+ font-family: 'Poppins', sans-serif !important;
15
+ background-color: var(--content-bg) !important;
 
 
 
16
  color: var(--text-dark);
17
  }
18
+
19
+ .admin-layout { display: flex; min-height: 100vh; }
20
+
21
+ /* Sidebar */
22
+ .sidebar {
23
+ width: 250px; flex-shrink: 0;
24
+ background-color: var(--brand-dark-green);
25
+ color: #fff;
26
+ position: fixed; top: 0; left: 0; height: 100%; z-index: 1030;
27
+ }
28
+ .sidebar-brand {
29
+ display: flex; align-items: center; padding: 1.25rem; color: #fff;
30
+ text-decoration: none; font-size: 1.2rem; font-weight: 600;
31
+ border-bottom: 1px solid rgba(255, 255, 255, 0.1);
32
+ }
33
+ .sidebar-brand:hover { color: #fff; text-decoration: none; }
34
+ .sidebar-brand img { height: 32px; width: 32px; border-radius: 6px; margin-right: 12px; }
35
+ .sidebar .nav-link {
36
+ color: rgba(255, 255, 255, 0.6); padding: 0.8rem 1.25rem; display: flex;
37
+ align-items: center; transition: all 0.2s ease; font-weight: 500;
38
  }
39
+ .sidebar .nav-link .menu-icon { margin-right: 1rem; font-size: 1rem; width: 20px; text-align: center; }
40
+ .sidebar .nav-link:hover, .sidebar .nav-item.active .nav-link { background-color: var(--brand-green); color: #fff; }
41
+ .nav-category {
42
+ padding: 1.5rem 1.25rem 0.5rem; font-size: 0.75rem; font-weight: 600;
43
+ color: rgba(255, 255, 255, 0.4); text-transform: uppercase; letter-spacing: 0.5px;
44
  }
45
+
46
+ /* Konten Utama */
47
+ .content-wrapper { margin-left: 250px; width: calc(100% - 250px); padding: 2rem; }
48
+ .page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
49
+ .page-title { font-weight: 700; color: var(--text-dark); margin: 0; }
50
+
51
+ /* Kartu Statistik */
52
+ .stat-card {
53
+ background-color: #fff; border: none; border-radius: 12px;
54
+ box-shadow: 0 5px 15px rgba(0,0,0,0.04); margin-bottom: 2rem;
55
+ transition: transform 0.2s ease;
56
+ }
57
+ .stat-card:hover { transform: translateY(-5px); }
58
+ .stat-card .card-body { padding: 1.5rem; display: flex; align-items: center; }
59
+ .stat-card .stat-icon {
60
+ font-size: 1.5rem; height: 60px; width: 60px; display: inline-flex;
61
+ align-items: center; justify-content: center; border-radius: 12px; margin-right: 1.5rem; color: #fff;
62
+ }
63
+ .stat-card .stat-value { font-size: 2rem; font-weight: 700; color: var(--text-dark); }
64
+ .stat-card .stat-label { font-size: 0.9rem; color: var(--text-muted); }
65
+
66
+ /* Komponen Lain */
67
+ .card { background-color: #fff; border: none; border-radius: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.04); }
68
+ .card-header { background-color: #fff; border-bottom: 1px solid #eee; }
69
+ .btn-primary { background-color: var(--brand-green) !important; border-color: var(--brand-green) !important; font-weight: 600; }
70
+ .btn-primary:hover { background-color: var(--brand-dark-green) !important; border-color: var(--brand-dark-green) !important; }
71
+ .table thead th { background-color: var(--content-bg); border-bottom: 2px solid var(--border-color); font-weight: 600; }
72
+ .form-group label { font-weight: 600; color: var(--text-dark); }
73
+ .form-control, .select2-container--default .select2-selection--single {
74
+ border-radius: 8px; border: 1px solid var(--border-color);
75
  }
76
+ .form-control:focus { border-color: var(--brand-green); box-shadow: 0 0 0 0.2rem rgba(46, 87, 43, 0.25); }