_widgets.scss 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964
  1. // THUMBNAIL WITH LABEL
  2. // -----------------------------------------------------------------------------
  3. .thumb-info {
  4. position: relative;
  5. .thumb-info-title {
  6. -webkit-transition: all 0.3s;
  7. -moz-transition: all 0.3s;
  8. transition: all 0.3s;
  9. background: rgba(36, 27, 28, 0.9);
  10. bottom: 10%;
  11. color: #FFF;
  12. font-size: 18px;
  13. font-weight: 700;
  14. left: 0;
  15. letter-spacing: -1px;
  16. padding: 9px 11px 9px;
  17. position: absolute;
  18. text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
  19. text-transform: uppercase;
  20. z-index: 1;
  21. }
  22. .thumb-info-inner {
  23. -webkit-transition: all 0.3s;
  24. -moz-transition: all 0.3s;
  25. transition: all 0.3s;
  26. display: block;
  27. white-space: nowrap;
  28. }
  29. .thumb-info-type {
  30. background-color: $color-primary;
  31. border-radius: 2px;
  32. display: inline-block;
  33. float: left;
  34. font-size: 12px;
  35. font-weight: 400;
  36. letter-spacing: 0;
  37. margin: 8px -2px -15px -2px;
  38. padding: 2px 9px;
  39. text-transform: none;
  40. }
  41. }
  42. // WIDGET EXPAND
  43. // -----------------------------------------------------------------------------
  44. /* Widget - Widget Toggle/Expand */
  45. .widget-toggle-expand {
  46. .widget-header {
  47. position: relative;
  48. margin: 0;
  49. padding: 5px 0;
  50. h6 {
  51. @include font-size(13);
  52. margin: 0;
  53. padding: 0;
  54. }
  55. .widget-toggle {
  56. @include font-size(21);
  57. @include line-height(21);
  58. position: absolute;
  59. right: 0;
  60. top: 0;
  61. cursor: pointer;
  62. text-align: center;
  63. color: #b4b4b4;
  64. @include transform(rotate(45deg));
  65. @include transition-property (transform);
  66. @include transition-duration(.2s);
  67. @include transition-timing-function(linear);
  68. }
  69. }
  70. &.widget-collapsed {
  71. .widget-content-expanded {
  72. display: none;
  73. }
  74. .widget-header {
  75. .widget-toggle {
  76. @include transform(none);
  77. }
  78. }
  79. }
  80. }
  81. // USER LIST
  82. // -----------------------------------------------------------------------------
  83. /* Widget - Simple User List */
  84. ul.simple-user-list {
  85. list-style: none;
  86. padding: 0;
  87. li {
  88. margin: 0 0 20px;
  89. .image {
  90. float: left;
  91. margin: 0 10px 0 0;
  92. }
  93. .title {
  94. color: #000011;
  95. display: block;
  96. line-height: 1.334;
  97. }
  98. .message {
  99. display: block;
  100. @include font-size(11);
  101. line-height: 1.334;
  102. }
  103. }
  104. }
  105. // SIMPLE POST LIST
  106. // -----------------------------------------------------------------------------
  107. /* Widget - Simple Post List */
  108. ul.simple-post-list {
  109. list-style: none;
  110. margin: 0;
  111. padding: 0;
  112. li {
  113. @include clearfix;
  114. border-bottom: 1px dotted #E2E2E2;
  115. padding: 15px 0;
  116. &::last-child {
  117. border-bottom: 0;
  118. }
  119. .post-image {
  120. float: left;
  121. margin-right: 12px;
  122. }
  123. .post-meta {
  124. color: #888;
  125. font-size: 0.8em;
  126. }
  127. &:last-child {
  128. border-bottom: none;
  129. }
  130. }
  131. }
  132. // TODO LIST
  133. // -----------------------------------------------------------------------------
  134. /* Widget - Simple Todo List */
  135. ul.simple-todo-list {
  136. list-style: none;
  137. padding: 0;
  138. margin: 0;
  139. li {
  140. position: relative;
  141. padding: 0 0 0 20px;
  142. &.completed {
  143. color: #A7A7A7;
  144. &:before {
  145. position: absolute;
  146. top: 3px;
  147. left: 0;
  148. font-family: FontAwesome;
  149. content: "\f00c";
  150. z-index: 1;
  151. }
  152. }
  153. }
  154. }
  155. // SOCIAL ICONS
  156. // -----------------------------------------------------------------------------
  157. /* Widget - Social Icons */
  158. .social-icons-list {
  159. display: block;
  160. margin: 0;
  161. padding: 0;
  162. a {
  163. background: $color-primary;
  164. border-radius: 25px;
  165. display: inline-block;
  166. height: 30px;
  167. line-height: 30px;
  168. text-align: center;
  169. width: 30px;
  170. &:hover {
  171. text-decoration: none;
  172. }
  173. span {
  174. display: none;
  175. }
  176. i {
  177. @include font-size(13.5);
  178. color: #FFF;
  179. font-weight: normal;
  180. }
  181. }
  182. }
  183. // COMPOSE BOX
  184. // -----------------------------------------------------------------------------
  185. /* Widget - Simple Compose Box */
  186. .simple-compose-box {
  187. border: 1px solid #d1d1d1;
  188. -webkit-border-radius: 3px;
  189. border-radius: 3px;
  190. background-color: #fff;
  191. textarea {
  192. background-color: transparent;
  193. display: block;
  194. width: 100%;
  195. padding: 10px 10px 5px;
  196. border: 0;
  197. resize: none;
  198. -webkit-border-radius: 3px;
  199. border-radius: 3px;
  200. &:focus {
  201. border: 0 none;
  202. outline: none;
  203. }
  204. }
  205. .compose-box-footer {
  206. @include clearfix;
  207. background-color: #F6F7F8;
  208. -webkit-border-radius: 0 0 5px 5px;
  209. border-radius: 0 0 5px 5px;
  210. .compose-toolbar {
  211. list-style: none;
  212. margin: 0;
  213. padding: 0 3px;
  214. float: left;
  215. li {
  216. display: inline-block;
  217. a {
  218. display: block;
  219. text-align: center;
  220. font-size: 16px;
  221. line-height: 30px;
  222. width: 30px;
  223. color: #B3B7BD;
  224. &:hover {
  225. background-color: darken(#F6F7F8, 5%);
  226. }
  227. }
  228. }
  229. }
  230. .compose-btn {
  231. list-style: none;
  232. margin: 0;
  233. padding: 3px;
  234. float: right;
  235. }
  236. }
  237. }
  238. // SIMPLE CARD LIST
  239. // -----------------------------------------------------------------------------
  240. /* Widget - Simple Card List */
  241. ul.simple-card-list {
  242. list-style: none;
  243. padding: 0;
  244. li {
  245. padding: 10px 15px;
  246. margin: 15px 0;
  247. -webkit-border-radius: 7px;
  248. border-radius: 7px;
  249. h3 {
  250. @include font-size(26);
  251. font-weight: 600;
  252. margin: 0;
  253. }
  254. p {
  255. margin: 0;
  256. opacity: .7;
  257. }
  258. }
  259. }
  260. @each $state in $states {
  261. .simple-card-list {
  262. li.#{nth($state,1)} {
  263. background: #{nth($state,2)};
  264. color: #{nth($state,3)};
  265. }
  266. }
  267. }
  268. div.simple-card-list {
  269. display: table;
  270. width: 100%;
  271. .card {
  272. display: table-cell;
  273. .card-content {
  274. background-color: rgba(0, 0, 0, 0.1);
  275. -webkit-border-radius: 3px;
  276. border-radius: 3px;
  277. margin: 0 7px;
  278. padding: 5px;
  279. }
  280. h3 {
  281. @include font-size(26);
  282. font-weight: 600;
  283. margin: 0;
  284. }
  285. p {
  286. margin: 0;
  287. opacity: .7;
  288. }
  289. }
  290. }
  291. // SIMPLE BULLET LIST
  292. // -----------------------------------------------------------------------------
  293. /* Widget - Simple Button List */
  294. ul.simple-bullet-list {
  295. list-style: none;
  296. padding: 0;
  297. li {
  298. position: relative;
  299. padding: 0 0 0 20px;
  300. margin: 0 0 10px;
  301. &:before {
  302. border: 6px solid $color-primary;
  303. border-radius: 100px;
  304. content: '';
  305. display: inline-block;
  306. left: 0;
  307. margin: 0;
  308. position: absolute;
  309. top: 5px;
  310. z-index: 2;
  311. }
  312. .title {
  313. display: block;
  314. font-weight: 700;
  315. @include font-size(14);
  316. line-height: 1.4;
  317. color: $color-dark;
  318. }
  319. .description {
  320. display: block;
  321. color: $color-muted;
  322. @include font-size(11);
  323. line-height: 1.334;
  324. }
  325. &.red:before {
  326. border-color: #d64b4b;
  327. }
  328. &.green:before {
  329. border-color: #4dd79c;
  330. }
  331. &.blue:before {
  332. border-color: #0090d9;
  333. }
  334. &.orange:before {
  335. border-color: #E2A917;
  336. }
  337. }
  338. }
  339. // SUMMARY
  340. // -----------------------------------------------------------------------------
  341. /* Widget - Summary */
  342. .widget-summary {
  343. @include clearfix;
  344. display: table;
  345. width: 100%;
  346. .widget-summary-col {
  347. display: table-cell;
  348. vertical-align: top;
  349. width: 100%;
  350. &.widget-summary-col-icon {
  351. width: 1%;
  352. }
  353. }
  354. .summary-icon {
  355. margin-right: 15px;
  356. @include font-size(42);
  357. width: 90px;
  358. height: 90px;
  359. line-height: 90px;
  360. text-align: center;
  361. color: #fff;
  362. -webkit-border-radius: 55px;
  363. border-radius: 55px;
  364. }
  365. .summary {
  366. min-height: 65px;
  367. word-break: break-all;
  368. .title {
  369. margin: 0;
  370. @include font-size(16);
  371. @include line-height(22);
  372. color: $color-black;
  373. font-weight: 500;
  374. }
  375. .info {
  376. @include font-size(14);
  377. @include line-height(30);
  378. span {
  379. vertical-align: middle;
  380. }
  381. }
  382. .amount {
  383. margin-right: .2em;
  384. @include font-size(24);
  385. font-weight: 600;
  386. color: $color-black;
  387. vertical-align: middle;
  388. }
  389. }
  390. .summary-footer {
  391. padding: 5px 0 0;
  392. border-top: 1px dotted #ddd;
  393. text-align: right;
  394. }
  395. @each $color in $colors-list {
  396. .bg-#{nth($color,1)} & {
  397. .summary-icon {
  398. background-color: rgba(0, 0, 0, 0.1);
  399. }
  400. .summary {
  401. .title,
  402. .amount {
  403. color: #{nth($color,3)};
  404. }
  405. }
  406. .summary-footer {
  407. border-top: 1px solid #fff;
  408. border-top-color: rgba(255, 255, 255, 0.2);
  409. a {
  410. color: #{nth($color,3)};
  411. opacity: 0.6;
  412. }
  413. }
  414. }
  415. }
  416. }
  417. @media only screen and (min-width: 480px) {
  418. .widget-summary.widget-summary-xlg {
  419. padding: 5px 0;
  420. .summary-icon {
  421. width: 110px;
  422. height: 110px;
  423. line-height: 110px;
  424. @include font-size(48);
  425. }
  426. .summary {
  427. min-height: 80px;
  428. .title {
  429. @include font-size(20);
  430. @include line-height(28);
  431. }
  432. .info {
  433. @include font-size(16);
  434. @include line-height(30);
  435. }
  436. .amount {
  437. @include font-size(28);
  438. }
  439. }
  440. }
  441. }
  442. .widget-summary.widget-summary-lg {
  443. padding: 0;
  444. .summary-icon {
  445. width: 90px;
  446. height: 90px;
  447. line-height: 90px;
  448. @include font-size(42);
  449. }
  450. .summary {
  451. min-height: 65px;
  452. .title {
  453. @include font-size(16);
  454. @include line-height(22);
  455. }
  456. .info {
  457. @include font-size(14);
  458. @include line-height(30);
  459. }
  460. .amount {
  461. @include font-size(24);
  462. }
  463. }
  464. }
  465. .widget-summary.widget-summary-md {
  466. padding: 0;
  467. .summary-icon {
  468. width: 70px;
  469. height: 70px;
  470. line-height: 70px;
  471. @include font-size(32);
  472. }
  473. .summary {
  474. min-height: 0;
  475. margin-top: 12px;
  476. .title {
  477. @include font-size(12);
  478. @include line-height(18);
  479. }
  480. .info {
  481. @include font-size(11);
  482. @include line-height(22);
  483. }
  484. .amount {
  485. @include font-size(18);
  486. font-weight: 700;
  487. }
  488. }
  489. .summary-footer {
  490. display: none;
  491. }
  492. }
  493. .widget-summary.widget-summary-sm {
  494. padding: 0;
  495. .summary-icon {
  496. width: 50px;
  497. height: 50px;
  498. line-height: 50px;
  499. @include font-size(22);
  500. }
  501. .summary {
  502. min-height: 0;
  503. margin-top: 4px;
  504. .title {
  505. @include font-size(12);
  506. @include line-height(18);
  507. }
  508. .info {
  509. @include font-size(11);
  510. @include line-height(18);
  511. }
  512. .amount {
  513. @include font-size(16);
  514. font-weight: 700;
  515. }
  516. }
  517. .summary-footer {
  518. display: none;
  519. }
  520. }
  521. .widget-summary.widget-summary-xs {
  522. padding: 0;
  523. .summary-icon {
  524. width: 40px;
  525. height: 40px;
  526. line-height: 40px;
  527. @include font-size(18);
  528. }
  529. .summary {
  530. min-height: 0;
  531. .title {
  532. @include font-size(12);
  533. line-height: 40px;
  534. }
  535. .info {
  536. display: none;
  537. }
  538. }
  539. .summary-footer {
  540. display: none;
  541. }
  542. }
  543. // TO-DO LIST
  544. // -----------------------------------------------------------------------------
  545. /* Widget - Todo List */
  546. ul.widget-todo-list {
  547. list-style: none;
  548. padding: 0;
  549. margin: 0;
  550. position: relative;
  551. li {
  552. border-bottom: 1px dotted #ddd;
  553. padding: 15px 15px 15px 0;
  554. position: relative;
  555. label.line-through span {
  556. text-decoration: line-through;
  557. }
  558. .checkbox-custom {
  559. margin-bottom: 0;
  560. label {
  561. padding-left: 10px;
  562. }
  563. }
  564. .todo-actions {
  565. position: absolute;
  566. top: 14px;
  567. right: 0;
  568. bottom: 14px;
  569. .todo-remove {
  570. font-size: 10px;
  571. vertical-align: middle;
  572. color: $color-muted;
  573. }
  574. }
  575. &:last-child {
  576. border-bottom: 0 none;
  577. }
  578. }
  579. }
  580. // PROFILE INFO
  581. // -----------------------------------------------------------------------------
  582. /* Widget - Profile Info */
  583. .widget-profile-info {
  584. display: table;
  585. width: 100%;
  586. .profile-picture {
  587. display: table-cell;
  588. vertical-align: middle;
  589. width: 1%;
  590. img {
  591. display: block;
  592. width: 100px;
  593. height: 100px;
  594. margin-right: 15px;
  595. border: 4px solid #fff;
  596. -webkit-border-radius: 50px;
  597. border-radius: 50px;
  598. }
  599. }
  600. .profile-info {
  601. display: table-cell;
  602. vertical-align: bottom;
  603. width: 100%;
  604. .profile-footer {
  605. padding: 5px 0 0;
  606. border-top: 1px solid rgba(255, 255, 255, 0.6);
  607. text-align: right;
  608. a {
  609. color: #fff;
  610. opacity: 0.6;
  611. }
  612. }
  613. }
  614. }
  615. // TWITTER PROFILE
  616. // -----------------------------------------------------------------------------
  617. /* Widget - Twitter Profile */
  618. .widget-twitter-profile {
  619. background-color: $color-primary;
  620. border-radius: $border-radius;
  621. color: #fff;
  622. .top-image {
  623. img {
  624. width: 100%;
  625. border-radius: $border-radius $border-radius 0 0;
  626. }
  627. }
  628. .profile-info {
  629. @include clearfix;
  630. padding: 15px;
  631. min-height: 75px;
  632. .profile-picture {
  633. float: left;
  634. margin-right: 15px;
  635. position: relative;
  636. img {
  637. display: block;
  638. width: 100px;
  639. height: 100px;
  640. margin: -25px 0;
  641. border: 4px solid #fff;
  642. -webkit-border-radius: 50px;
  643. border-radius: 50px;
  644. }
  645. }
  646. .profile-account {
  647. float: left;
  648. .name {
  649. margin: 0;
  650. }
  651. .account {
  652. color: lighten($color-primary, 50%);
  653. margin: 0;
  654. line-height: 1.4;
  655. }
  656. }
  657. .profile-stats {
  658. float: right;
  659. list-style: none;
  660. padding: 5px 0;
  661. margin: 0;
  662. li {
  663. float: left;
  664. padding: 0 10px;
  665. .stat {
  666. @include font-size(10);
  667. margin: 0;
  668. }
  669. .count {
  670. display: block;
  671. margin: 0;
  672. line-height: 1.4;
  673. font-weight: 600;
  674. }
  675. }
  676. }
  677. }
  678. .profile-quote {
  679. background-color: lighten($color-primary, 4%);
  680. border-radius: 0 0 $border-radius $border-radius;
  681. padding: 15px 10px 15px 150px;
  682. blockquote {
  683. padding: 0;
  684. margin: 0;
  685. border: 0;
  686. p {
  687. position: relative;
  688. font-style: italic;
  689. @include font-size(18);
  690. line-height: 1.6;
  691. padding: 15px 0;
  692. margin: 0 0 10px;
  693. font-family: Georgia, serif;
  694. &:before {
  695. position: absolute;
  696. top: 0;
  697. left: -45px;
  698. content: '\201C';
  699. @include font-size(80);
  700. line-height: 1;
  701. font-family: Georgia, serif;
  702. font-style: normal;
  703. }
  704. }
  705. }
  706. .quote-footer {
  707. border-top: 1px solid lighten($color-primary, 10%);
  708. padding: 5px 0;
  709. text-align: right;
  710. color: lighten($color-primary, 50%);
  711. a {
  712. color: lighten($color-primary, 50%);
  713. }
  714. }
  715. }
  716. }
  717. /* Widget - Twitter Profile Responsive */
  718. @media only screen and (max-width: 479px) {
  719. .widget-twitter-profile {
  720. .profile-info {
  721. .profile-stats {
  722. clear: both;
  723. float: none;
  724. padding: 45px 0 0;
  725. text-align: center;
  726. li {
  727. display: inline-block;
  728. float: none;
  729. }
  730. }
  731. }
  732. }
  733. }
  734. @media only screen and (max-width: 767px) {
  735. .widget-twitter-profile {
  736. .profile-quote {
  737. padding-left: 10px;
  738. blockquote {
  739. padding-left: 45px;
  740. }
  741. }
  742. }
  743. }
  744. // DARK SKIN
  745. // -----------------------------------------------------------------------------\
  746. html.dark {
  747. /* Widget Summary */
  748. .widget-summary {
  749. .summary {
  750. .title,
  751. .amount {
  752. color: #EEE;
  753. }
  754. }
  755. .summary-footer {
  756. border-color: #4C4C4C;
  757. }
  758. }
  759. /* Panel Footer - Button Group */
  760. .panel-footer-btn-group a {
  761. background-color: $dark-color-3;
  762. border-color: $dark-color-2;
  763. &:hover {
  764. background-color: $dark-color-4;
  765. }
  766. }
  767. /* To-do List */
  768. ul.widget-todo-list li {
  769. border-color: $dark-color-5;
  770. }
  771. /* Simple Post List */
  772. ul.simple-post-list li {
  773. border-color: #4c4c4c;
  774. }
  775. /* Simple User List */
  776. ul.simple-user-list li .title {
  777. color: #EEE;
  778. }
  779. /* Simple Bullet List */
  780. ul.simple-bullet-list li .title {
  781. color: #EEE;
  782. }
  783. /* Simple Compose Box */
  784. .simple-compose-box {
  785. background-color: $dark-color-3;
  786. border-color: $dark-color-3;
  787. .compose-box-footer {
  788. background-color: $dark-color-2;
  789. }
  790. }
  791. }