ログインボタンのマークアップ

Prev Next

Classic/VPC環境で利用できます。

ユーザーの Applicationに独自のデザインガイドがない場合、以下のマークアップを活用してログインボタンを配置する方法を説明します。

シンボルのダウンロード

マークアップを活用してログインボタンを配置する前に以下のシンボルイメージファイルをダウンロードします。

ログインボタンの配置

ログインボタンの配置時、ボタンの形によりマークアップが異なります。画面の環境に応じて、以下の3つの形から一つを選択して使用します。

基本型ログインボタン

基本型ログインボタンは、最も基本的なボタンの形で、カラーのテーマにより、lightバージョンと colorバージョンに区分されます。

NAVERクラウドプラットフォームにログイン
NAVERクラウドプラットフォームにログイン

CSSの作成

CSSにログインボタンとシンボルを適用する方法は次の通りです。
imagePathにシンボルイメージの保存パスを代入してください。

  • lightバージョン
.button-basic-wrapper {
    position: relative;
    display: inline-flex;    
    align-items: center;        
    border-radius: 4px;
    background-color: #f9f9f9;
    font-size: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: 'Roboto',-apple-system,BlinkMacSystemFont,'Malgun Gothic','맑은 고딕',helvetica,'Apple SD Gothic Neo',sans-serif;
    cursor: pointer;
}
.button-basic-wrapper.lang-ja {
    font-family: 'Roboto',-apple-system,BlinkMacSystemFont,'メイリオ','Meiryo','Yu Gothic','Hiragino Kaku Gothic Pro','Hiragino Sans',sans-serif;
}
.button-basic-wrapper.lang-zh {
    font-family: 'Roboto',-apple-system,BlinkMacSystemFont,'Microsoft Yahei',sans-serif;
}
.button-contents .button-text{
    display: inline-block;
    vertical-align: top;
}
.button-basic-wrapper::after {
    content: '';
    position: absolute;
    top:0;
    left:0;
    right: 0;
    bottom: 0;
    border: 1px solid #aaa;
    border-radius: 4px;
}
.button-basic-wrapper:hover {
    background: #f0f0f0;
}
.button-basic-wrapper:hover::after {
    border-color: #222;
}
.button-basic-wrapper:hover .button-icon-wrap {
    border-color: #222;
}
.button-basic-wrapper .button-icon-wrap {
    height: 44px;
    line-height: 44px;
    padding: 0 6px 0 10px;
    border-right: 1px solid #aaa;
    background-color: #fff;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}
.button-contents {
    font-size: 16px;
    line-height: 44px;
    color: #222;
    font-weight: bold;
    padding: 0 31px;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}
.button-contents.button-small-type {
    padding: 0 22px;
}
.button-basic-wrapper .buttoniconimage {
    background: url(imagePath/icon-ncloud-symbol-light.png) no-repeat;
    background-size: 28px 14px;
    display: inline-block;
    vertical-align: middle;
    width: 28px;
    height: 14px;
}
  • colorバージョン
.button-basic-wrapper.color-type {
    position: relative;
    background-image: linear-gradient(98deg, #00e25d, #00d1c8);
}
.button-basic-wrapper.color-type:after {
    border-color: transparent;
}
.button-basic-wrapper.color-type:hover .button-icon-wrap ,.button-basic-wrapper.color-type:hover .button-contents {       
    background-color: rgba(0, 0, 0, 0.15);           
}
.button-basic-wrapper.color-type .button-icon-wrap {
    position: relative;
    background-color: transparent;
    border-color: rgba(0, 0, 0, 0.15);
}
.button-basic-wrapper.color-type .button-contents {
    position: relative;
    color: #fff;
}
.button-basic-wrapper.color-type .buttoniconimage {
    background: url(imagePath/icon-ncloud-symbol-color.png) no-repeat;
    background-size: 28px 14px;    
}

HTMLの作成

HTMLにログインボタンとシンボルを適用する方法は次の通りです。

  • lightバージョン
<div class="button-basic-wrapper">
  <div class="button-icon-wrap">
    <span class="buttoniconimage"></span>
  </div>
  <div class="button-contents">
    <span class="button-text">NAVERクラウドプラットフォームにログイン</span>
  </div>
</div>
  • colorバージョン
<div class="button-basic-wrapper color-type">
  <div class="button-icon-wrap">
    <span class="buttoniconimage"></span>
  </div>
  <div class="button-contents">
    <span class="button-text">NAVERクラウドプラットフォームにログイン</span>
  </div>
</div>

縮小型ログインボタン

縮小型ログインボタンは、ボタンを配置するエリアが狭い場合に使用できるボタンの形で、カラーのテーマにより、lightバージョンと colorバージョンに区分されます。

Ncloudでログイン
Ncloudでログイン

CSSの作成

CSSにログインボタンとシンボルを適用する方法は次の通りです。
imagePathにシンボルイメージの保存パスを代入してください。

  • lightバージョン
.button-basic-wrapper {
    position: relative;
    display: inline-flex;    
    align-items: center;        
    border-radius: 4px;
    background-color: #f9f9f9;
    font-size: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: 'Roboto',-apple-system,BlinkMacSystemFont,'Malgun Gothic','맑은 고딕',helvetica,'Apple SD Gothic Neo',sans-serif;
    cursor: pointer;
}
.button-basic-wrapper.lang-ja {
    font-family: 'Roboto',-apple-system,BlinkMacSystemFont,'メイリオ','Meiryo','Yu Gothic','Hiragino Kaku Gothic Pro','Hiragino Sans',sans-serif;
}
.button-basic-wrapper.lang-zh {
    font-family: 'Roboto',-apple-system,BlinkMacSystemFont,'Microsoft Yahei',sans-serif;
}
.button-contents .button-text{
    display: inline-block;
    vertical-align: top;
}
.button-basic-wrapper::after {
    content: '';
    position: absolute;
    top:0;
    left:0;
    right: 0;
    bottom: 0;
    border: 1px solid #aaa;
    border-radius: 4px;
}
.button-basic-wrapper:hover {
    background: #f0f0f0;
}
.button-basic-wrapper:hover::after {
    border-color: #222;
}
.button-basic-wrapper:hover .button-icon-wrap {
    border-color: #222;
}
.button-basic-wrapper .button-icon-wrap {
    height: 44px;
    line-height: 44px;
    padding: 0 6px 0 10px;
    border-right: 1px solid #aaa;
    background-color: #fff;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}
.button-contents {
    font-size: 16px;
    line-height: 44px;
    color: #222;
    font-weight: bold;
    padding: 0 31px;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}
.button-contents.button-small-type {
    padding: 0 22px;
}
.button-basic-wrapper .buttoniconimage {
    background: url(imagePath/icon-ncloud-symbol-light.png) no-repeat;
    background-size: 28px 14px;
    display: inline-block;
    vertical-align: middle;
    width: 28px;
    height: 14px;
}
  • colorバージョン
.button-basic-wrapper.color-type {
    position: relative;
    background-image: linear-gradient(98deg, #00e25d, #00d1c8);
}
.button-basic-wrapper.color-type:after {
    border-color: transparent;
}
.button-basic-wrapper.color-type:hover .button-icon-wrap ,.button-basic-wrapper.color-type:hover .button-contents {       
    background-color: rgba(0, 0, 0, 0.15);           
}
.button-basic-wrapper.color-type .button-icon-wrap {
    position: relative;
    background-color: transparent;
    border-color: rgba(0, 0, 0, 0.15);
}
.button-basic-wrapper.color-type .button-contents {
    position: relative;
    color: #fff;
}
.button-basic-wrapper.color-type .buttoniconimage {
    background: url(imagePath/icon-ncloud-symbol-color.png) no-repeat;
    background-size: 28px 14px;    
}

HTMLの作成

HTMLにログインボタンとシンボルを適用する方法は次の通りです。

  • lightバージョン
<div class="button-basic-wrapper">
  <div class="button-icon-wrap">
    <span class="buttoniconimage"></span>
  </div>
  <div class="button-contents button-small-type">
    <span class="button-text">Ncloudでログイン</span>
  </div>
</div>
  • colorバージョン
<div class="button-basic-wrapper color-type">
  <div class="button-icon-wrap">
    <span class="buttoniconimage"></span>
  </div>
  <div class="button-contents button-small-type">
    <span class="button-text">Ncloudでログイン</span>
  </div>
</div>

シンボル型ログインボタン

シンボル型ログインボタンは、テキストなしにシンボルで構成されているボタンの形で、カラーのテーマにより、lightバージョンと colorバージョンに区分されます。

CSSの作成

CSSにログインボタンとシンボルを適用する方法は次の通りです。
imagePathにシンボルイメージの保存パスを代入してください。

  • lightバージョン
.button-symbol-wrapper {
    position: relative;  
    display: inline-flex;    
    align-items: center;        
    font-size: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
}
.button-symbol-wrapper:after {
    content: '';
    position: absolute;
    top:0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid #aaa;
    border-radius: 50%;
}
.button-symbol-wrapper:hover::after {
    border-color: #222;
}
.button-symbol-wrapper:hover .button-icon-wrap {
    background-color: #f0f0f0;
}
.button-symbol-wrapper .button-icon-wrap {
    position: relative;
    height: 44px;
    line-height: 44px;      
    border-radius: 50%;
    padding: 0 7px 0 9px;
}
.button-symbol-wrapper .buttoniconimage {
    background: url(imagePath/icon-ncloud-symbol-light.png) no-repeat;
    background-size: 28px 14px;  
    display: inline-block;
    vertical-align: middle; 
    width: 28px;
    height: 14px;
}
  • colorバージョン
.button-symbol-wrapper.color-type{
    background-image: linear-gradient(98deg, #00e25d, #00d1c8);
    border-radius: 50%;
}
.button-symbol-wrapper.color-type::after{
    border: 0;
}

.button-symbol-wrapper.color-type:hover .button-icon-wrap {
    background-color: rgba(0, 0, 0, 0.15);    
}

.button-symbol-wrapper.color-type .button-contents {
    color: #fff;
}

.button-symbol-wrapper.color-type .buttoniconimage {      
    background: url(imagePath/icon-ncloud-symbol-color.png) no-repeat;
    background-size: 28px 14px;   
}

HTMLの作成

HTMLにログインボタンとシンボルを適用する方法は次の通りです。

  • lightバージョン
<div class="button-symbol-wrapper">
  <div class="button-icon-wrap">
    <span class="buttoniconimage"></span>
  </div>
</div>
  • colorバージョン
<div class="button-symbol-wrapper color-type">
  <div class="button-icon-wrap">
    <span class="buttoniconimage"></span>
  </div>    
</div>