Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
venshop
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
huanvl
venshop
Commits
c14b7f96
Commit
c14b7f96
authored
Oct 23, 2013
by
vulehuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reskin static html and using less css
parent
b71cfaa0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
223 additions
and
208 deletions
+223
-208
static_html/css/style.css.less
+200
-190
static_html/index.html
+23
-18
No files found.
static_html/css/style.css
→
static_html/css/style.css
.less
View file @
c14b7f96
// Extra small screen / phone
@screen-xs: 480px;
@screen-phone: @screen-xs;
// Small screen / tablet
@screen-sm: 768px;
@screen-tablet: @screen-sm;
// Medium screen / desktop
@screen-md: 992px;
@screen-desktop: @screen-md;
// Large screen / wide desktop
@screen-lg: 1200px;
@screen-lg-desktop: @screen-lg;
body {
body {
font-family: Tahoma, "Times New Roman", Times, serif;
font-family: Tahoma, "Times New Roman", Times, serif;
font-size: 12px;
font-size: 12px;
...
@@ -20,63 +36,74 @@ body {
...
@@ -20,63 +36,74 @@ body {
.margin-1 {
.margin-1 {
margin-top: 10px;
margin-top: 10px;
}
}
/*****************************************
header
******************************************/
header {
header {
padding: 5px 0;
padding: 5px 0;
margin-right: -15px;
margin-right: -15px;
@media (max-width: @screen-xs) {
margin-right: 0;
}
position: relative;
position: relative;
}
.banner {
margin-top: 9px;
header
.banner
img
{
@media (min-width: @screen-lg-desktop) {
margin-top: 3px;
}
img {
border-radius: 4px;
border-radius: 4px;
box-shadow: 4px 4px 4px #888888;
box-shadow: 4px 4px 4px #888888;
}
}
}
h1
.logo
a
{
.block-user-action {
width
:
160px
;
height
:
100px
;
color
:
transparent
;
font-size
:
0
;
overflow
:
hidden
;
display
:
inline-block
;
background
:
url("../images/logo.jpg")
no-repeat
;
}
.block-user-action
{
position: absolute;
position: absolute;
bottom
:
13
px
;
bottom: 19
px;
right: 10px;
right: 10px;
box-shadow: 4px 4px 4px #666;
box-shadow: 4px 4px 4px #666;
border-radius: 5px;
border-radius: 5px;
}
@media (min-width: @screen-lg-desktop) {
bottom: 8px;
.block-user-action
ul
,
.block-user-action
li
{
}
ul, li {
list-style: none;
list-style: none;
margin: 0;
margin: 0;
padding: 0;
padding: 0;
}
}
li {
.block-user-action
li
{
float: left;
float: left;
margin-left: 10px;
margin-left: 10px;
}
}
}
h1 {
&.logo {
a {
width: 160px;
height: 100px;
color: transparent;
font-size: 0;
overflow: hidden;
display: inline-block;
background: url("../images/logo.jpg") no-repeat;
}
}
}
}
.block-search {
.block-search {
margin-right: -15px;
margin-right: -15px;
@media (max-width: @screen-xs) {
margin-right: 0;
}
padding-bottom: 10px;
padding-bottom: 10px;
}
.btn {
span {
.block-search
.btn
span
{
margin-right: 7px;
margin-right: 7px;
}
}
&:hover {
.block-search
.btn
:hover
{
color: #FFFF00;
color: #FFFF00;
}
}
}
.block-search
.btn-default
{
.btn-default {
font-weight: bold;
font-weight: bold;
text-transform: uppercase;
text-transform: uppercase;
color: #FFF;
color: #FFF;
...
@@ -84,125 +111,70 @@ h1.logo a {
...
@@ -84,125 +111,70 @@ h1.logo a {
border-color: #ccc;
border-color: #ccc;
padding: 7px 12px;
padding: 7px 12px;
margin-top: -1px;
margin-top: -1px;
}
}
}
.breadcrumb {
.breadcrumb {
margin-left: -15px;
margin-left: -15px;
font-size: 13px;
font-size: 13px;
font-weight: bold;
font-weight: bold;
padding: 4px 15px 4px 0;
padding: 4px 15px 4px 0;
}
span {
.breadcrumb
span
{
display: block;
display: block;
float: left;
float: left;
margin-right: 10px;
margin-right: 10px;
}
}
ul, li {
.breadcrumb
ul
,
.breadcrumb
li
{
list-style: none;
list-style: none;
margin: 0;
margin: 0;
padding: 0;
padding: 0;
}
}
li {
.breadcrumb
li
{
float: left;
float: left;
color: #428bca;
color: #428bca;
}
&:after {
.breadcrumb
li
:after
{
content: ">>";
content: ">>";
}
}
&.last:after {
.breadcrumb
li
.last
:after
{
content: "";
content: "";
}
}
a {
.breadcrumb
li
a
{
padding: 0 10px;
padding: 0 10px;
}
}
}
}
/*****************************************
box
******************************************/
.box {
.box {
border: 1px solid #ccc;
border: 1px solid #ccc;
border-radius: 4px;
border-radius: 4px;
margin-bottom: 13px;
margin-bottom: 13px;
}
&.bg {
.box.bg
{
background: url("../images/n.jpg");
background: url("../images/n.jpg");
}
}
h2 {
.box
a
{
font-weight
:
bold
;
color
:
#000
;
}
.box
a
:hover
{
color
:
#900
;
}
.box
.list
,
.box
.list
li
{
list-style
:
none
;
margin
:
0
;
padding
:
0
;
}
.box
.list
>
li
{
background
:
url("../images/icon_1.gif")
0
7px
no-repeat
;
border-bottom
:
1px
solid
#CCC
;
}
.box
.list
>
li
.last
{
border-bottom
:
none
;
}
.box
.list
>
li
>
a
:hover
,
.box
.list
>
li
>
a
:focus
{
background
:
none
;
}
.box
.list
>
li
>
a
:hover
{
border-color
:
#CCC
;
}
.box
.list
>
li
>
a
{
border
:
none
;
border-radius
:
0
;
display
:
block
;
}
.box
.list
>
li
>
a
{
padding
:
7px
15px
7px
20px
;
}
.box
h2
{
position: relative;
position: relative;
margin: 0;
margin: 0;
padding: 2px 0;
padding: 2px 0;
background: #f1f3ee;
background: #f1f3ee;
}
.corner-left, .corner-right {
.box
h2
.corner-left
,
.box
h2
.corner-right
{
position: absolute;
position: absolute;
display: block;
display: block;
width: 32px;
width: 32px;
height: 26px;
height: 26px;
overflow: hidden;
overflow: hidden;
top: 2px;
top: 2px;
}
}
.corner-left {
.box
h2
.corner-left
{
left: 3px;
left: 3px;
}
}
.box
h2
.corner-right
{
.corner-right {
right: 3px;
right: 3px;
background-position: top right;
background-position: top right;
background-position-y: -100px;
background-position-y: -100px;
}
}
.text {
.box
h2
.text
{
display: block;
display: block;
background-position-y: -50px;
background-position-y: -50px;
color: #FFF;
color: #FFF;
...
@@ -214,41 +186,65 @@ box
...
@@ -214,41 +186,65 @@ box
line-height: 26px;
line-height: 26px;
text-align: center;
text-align: center;
margin: 0 7px 0 3px;
margin: 0 7px 0 3px;
}
}
a {
font-weight: bold;
color: #000;
&:hover {
color: #900;
}
}
.list, .list li {
list-style: none;
margin: 0;
padding: 0;
}
.list {
&>li {
background: url("../images/icon_1.gif") 0 7px no-repeat;
border-bottom: 1px solid #CCC;
&.last {
border-bottom: none;
}
&>a {
border: none;
border-radius: 0;
display: block;
padding: 7px 15px 7px 20px;
&:hover, &:focus {
background: none;
border-color: #CCC;
}
}
}
}
}
}
/*****************************************
footer
******************************************/
footer {
footer {
background: url("../images/bg_footer.jpg") repeat-x;
background: url("../images/bg_footer.jpg") repeat-x;
padding: 20px 10px 10px 10px;
padding: 20px 10px 10px 10px;
margin-top: 10px;
margin-top: 10px;
margin-left: -15px;
margin-right: -15px;
@media (max-width: @screen-xs) {
margin-right: 0;
margin-left: 0;
}
}
}
/*****************************************
grid view
******************************************/
.body-box {
.body-box {
border: 1px solid #CCC;
border: 1px solid #CCC;
margin-left: -15px;
margin-left: -15px;
margin-right: -15px;
margin-right: -15px;
padding-left: 16px;
padding-left: 16px;
padding-right: 16px;
padding-right: 16px;
}
@media (max-width: @screen-xs) {
margin-right: 0;
.grid-view
.thumbnail
{
margin-left: 0;
border
:
none
;
}
}
h2 {
.grid-view
.item
{
border
:
1px
solid
#CCC
;
margin
:
1px
1px
2px
1px
;
}
.grid-view
.col-md-3
{
padding
:
0
;
}
.body-box
h2
{
margin: 0;
margin: 0;
padding: 0;
padding: 0;
background-position-y: -50px;
background-position-y: -50px;
...
@@ -266,9 +262,7 @@ grid view
...
@@ -266,9 +262,7 @@ grid view
font-size: 11px;
font-size: 11px;
font-family: Tahoma;
font-family: Tahoma;
background-position-y: -50px;
background-position-y: -50px;
}
span {
.body-box
h2
span
{
display: block;
display: block;
width: 29px;
width: 29px;
height: 29px;
height: 29px;
...
@@ -276,103 +270,119 @@ grid view
...
@@ -276,103 +270,119 @@ grid view
width: 29px;
width: 29px;
top: 0;
top: 0;
left: 0;
left: 0;
}
}
}
}
.grid-view {
.grid-view
.item
h4
{
.col-md-3 {
padding: 0;
}
.item {
border: 1px solid #CCC;
margin: 1px 1px 2px 1px;
.thumbnail {
border: none;
}
h4 {
font-family: Tahoma;
font-family: Tahoma;
font-size: 11px;
font-size: 11px;
font-weight: bold;
font-weight: bold;
text-align: center;
text-align: center;
line-height: 120%;
line-height: 120%;
}
a {
.grid-view
.item
h4
a
{
color: #333;
color: #333;
}
}
}
.grid-view
.item
.price
{
.price {
color: #000;
color: #000;
font-weight: bold;
font-weight: bold;
text-align: center;
text-align: center;
padding-top: 15px;
padding-top: 15px;
padding-bottom: 5px;
padding-bottom: 5px;
}
span {
.grid-view
.item
.price
span
{
color: #F00;
color: #F00;
}
}
}
.grid-view
.item
.action
,
.list-view
.item
.action
{
.action {
text-align: center;
text-align: center;
padding-bottom: 7px;
padding-bottom: 7px;
}
.view-detail, .order {
.grid-view
.item
.action
.view-detail
,
.grid-view
.item
.action
.order
,
.list-view
.item
.action
.view-detail
,
.list-view
.item
.action
.order
{
color: transparent;
color: transparent;
font-size: 0;
font-size: 0;
display: inline-block;
display: inline-block;
overflow: hidden;
overflow: hidden;
height: 19px;
height: 19px;
}
}
.view-detail {
.grid-view
.item
.action
.view-detail
,
.list-view
.item
.action
.view-detail
{
width: 74px;
width: 74px;
background: url("../images/detail.png") no-repeat;
background: url("../images/detail.png") no-repeat;
margin-right: 10px;
margin-right: 10px;
}
}
.order {
.grid-view
.item
.action
.order
,
.list-view
.item
.action
.order
{
width: 84px;
width: 84px;
background: url("../images/order.png") no-repeat;
background: url("../images/order.png") no-repeat;
}
}
/*****************************************
}
list view
}
******************************************/
.list-view
{
}
}
.list-view
.col-md-3
{
.list-view {
.col-md-3 {
width: 100%;
width: 100%;
clear: left;
clear: left;
padding-top: 10px;
padding-top: 10px;
}
}
.item {
.list-view
.thumbnail
{
.thumbnail {
width: 25%;
width: 25%;
float: left;
float: left;
margin-right: 10px;
margin-right: 10px;
}
}
h4 {
.list-view
h4
{
padding-left: 10px;
padding-left: 10px;
margin-left: 25%;
margin-left: 25%;
margin-bottom: -25px;
margin-bottom: -25px;
}
}
.price {
.list-view
.price
{
font-size: 13px;
font-size: 13px;
padding-bottom: 5px;
padding-bottom: 5px;
font-weight: bold;
font-weight: bold;
padding-top: 35px;
padding-top: 35px;
}
span {
.list-view
.price
span
{
font-size: 14px;
font-size: 14px;
color: #FF0000;
color: #FF0000;
}
}
}
.list-view
.item
.action
{
.action {
padding-bottom: 7px;
text-align: left;
text-align: left;
.view-detail, .order {
color: transparent;
font-size: 0;
display: inline-block;
overflow: hidden;
height: 19px;
}
.view-detail {
width: 74px;
background: url("../images/detail.png") no-repeat;
margin-right: 10px;
}
.order {
width: 84px;
background: url("../images/order.png") no-repeat;
}
}
}
}
}
/*****************************************
others
******************************************/
#block-slide {
#block-slide {
margin-left: -15px;
margin-left: -15px;
margin-right: -15px;
margin-right: -15px;
@media (max-width: @screen-xs) {
margin-right: 0;
margin-left: 0;
}
padding-bottom: 10px;
padding-bottom: 10px;
}
}
...
...
static_html/index.html
View file @
c14b7f96
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
<link
<link
href=
"//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css"
href=
"//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css"
rel=
"stylesheet"
>
rel=
"stylesheet"
>
<link
rel=
"stylesheet
"
href=
"css/style.c
ss"
/>
<link
rel=
"stylesheet
/less"
href=
"css/style.css.le
ss"
/>
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<!--[if lt IE 9]>
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6.2pre/html5shiv.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6.2pre/html5shiv.min.js"></script>
...
@@ -20,11 +20,15 @@
...
@@ -20,11 +20,15 @@
<!-- header -->
<!-- header -->
<div
class=
"container"
>
<div
class=
"container"
>
<header>
<header>
<h1
class=
"logo pull-left"
>
<div
class=
"row"
>
<a
href=
""
>
Venshop
</a>
<div
class=
"col-md-2 col-sm-2"
>
</h1>
<h1
class=
"logo pull-left"
><a
href=
""
>
Venshop
</a></h1>
</div>
<div
class=
"col-md-10 col-sm-10"
>
<div
class=
"banner pull-right"
>
<div
class=
"banner pull-right"
>
<a
href=
""
><img
src=
"images/upload/banner/1.png"
alt=
""
/></a>
<a
href=
""
><img
src=
"images/upload/banner/1.png"
class=
"img-responsive"
alt=
""
/></a>
</div>
</div>
</div>
</div>
<div
class=
"block-user-action"
>
<div
class=
"block-user-action"
>
<div
class=
"btn-group"
>
<div
class=
"btn-group"
>
...
@@ -51,7 +55,7 @@
...
@@ -51,7 +55,7 @@
</div>
</div>
<div
class=
"container"
>
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col-md
-3 sidebar-first"
>
<div
class=
"col-md-3 col-sm
-3 sidebar-first"
>
<div
class=
"box bg"
>
<div
class=
"box bg"
>
<h2>
<h2>
<span
class=
"sprite-1 text"
>
Category
</span><span
<span
class=
"sprite-1 text"
>
Category
</span><span
...
@@ -91,7 +95,7 @@
...
@@ -91,7 +95,7 @@
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"col-md
-9"
>
<div
class=
"col-md-9 col-sm
-9"
>
<!-- slide -->
<!-- slide -->
<div
id=
"block-slide"
>
<div
id=
"block-slide"
>
<div
id=
"carousel-example-generic"
<div
id=
"carousel-example-generic"
...
@@ -133,7 +137,7 @@
...
@@ -133,7 +137,7 @@
Recommended Items
<span
class=
"sprite-2"
></span>
Recommended Items
<span
class=
"sprite-2"
></span>
</h2>
</h2>
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col-md
-3"
>
<div
class=
"col-md-3 col-sm
-3"
>
<div
class=
"item"
>
<div
class=
"item"
>
<h4>
<h4>
<a
href=
""
>
HP Pavilion DM1-4104AU – 11.6” / 500GB
</a>
<a
href=
""
>
HP Pavilion DM1-4104AU – 11.6” / 500GB
</a>
...
@@ -149,7 +153,7 @@
...
@@ -149,7 +153,7 @@
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"col-md
-3"
>
<div
class=
"col-md-3 col-sm
-3"
>
<div
class=
"item"
>
<div
class=
"item"
>
<h4>
<h4>
<a
href=
""
>
Casio AE-1000W-1AVDF
</a>
<a
href=
""
>
Casio AE-1000W-1AVDF
</a>
...
@@ -165,7 +169,7 @@
...
@@ -165,7 +169,7 @@
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"col-md
-3"
>
<div
class=
"col-md-3 col-sm
-3"
>
<div
class=
"item"
>
<div
class=
"item"
>
<h4>
<h4>
<a
href=
""
>
Smooth Pillows Travel / Red
</a>
<a
href=
""
>
Smooth Pillows Travel / Red
</a>
...
@@ -181,7 +185,7 @@
...
@@ -181,7 +185,7 @@
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"col-md
-3"
>
<div
class=
"col-md-3 col-sm
-3"
>
<div
class=
"item"
>
<div
class=
"item"
>
<h4>
<h4>
<a
href=
""
>
Kitybags BLVT-0164
</a>
<a
href=
""
>
Kitybags BLVT-0164
</a>
...
@@ -199,10 +203,10 @@
...
@@ -199,10 +203,10 @@
</div>
</div>
</div>
</div>
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col-md
-3"
>
<div
class=
"col-md-3 col-sm
-3"
>
<div
class=
"item"
>
<div
class=
"item"
>
<h4>
<h4>
<a
href=
""
>
Charles
&
Keith CK2-50150234
</a>
<a
href=
""
>
Charles
&
Keith CK2-50150234
</a>
</h4>
</h4>
<a
href=
""
class=
"thumbnail"
><img
src=
"images/upload/5.jpg"
<a
href=
""
class=
"thumbnail"
><img
src=
"images/upload/5.jpg"
alt=
""
></a>
alt=
""
></a>
...
@@ -215,7 +219,7 @@
...
@@ -215,7 +219,7 @@
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"col-md
-3"
>
<div
class=
"col-md-3 col-sm
-3"
>
<div
class=
"item"
>
<div
class=
"item"
>
<h4>
<h4>
<a
href=
""
>
Ananas 40071
</a>
<a
href=
""
>
Ananas 40071
</a>
...
@@ -240,7 +244,7 @@
...
@@ -240,7 +244,7 @@
Newest Items
<span
class=
"sprite-2"
></span>
Newest Items
<span
class=
"sprite-2"
></span>
</h2>
</h2>
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col-md
-3"
>
<div
class=
"col-md-3 col-sm
-3"
>
<div
class=
"item"
>
<div
class=
"item"
>
<h4>
<h4>
<a
href=
""
>
HP Pavilion DM1-4104AU – 11.6” / 500GB
</a>
<a
href=
""
>
HP Pavilion DM1-4104AU – 11.6” / 500GB
</a>
...
@@ -256,7 +260,7 @@
...
@@ -256,7 +260,7 @@
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"col-md
-3"
>
<div
class=
"col-md-3 col-sm
-3"
>
<div
class=
"item"
>
<div
class=
"item"
>
<h4>
<h4>
<a
href=
""
>
Casio AE-1000W-1AVDF
</a>
<a
href=
""
>
Casio AE-1000W-1AVDF
</a>
...
@@ -272,7 +276,7 @@
...
@@ -272,7 +276,7 @@
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"col-md
-3"
>
<div
class=
"col-md-3 col-sm
-3"
>
<div
class=
"item"
>
<div
class=
"item"
>
<h4>
<h4>
<a
href=
""
>
Smooth Pillows Travel / Red
</a>
<a
href=
""
>
Smooth Pillows Travel / Red
</a>
...
@@ -288,7 +292,7 @@
...
@@ -288,7 +292,7 @@
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"col-md
-3"
>
<div
class=
"col-md-3 col-sm
-3"
>
<div
class=
"item"
>
<div
class=
"item"
>
<h4>
<h4>
<a
href=
""
>
Kitybags BLVT-0164
</a>
<a
href=
""
>
Kitybags BLVT-0164
</a>
...
@@ -318,6 +322,7 @@
...
@@ -318,6 +322,7 @@
<a
href=
"http://zigexn.vn"
>
http://http://zigexn.vn.com
</a>
<a
href=
"http://zigexn.vn"
>
http://http://zigexn.vn.com
</a>
</footer>
</footer>
</div>
</div>
<script
src=
"//cdnjs.cloudflare.com/ajax/libs/less.js/1.4.1/less.min.js"
type=
"text/javascript"
></script>
<script
<script
src=
"//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"
src=
"//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"
type=
"text/javascript"
></script>
type=
"text/javascript"
></script>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment