1

我在开发网站的 UI 时使用后退箭头图标。谁不喜欢曲线?我想要做的是使图标边框弯曲。并减少图标重量。使它变薄。可能很苗条。我使用了字体粗细属性。它没有得到应用。

我现在拥有的: 在此处输入图像描述 --代码片段在那里--

我需要完成的工作: 在此处输入图像描述

由于 UX 很重要,因为我无法通过谷歌搜索找到答案。

.nav-left-model {
  display: block;
  float: left;
  margin-left: 10px;
}
.nav-left-model .arrow-back-icon {
  float: left;
  padding-top: 9px;
  padding-bottom: 7px;
  padding-left: 12px;
  background-color: #f8faf9;
  width: 45px;
  margin-top: 8px;
  border-radius: 50%;
  font-weight: lighter;
  box-shadow: 0px 0.5px 0.5px 0px rgba(0, 0, 0, 0.05);
  margin-right: 0px;
  cursor: pointer;
}
.nav-left-model .arrow-back-icon:hover {
  box-shadow: 0px 0.5px 0.5px 0px rgba(0, 0, 0, 0.2);
}
.nav-left-model .arrow-back-icon .arrow-back-icon-element {
  color: #3fce76;
  font-size: 2.5em;
}
.nav-left-model .team-name {
  float: left;
  padding-left: 15px;
  padding-top: 8px;
}
.nav-left-model .team-name .team-name-element {
  font-weight: 300;
  font-size: 34px;
  color: #1f1f1f;
}
.nav-left-model .settings-icon {
  float: left;
  padding-left: 15px;
  padding-top: 25px;
}
.nav-left-model .settings-icon .settings-icon-element {
  color: #cccccc;
  cursor: pointer;
}
.nav-left-model .settings-icon .settings-icon-element:hover {
  color: #b3b3b3;
}
<link href="https://cdnjs.cloudflare.com/ajax/libs/material-design-iconic-font/2.2.0/css/material-design-iconic-font.css" rel="stylesheet"/>
<div class="nav-left-model">
  <div class="arrow-back-icon"><i class="zmdi zmdi-arrow-left arrow-back-icon-element"></i>
  </div>
</div>

4

1 回答 1

2

最接近你试图得到的可能是-webkit-text-stroke

请注意,并非所有浏览器都支持它。http://caniuse.com/#search=text-stroke

.nav-left-model {
  display: block;
  float: left;
  margin-left: 10px;
}
.nav-left-model .arrow-back-icon {
  float: left;
  padding-top: 9px;
  padding-bottom: 7px;
  padding-left: 12px;
  background-color: #f8faf9;
  width: 45px;
  margin-top: 8px;
  border-radius: 50%;
  font-weight: lighter;
  box-shadow: 0px 0.5px 0.5px 0px rgba(0, 0, 0, 0.05);
  margin-right: 0px;
  cursor: pointer;
  -webkit-text-stroke: 1px white;
}
.nav-left-model .arrow-back-icon:hover {
  box-shadow: 0px 0.5px 0.5px 0px rgba(0, 0, 0, 0.2);
}
.nav-left-model .arrow-back-icon .arrow-back-icon-element {
  color: #3fce76;
  font-size: 2.5em;
}
.nav-left-model .team-name {
  float: left;
  padding-left: 15px;
  padding-top: 8px;
}
.nav-left-model .team-name .team-name-element {
  font-weight: 300;
  font-size: 34px;
  color: #1f1f1f;
}
.nav-left-model .settings-icon {
  float: left;
  padding-left: 15px;
  padding-top: 25px;
}
.nav-left-model .settings-icon .settings-icon-element {
  color: #cccccc;
  cursor: pointer;
}
.nav-left-model .settings-icon .settings-icon-element:hover {
  color: #b3b3b3;
}
<link href="https://cdnjs.cloudflare.com/ajax/libs/material-design-iconic-font/2.2.0/css/material-design-iconic-font.css" rel="stylesheet"/>
<div class="nav-left-model">
  <div class="arrow-back-icon"><i class="zmdi zmdi-arrow-left arrow-back-icon-element"></i>
  </div>
</div>

于 2016-06-24T08:56:25.973 回答