&:focus~.form__input-text,
&:not(:placeholder-shown) + .form__input-text{
-webkit-transform: translateY(0);
-ms-transform: translateY(0);
transform: translateY(0);
top: 10px;
left: 17px;
font-size: 10px;
line-height: 12px;
color: #BABABA;
transition: all 0.3s ease;
}
console.time('no cache');
fetch('https://yastatic.net/jquery/2.1.4/jquery.min.js?' + Math.random())
.then(r => r.text())
.then(() => console.timeEnd('no cache'));
console.time('yandex');
fetch('https://yastatic.net/jquery/2.1.4/jquery.min.js')
.then(r => r.text())
.then(() => console.timeEnd('yandex'));
JSON.parse('{ "name": "Вася", "age": 20 }');
$('.el1--closed').click(function () { ... })
.off()
. Изменение класса или других атрибутов элемента не влияет на уже прикреплённые обработчики. $('.el1--closed').one('click', function() {
$(this)
.siblings()
.slideToggle();
});
$('.block').on('click', '.el1--closed', function() {
$(this)
.removeClass('el1--closed')
.siblings()
.slideToggle();
});
ssh -t user@host "cd /home/user/ && bash -l"
ssh user@host "date && hostname"
date && hostname
date; hostname
Каждый пункт в строку? Много места займет и справа будет зиять дыра.
Колонками? Вроде, норм, но 20 пунктов визуально пугают.
Отдельной кнопкой (раскрывающимся списокм)? Но справа, как и в первом пункте будет много пустого пространства.
.floating-block
высоту 0px, убедиться, что нет overflow:hidden;, а дочернему указать его высоту, к примеру (не обязательно, но я не уверен).Вожу её туда-сюда и не могу выбрать ей правильное место. Перемещу на одно место, вроде, норм. Потом смотрю — нет не норм и так много раз...
ZSH_THEME="robbyrussell"
в файле ~/.oh-my-zsh/themes/robbyrussell.zsh-theme:PROMPT="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ )"
PROMPT+=' %{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)'
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}git:(%{$fg[red]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"