Commit 9d64e45e by 王东红

优化个人中心样式

parent 3e71cdec
......@@ -6,95 +6,6 @@
/** @var \Magento\Customer\Block\Account\Dashboard\Info $block */
?>
<style type="text/css">
.customer-account-index{
font-family: 'Outfit-Regular', sans-serif;
}
.block-dashboard-info .block-title{
border-bottom: 1px solid #e1e1e1;
padding-bottom: 13px;
font-weight: 500;
}
.account .main .block .block-title{
background: none;
text-transform: uppercase;
padding-left: 0px;
font-weight: 300;
}
.account .main .block .block-title strong{
font-weight: 300;
}
.block-dashboard-addresses .block-title {
border-bottom: 1px solid #e1e1e1;
padding-bottom: 10px;
font-weight: 500;
}
.block-dashboard-info .box-information .box-title,.box-newsletter strong.box-title,.block-dashboard-addresses .box-title{
font-size: 20px;
padding-bottom: 10px;
color: #292929;
display: block;
font-weight: 600;
}
.block-dashboard-orders{
display: none;
}
@media(min-width: 768px){
.block .box{
max-width: 700px;
}
}
.block-dashboard-info{
padding: 10px 20px;
border: 1px solid #e1e1e1;
overflow: hidden;
}
.block-dashboard-addresses {
padding: 10px 20px;
border: 1px solid #e1e1e1;
overflow: hidden;
}
.block-dashboard-info .block-title{
border-bottom: 1px solid #e1e1e1;
padding-bottom: 13px;
font-weight: 500;
}
.account .main .block .block-title{
background: none;
text-transform: uppercase;
padding-left: 0px;
font-weight: 300;
}
.account .main .block .block-title strong{
font-weight: 300;
}
.block-dashboard-addresses .block-title {
border-bottom: 1px solid #e1e1e1;
padding-bottom: 10px;
font-weight: 500;
}
.block-dashboard-info .box-information .box-title,.box-newsletter strong.box-title,.block-dashboard-addresses .box-title{
font-size: 20px;
padding-bottom: 10px;
color: #292929;
display: block;
font-weight: 600;
}
.block-dashboard-orders{
display: none;
}
@media(min-width: 768px){
.block .box{
max-width: 700px;
}
}
</style>
<div class="block block-dashboard-info">
<div class="block-title"><strong><?= $block->escapeHtml(__('Account Information')) ?></strong></div>
<div class="block-content">
......
......@@ -9,66 +9,6 @@ use Magento\Customer\Block\Widget\Name;
/** @var \Magento\Customer\Block\Form\Edit $block */
/** @var \Magento\Framework\View\Helper\SecureHtmlRenderer $secureRenderer */
?>
<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', 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;
}
@media(min-width: 768px){
.form-edit-account>.fieldset, .form-address-edit>.fieldset{
width: 100%;
max-width: none;
}
}
</style>
<form class="form form-edit-account"
action="<?= $block->escapeUrl($block->getUrl('customer/account/editPost')) ?>"
method="post" id="form-validate"
......
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
/** @var \Magento\Customer\Block\Account\Dashboard\Info $block */
?>
<style type="text/css">
.customer-account-index{
font-family: 'Outfit-Regular', sans-serif;
}
.block-dashboard-info .block-title{
border-bottom: 1px solid #e1e1e1;
padding-bottom: 13px;
font-weight: 500;
}
.account .main .block .block-title{
background: none;
text-transform: uppercase;
padding-left: 0px;
font-weight: 300;
}
.account .main .block .block-title strong{
font-weight: 300;
}
.block-dashboard-addresses .block-title {
border-bottom: 1px solid #e1e1e1;
padding-bottom: 10px;
font-weight: 500;
}
.block-dashboard-info .box-information .box-title,.box-newsletter strong.box-title,.block-dashboard-addresses .box-title{
font-size: 20px;
padding-bottom: 10px;
color: #292929;
display: block;
font-weight: 600;
}
.block-dashboard-orders{
display: none;
}
@media(min-width: 768px){
.block .box{
max-width: 700px;
}
}
.block-dashboard-info{
padding: 10px 20px;
border: 1px solid #e1e1e1;
overflow: hidden;
}
.block-dashboard-addresses {
padding: 10px 20px;
border: 1px solid #e1e1e1;
overflow: hidden;
}
.block-dashboard-info .block-title{
border-bottom: 1px solid #e1e1e1;
padding-bottom: 13px;
font-weight: 500;
}
.account .main .block .block-title{
background: none;
text-transform: uppercase;
padding-left: 0px;
font-weight: 300;
}
.account .main .block .block-title strong{
font-weight: 300;
}
.block-dashboard-addresses .block-title {
border-bottom: 1px solid #e1e1e1;
padding-bottom: 10px;
font-weight: 500;
}
.block-dashboard-info .box-information .box-title,.box-newsletter strong.box-title,.block-dashboard-addresses .box-title{
font-size: 20px;
padding-bottom: 10px;
color: #292929;
display: block;
font-weight: 600;
}
.block-dashboard-orders{
display: none;
}
@media(min-width: 768px){
.block .box{
max-width: 700px;
}
}
</style>
<div class="block block-dashboard-info">
<div class="block-title"><strong><?= $block->escapeHtml(__('Account Information')) ?></strong></div>
<div class="block-content">
<div class="box box-information">
<strong class="box-title">
<span><?= $block->escapeHtml(__('Contact Information')) ?></span>
</strong>
<div class="box-content">
<p>
<?= $block->escapeHtml($block->getName()) ?><br>
<?= $block->escapeHtml($block->getCustomer()->getEmail()) ?><br>
</p>
<?= $block->getChildHtml('customer.account.dashboard.info.extra'); ?>
</div>
<div class="box-actions">
<a class="action edit" href="<?= $block->escapeUrl($block->getUrl('customer/account/edit')) ?>">
<span><?= $block->escapeHtml(__('Edit')) ?></span>
</a>
<a href="<?= $block->escapeUrl($block->getChangePasswordUrl()) ?>" class="action change-password">
<?= $block->escapeHtml(__('Change Password')) ?>
</a>
</div>
</div>
<?php if ($block->isNewsletterEnabled()): ?>
<div class="box box-newsletter">
<strong class="box-title">
<span><?= $block->escapeHtml(__('Newsletters')) ?></span>
</strong>
<div class="box-content">
<p>
<?php if ($block->getIsSubscribed()): ?>
<?= $block->escapeHtml(__('You are subscribed to "General Subscription".')) ?>
<?php else: ?>
<?= $block->escapeHtml(__('You aren\'t subscribed to our newsletter.')) ?>
<?php endif; ?>
</p>
</div>
<div class="box-actions">
<a class="action edit" href="<?= $block->escapeUrl($block->getUrl('newsletter/manage')) ?>">
<span><?= $block->escapeHtml(__('Edit')) ?></span></a>
</div>
</div>
<?php endif; ?>
<?= $block->getChildHtml('additional_blocks'); ?>
</div>
</div>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment