JSFiddle - React, Tailwind, and code Playground

HTML

<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<a href="#" id="button1" class="buttonText">Скачать - <span style="color: yellow;">документ Word 17 Кб</span></a>
    <div style="clear: both;"></div>
<a href="#" id="button1" class="buttonText">Скачать - <span style="color: yellow;">документ Word 17 Word 17 Кб документ Word 17 Word 17 Кб документ Word 17 Word 17 Кб документ Word 17 Word 17 Кб документ Word 17 Word 17 Кб</span></a>

CSS

.buttonText {
  font-family: Verdana;
  color: #fff;
}

a {
  color: #fff;
  text-decoration: none;
}


#button1 {
    float: left;
  background: #6292c2;
  border: 2px solid #eee;
  height: 24px;
  width: 70px;
  margin: 10px 0 0 50px;
  padding: 3px 8px 0 8px;
  overflow: hidden;
  display: block;
/*Скругленные углы*/
-webkit-border-radius: 15px;
-moz-border-radius: 15px;
border-radius: 15px;
/*Градиент*/
background-image: -webkit-linear-gradient(top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.2));
background-image: -moz-linear-gradient(top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.2));
background-image: -o-linear-gradient(top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.2));
background-image: -ms-linear-gradient(top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.2));
background-image: linear-gradient(top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.2));
/*Переход*/
-webkit-transition: All 0.5s ease;
-moz-transition: All 0.5s ease;
-o-transition: All 0.5s ease;
-ms-transition: All 0.5s ease;
transition: All 0.5s ease;
}
#button1:hover {
width: auto;
max-width:300px;
height:auto;
max-height:100px;    
}