Gitlab@Informatics
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cloudproject65160260
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
65160260
cloudproject65160260
Commits
ef811cc5
Commit
ef811cc5
authored
1 month ago
by
65160260
Browse files
Options
Downloads
Patches
Plain Diff
Edit style.css
parent
072f1ceb
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
style.css
+63
-23
63 additions, 23 deletions
style.css
with
63 additions
and
23 deletions
style.css
+
63
−
23
View file @
ef811cc5
...
@@ -14,7 +14,7 @@ body {
...
@@ -14,7 +14,7 @@ body {
padding
:
20px
;
padding
:
20px
;
box-shadow
:
0px
0px
10px
rgba
(
0
,
0
,
0
,
0.1
);
box-shadow
:
0px
0px
10px
rgba
(
0
,
0
,
0
,
0.1
);
border-radius
:
10px
;
border-radius
:
10px
;
text-align
:
center
;
text-align
:
center
;
/* ทำให้เนื้อหาใน container อยู่ตรงกลาง */
}
}
/* หัวข้อ */
/* หัวข้อ */
...
@@ -25,9 +25,8 @@ h2 {
...
@@ -25,9 +25,8 @@ h2 {
/* ตารางสินค้า */
/* ตารางสินค้า */
.table-container
{
.table-container
{
width
:
80%
;
width
:
80%
;
/* จำกัดความกว้างของตาราง */
margin
:
auto
;
margin
:
auto
;
/* จัดให้อยู่ตรงกลาง */
overflow-x
:
auto
;
/* ป้องกันการล้นของตาราง */
}
}
table
{
table
{
...
@@ -41,7 +40,7 @@ table, th, td {
...
@@ -41,7 +40,7 @@ table, th, td {
}
}
th
,
td
{
th
,
td
{
padding
:
1
2
px
;
padding
:
1
0
px
;
text-align
:
center
;
text-align
:
center
;
}
}
...
@@ -50,18 +49,37 @@ th {
...
@@ -50,18 +49,37 @@ th {
color
:
white
;
color
:
white
;
}
}
/* ปุ่มเพิ่ม-ลดจำนวนสินค้า */
/* ฟอร์ม */
.qty-btn
{
form
{
padding
:
5px
10px
;
text-align
:
center
;
background-color
:
#007BFF
;
margin
:
20px
0
;
}
input
,
button
{
padding
:
10px
;
margin
:
5px
;
border
:
1px
solid
#ccc
;
border-radius
:
5px
;
}
button
{
background-color
:
#28a745
;
color
:
white
;
color
:
white
;
border
:
none
;
cursor
:
pointer
;
cursor
:
pointer
;
border-radius
:
5px
;
}
}
.qty-btn
:hover
{
button
:hover
{
background-color
:
#0056b3
;
background-color
:
#218838
;
}
/* ลิงก์ */
a
{
text-decoration
:
none
;
color
:
#007BFF
;
}
a
:hover
{
text-decoration
:
underline
;
}
}
/* ปุ่มลบ */
/* ปุ่มลบ */
...
@@ -74,24 +92,46 @@ th {
...
@@ -74,24 +92,46 @@ th {
color
:
darkred
;
color
:
darkred
;
}
}
/*
ปุ่มชำระเงิน
*/
/*
ตะกร้าสินค้า
*/
.c
heckou
t-container
{
.c
ar
t-container
{
text-align
:
center
;
max-width
:
600px
;
margin
-top
:
20px
;
margin
:
auto
;
}
}
.cart-container
table
{
width
:
100%
;
}
.cart-container
th
,
.cart-container
td
{
padding
:
10px
;
}
/* ปุ่มเพิ่ม-ลดจำนวนสินค้า */
.qty-btn
{
padding
:
5px
10px
;
background-color
:
#007BFF
;
color
:
white
;
border
:
none
;
cursor
:
pointer
;
border-radius
:
5px
;
}
.qty-btn
:hover
{
background-color
:
#0056b3
;
}
/* ปุ่มชำระเงิน */
.checkout-btn
{
.checkout-btn
{
display
:
inline-block
;
display
:
block
;
width
:
auto
;
width
:
100%
;
text-align
:
center
;
background-color
:
#ffc107
;
background-color
:
#ffc107
;
padding
:
1
2px
2
0px
;
padding
:
10px
;
border-radius
:
5px
;
border-radius
:
5px
;
font-size
:
18px
;
font-size
:
18px
;
color
:
black
;
color
:
black
;
font-weight
:
bold
;
text-decoration
:
none
;
}
}
.checkout-btn
:hover
{
.checkout-btn
:hover
{
background-color
:
#e0a800
;
background-color
:
#e0a800
;
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment