osx - Create NSButton manually with CSS -


i creating webpage customizing native macos. due development constraints cannot directly call webkit framework - have use css.

i cannot find documentation how these buttons rendered on mac. trying make nsbezelstyleroundedbutton. need buttons first button here (image this blog):

nsbutton image

i created button in way it's not same - http://jsfiddle.net/kajalv333/jd4lmdr0/

.action-navbtn {      display: inline-block;      font-family: "helvetica neue", "lucida grande", "lucida sans unicode", lucida grande,avenir,helvetica,arial,san-serif;      font-weight: 400; background: white;      font-style: normal; text-decoration: none;      color: black; font-size: 11px;      margin: 5px 20px;      padding: 2px 10px;      border:1px solid #cfcfcf;      border-radius: 5px; -webkit-border-radius: 5px; -moz-border-radius: 5px;      box-shadow: 0px 0px 0px rgba(0,0,0,0.20);  }
<input type="button" id="button" class="action-navbtn" value="click me" />  <input type="button" id="button2" value="click me" />

how can make same button in css?

or, there way directly reference nsbutton don't need write custom css myself?


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -