Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
joshine
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
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
joshine
Commits
cdd182eb
Commit
cdd182eb
authored
Sep 27, 2022
by
王东红
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化个人中心样式
parent
09209ffe
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
95 additions
and
55 deletions
+95
-55
app/code/Magento/Customer/view/frontend/templates/form/newsletter.phtml
+0
-54
app/design/frontend/Joshine/breeze/Magento_Customer/templates/form/newsletter.phtml
+81
-0
app/design/frontend/Joshine/breeze/web/css/_custom.less
+14
-1
No files found.
app/code/Magento/Customer/view/frontend/templates/form/newsletter.phtml
View file @
cdd182eb
...
...
@@ -6,60 +6,6 @@
/** @var \Magento\Customer\Block\Newsletter $block */
?>
<style
type=
"text/css"
>
input
:not
([
type
]),
input
[
type
=
"text"
],
input
[
type
=
"password"
],
input
[
type
=
"date"
],
input
[
type
=
"datetime"
],
input
[
type
=
"datetime-local"
],
input
[
type
=
"month"
],
input
[
type
=
"week"
],
input
[
type
=
"email"
],
input
[
type
=
"number"
],
input
[
type
=
"search"
],
input
[
type
=
"tel"
],
input
[
type
=
"time"
],
input
[
type
=
"url"
],
input
[
type
=
"color"
],
textarea
{
border
:
1px
solid
#e1e1e1
;
height
:
50px
;
padding
:
5px
;
border-radius
:
3px
;
box-shadow
:
none
;
}
.fieldset
>
.field
:not
(
.choice
)
>
.label
{
padding
:
6px
15px
0
0
;
text-align
:
right
;
box-sizing
:
border-box
;
float
:
left
;
}
.actions-toolbar
.action.primary
{
vertical-align
:
middle
;
-webkit-transform
:
perspective
(
1px
)
translateZ
(
0
);
transform
:
perspective
(
1px
)
translateZ
(
0
);
box-shadow
:
0
0
1px
rgb
(
0
0
0
/
0%
);
border-radius
:
0px
;
background-color
:
#222222
;
box-shadow
:
none
;
color
:
#ffffff
;
display
:
inline-block
;
font-family
:
'Outfit-Regular'
,
sans-serif
;
font-weight
:
normal
;
padding
:
18px
50px
;
line-height
:
1
;
text-shadow
:
none
;
text-transform
:
capitalize
;
white-space
:
nowrap
;
font-size
:
13px
;
border-radius
:
2px
;
border
:
2px
solid
#222222
;
background-image
:
none
;
text-align
:
center
;
border
:
none
;
text-transform
:
uppercase
;
font-weight
:
normal
!important
;
transition
:
all
0.4s
ease
;
-webkit-transition
:
all
0.4s
ease
;
}
.label
{
color
:
#555
;
font-size
:
13px
;
}
input
{
box-shadow
:
inset
0
-2px
#e7e7e7
;
}
.field.choice
>[
type
=
"radio"
],
.field.choice
>[
type
=
"checkbox"
]
{
margin-top
:
4px
;
}
</style>
<?=
$block
->
getChildHtml
(
'form_before'
)
?>
<form
class=
"form form-newsletter-manage"
action=
"
<?=
$block
->
escapeUrl
(
$block
->
getAction
())
?>
"
method=
"post"
id=
"form-validate"
>
<fieldset
class=
"fieldset"
>
...
...
app/design/frontend/Joshine/breeze/Magento_Customer/templates/form/newsletter.phtml
0 → 100644
View file @
cdd182eb
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
/** @var \Magento\Customer\Block\Newsletter $block */
?>
<style
type=
"text/css"
>
input
:not
([
type
]),
input
[
type
=
"text"
],
input
[
type
=
"password"
],
input
[
type
=
"date"
],
input
[
type
=
"datetime"
],
input
[
type
=
"datetime-local"
],
input
[
type
=
"month"
],
input
[
type
=
"week"
],
input
[
type
=
"email"
],
input
[
type
=
"number"
],
input
[
type
=
"search"
],
input
[
type
=
"tel"
],
input
[
type
=
"time"
],
input
[
type
=
"url"
],
input
[
type
=
"color"
],
textarea
{
border
:
1px
solid
#e1e1e1
;
height
:
50px
;
padding
:
5px
;
border-radius
:
3px
;
box-shadow
:
none
;
}
.fieldset
>
.field
:not
(
.choice
)
>
.label
{
padding
:
6px
15px
0
0
;
text-align
:
right
;
box-sizing
:
border-box
;
float
:
left
;
}
.actions-toolbar
.action.primary
{
vertical-align
:
middle
;
-webkit-transform
:
perspective
(
1px
)
translateZ
(
0
);
transform
:
perspective
(
1px
)
translateZ
(
0
);
box-shadow
:
0
0
1px
rgb
(
0
0
0
/
0%
);
border-radius
:
0px
;
background-color
:
#222222
;
box-shadow
:
none
;
color
:
#ffffff
;
display
:
inline-block
;
font-family
:
'Outfit-Regular'
,
sans-serif
;
font-weight
:
normal
;
padding
:
18px
50px
;
line-height
:
1
;
text-shadow
:
none
;
text-transform
:
capitalize
;
white-space
:
nowrap
;
font-size
:
13px
;
border-radius
:
2px
;
border
:
2px
solid
#222222
;
background-image
:
none
;
text-align
:
center
;
border
:
none
;
text-transform
:
uppercase
;
font-weight
:
normal
!important
;
transition
:
all
0.4s
ease
;
-webkit-transition
:
all
0.4s
ease
;
}
.label
{
color
:
#555
;
font-size
:
13px
;
}
input
{
box-shadow
:
inset
0
-2px
#e7e7e7
;
}
.field.choice
>[
type
=
"radio"
],
.field.choice
>[
type
=
"checkbox"
]
{
margin-top
:
4px
;
}
</style>
<?=
$block
->
getChildHtml
(
'form_before'
)
?>
<form
class=
"form form-newsletter-manage"
action=
"
<?=
$block
->
escapeUrl
(
$block
->
getAction
())
?>
"
method=
"post"
id=
"form-validate"
>
<fieldset
class=
"fieldset"
>
<?=
$block
->
getBlockHtml
(
'formkey'
)
?>
<legend
class=
"legend"
><span>
<?=
$block
->
escapeHtml
(
__
(
'Subscription option'
))
?>
</span></legend><br>
<div
class=
"field choice"
>
<input
type=
"checkbox"
name=
"is_subscribed"
id=
"subscription"
value=
"1"
title=
"
<?=
$block
->
escapeHtmlAttr
(
__
(
'General Subscription'
))
?>
"
<?php
if
(
$block
->
getIsSubscribed
())
:
?>
checked=
"checked"
<?php
endif
;
?>
class=
"checkbox"
>
<label
for=
"subscription"
class=
"label"
><span>
<?=
$block
->
escapeHtml
(
__
(
'General Subscription'
))
?>
</span></label>
</div>
<?php
/* Extensions placeholder */
?>
<?=
$block
->
getChildHtml
(
'customer.form.newsletter.extra'
)
?>
</fieldset>
<div
class=
"actions-toolbar"
>
<div
class=
"primary"
><button
type=
"submit"
title=
"
<?=
$block
->
escapeHtmlAttr
(
__
(
'Save'
))
?>
"
class=
"action save primary"
><span>
<?=
$block
->
escapeHtml
(
__
(
'Save'
))
?>
</span></button></div>
<div
class=
"secondary"
><a
class=
"action back"
href=
"
<?=
$block
->
escapeUrl
(
$block
->
getBackUrl
())
?>
"
><span>
<?=
$block
->
escapeHtml
(
__
(
'Back'
))
?>
</span></a></div>
</div>
</form>
<?php
/* Extensions placeholder */
?>
<?=
$block
->
getChildHtml
(
'customer.form.newsletter.extra2'
)
?>
app/design/frontend/Joshine/breeze/web/css/_custom.less
View file @
cdd182eb
...
...
@@ -1028,6 +1028,9 @@ footer{
.block.widget-recent{
display: none !important;
}
.account{
font-family: 'Outfit-Regular';
}
.account .page-title-wrapper h1 {
text-align: center;
margin-bottom: 20px;
...
...
@@ -1047,7 +1050,17 @@ footer{
font-family: 'Outfit-Regular', sans-serif;
font-size: 14px;
}
.message.info, .message.warning, .message.notice{
margin: 0 0 10px;
padding: 10px 20px;
display: block;
line-height: 1.2em;
font-size: 1.3rem;
background: #fdf0d5;
color: #6f4400;
padding-left: 40px;
position: relative;
}
.account.customer-account-edit{
form .legend{
border:none;
...
...
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